View previous topic :: View next topic |
Author |
Message |
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:18 pm Post subject: SOLVED: User-input in portage ? |
|
|
[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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Sun Dec 23, 2018 12:22 pm Post subject: |
|
|
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:26 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Dec 23, 2018 12:29 pm Post subject: |
|
|
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:33 pm Post subject: |
|
|
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:35 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:37 pm Post subject: |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Dec 23, 2018 12:40 pm Post subject: |
|
|
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 |
Because you think someone with LANGUAS="fr" would pickup the brazilian version if you query him? |
|
Back to top |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:45 pm Post subject: |
|
|
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 |
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:56 pm Post subject: |
|
|
Sorry for #3 and #5 i mess up questions >.> Ignore them |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Dec 23, 2018 12:56 pm Post subject: |
|
|
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 12:59 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54317 Location: 56N 3W
|
Posted: Sun Dec 23, 2018 1:08 pm Post subject: |
|
|
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 1:19 pm Post subject: |
|
|
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
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 2:39 pm Post subject: |
|
|
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 |
|
|
kreyren n00b
Joined: 21 Sep 2018 Posts: 40 Location: Brno, Czech republic
|
Posted: Sun Dec 23, 2018 3:18 pm Post subject: |
|
|
Solved, thanks 'yall |
|
Back to top |
|
|
|