Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SOLVED: User-input in portage ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:18 pm    Post subject: SOLVED: User-input in portage ? Reply with quote

[img]https://i.imgur.com/TXr1vOp.png[/img] <- i tried..

Any way i can make portage to accept user-input?

Expected to select $REGION to download correct version of league of legends


Last edited by kreyren on Tue Dec 25, 2018 6:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Dec 23, 2018 12:22 pm    Post subject: Reply with quote

kreyren,

There is an interactive directive somewhere. It should be mentioned in the devmanual.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:26 pm    Post subject: Reply with quote

NeddySeagoon wrote:
kreyren,

There is an interactive directive somewhere. It should be mentioned in the devmanual.


None that i know of.. source?


Last edited by kreyren on Sun Dec 23, 2018 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Dec 23, 2018 12:29 pm    Post subject: Reply with quote

I think none would ask input for that, rather than that, dev would use LINGUAS or other language variable set to pickup the right region for the user.

And if user want another region, he would select it by hinting portage about what should be LINGUAS for that package only.
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:33 pm    Post subject: Reply with quote

REMOVED, wrong thread o.o

Last edited by kreyren on Sun Dec 23, 2018 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:35 pm    Post subject: Reply with quote

krinn wrote:
I think none would ask input for that, rather than that, dev would use LINGUAS or other language variable set to pickup the right region for the user.

And if user want another region, he would select it by hinting portage about what should be LINGUAS for that package only.


LINGUAS? what? That is used for localization afaik 8O
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:37 pm    Post subject: Reply with quote

REMOVED, wrong thread o.o

Last edited by kreyren on Sun Dec 23, 2018 12:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Dec 23, 2018 12:40 pm    Post subject: Reply with quote

kreyren wrote:
krinn wrote:
I think none would ask input for that, rather than that, dev would use LINGUAS or other language variable set to pickup the right region for the user.

And if user want another region, he would select it by hinting portage about what should be LINGUAS for that package only.


LINGUAS? what? That is used for localization afaik 8O

Because you think someone with LANGUAS="fr" would pickup the brazilian version if you query him?
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:45 pm    Post subject: Reply with quote

krinn wrote:
kreyren wrote:
krinn wrote:
I think none would ask input for that, rather than that, dev would use LINGUAS or other language variable set to pickup the right region for the user.

And if user want another region, he would select it by hinting portage about what should be LINGUAS for that package only.


LINGUAS? what? That is used for localization afaik 8O

Because you think someone with LANGUAS="fr" would pickup the brazilian version if you query him?


That's not a bad idea..

but most of people i know doesn't use LANGUAS (me included) = if statement could solve that in theory..

or use multiple variables for LANGUAS/LION how would i grep the one that is needed? Or should i greb it on random?

...

or in theory i can ping the sources and greb the one that returns the one with least ms o.o
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:56 pm    Post subject: Reply with quote

Sorry for #3 and #5 i mess up questions >.> Ignore them
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Dec 23, 2018 12:56 pm    Post subject: Reply with quote

I think devs do that:
* either use a variable to get what user want (like QEMU_USER_TARGETS or ALSA_CARDS) and use that in order to pickup the right choice
* or use an existing one to do that, LION and LINGUAS define localization, so it seems logic (for me) to use them rather than creating one.
* get what user want thru USE flags, some USE="league_brazlian" emerge ...

out of the choice to do that, i think dev would just really use LINGUAS or L10N to reach that goal.
user could still set a per package setting for them if really user wish the brazilian version while he have them globally set to UK.
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 12:59 pm    Post subject: Reply with quote

krinn wrote:
I think devs do that:
* either use a variable to get what user want (like QEMU_USER_TARGETS or ALSA_CARDS) and use that in order to pickup the right choice
* or use an existing one to do that, LION and LINGUAS define localization, so it seems logic (for me) to use them rather than creating one.
* get what user want thru USE flags, some USE="league_brazlian" emerge ...

out of the choice to do that, i think dev would just really use LINGUAS or L10N to reach that goal.
user could still set a per package setting for them if really user wish the brazilian version while he have them globally set to UK.


Noted, will try
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Dec 23, 2018 1:08 pm    Post subject: Reply with quote

kreyren,

The devmanual says

devmanual:
PROPERTIES = [interactive]
    A space delimited list of properties, with conditional syntax support.

        interactive
            One or more ebuild phases will produce a prompt that requires user interaction.


We will teach you to fish, so you can feed yourself but we will not feed you here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 1:19 pm    Post subject: Reply with quote

NeddySeagoon wrote:
kreyren,

The devmanual says

devmanual:
PROPERTIES = [interactive]
    A space delimited list of properties, with conditional syntax support.

        interactive
            One or more ebuild phases will produce a prompt that requires user interaction.


We will teach you to fish, so you can feed yourself but we will not feed you here.


I don't expect more and i will feed everyone with sushi after 8)

Code:

#PROPERTIES=""
## A space-delimited list of properties, with conditional syntax support. interactive is the only valid value for now.
## I have no idea what it means and i'm scared that it starts talking at me.


I was wondering what it means xD thanks will try
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 2:39 pm    Post subject: Reply with quote

More info to PROPERTIES="interactive" ? i have: https://paste.pound-python.org/show/nfmCwD0CcAwA5yFiu8zy/ and it still outputs regression if `ebuild` is used o.o

EDIT: using `ebuild $EBUILD digest` solved this issue
EDIT2: i take it back regression is still present.. >.>
EDIT3: Solved the issue by using pkg_setup o.o
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sun Dec 23, 2018 3:18 pm    Post subject: Reply with quote

Solved, thanks 'yall :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum