Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] localization, USE_EXPAND and myspell...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 243

PostPosted: Sun Dec 29, 2024 12:52 pm    Post subject: [Solved] localization, USE_EXPAND and myspell... Reply with quote

So, I finally found the time to move all my USE_EXPAND stuff from /etc/portage/make.conf to /etc/portage/package.use/some_filename_I_choose.

According to Gentoo Wiki article /etc/portage/make.conf#USE_EXPAND (example filename: /etc/portage/package.use/00local) that's the way to go... I also read Localization/Guide#L10N (example filename: /etc/portage/package.use/localization).

My /etc/portage/make.conf looked like this:
Code:
LINGUAS="de en"
L10N="de de-DE de-AT en en-US en-GB"

My /etc/portage/package.use/00local looks like this:
Code:
*/*  LINGUAS: de en
*/*  L10N: de de-DE de-AT en en-US en-GB

Should be exactly the same, right?

Now, with LINGUAS and L10N in make.conf, my system doesn't find updates with my standard update command. I use: emerge -aDuvN --with-bdeps=y --keep-going @world

So, after commenting this out in make.conf and using package.use, I get the following:
Quote:
# emerge -aDuvN --with-bdeps=y --keep-going @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 30.21 s (backtrack: 0/20).

[ebuild R ] app-dicts/myspell-en-20240801::gentoo L10N="en-AU* en-CA* en-GB en-US en-ZA*" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] No

Quitting.

If I comment L10N out in my package.use and activate it again in my make.conf, this happens:
Code:
# emerge -aDuvN --with-bdeps=y --keep-going @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 30.73 s (backtrack: 0/20).


Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.

How can that be?
Does anyone have an idea why that is? Is there something I'm missing? Or is this a bug in portage, or a bug in myspell-en? Because if so, I should report it as such, right?

Thanks in advance... A.
_________________
Think for yourself and let others enjoy the privilege of doing so too. Voltaire


Last edited by Atha on Sun Dec 29, 2024 3:22 pm; edited 3 times in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22899

PostPosted: Sun Dec 29, 2024 2:25 pm    Post subject: Re: localization, USE_EXPAND and myspell... Reply with quote

Atha wrote:
My /etc/portage/make.conf looked like this:
Code:
LINGUAS="de en"
L10N="de de-DE de-AT en en-US en-GB"
My /etc/portage/package.use/00local looks like this:
Code:
*/*  LINGAS: de en
*/*  L10N: de de-DE de-AT en en-US en-GB
Should be exactly the same, right?
The make.conf way is assignment. You get exactly what you wrote, no more and no less. The package.use way is modification: you gain what you ask to gain, drop what you ask to drop, and keep the previous defaults for anything unspecified. This is explained in man portage:
man portage:
              package.use
                     Per-package  USE  flags.   Useful  for tracking local USE
                     flags or for enabling  USE  flags  for  certain  packages
                     only.  Perhaps you develop GTK and thus you want documen‐
                     tation  for  it, but you don’t want documentation for Qt.
                     Easy as pie my friend!

                     Format:
                     - comments begin with # (no inline comments)
                     - one DEPEND atom per line with space-delimited USE flags
                     - USE flags can be prefixed with USE_EXPAND name followed by a colon (:)
                     and a space. In this case, all the names following it are treated
                     as values for the USE_EXPAND. Note that if you need to remove earlier
                     assignments or defaults, you need to explicitly specify ’-*’.
Atha wrote:
Code:
# emerge -aDuvN --with-bdeps=y --keep-going @world
[ebuild   R    ] app-dicts/myspell-en-20240801::gentoo  L10N="en-AU* en-CA* en-GB en-US en-ZA*" 0 KiB
How can that be?
Does anyone have an idea why that is? Is there something I'm missing? Or is this a bug in portage, or a bug in myspell-en? Because if so, I should report it as such, right?
As I read the ebuild for myspell-en, it default-enables all the L10N flags it knows:
app-dicts/myspell-en/myspell-en-20240801.ebuild:
PLOCALES=( "en-AU" "en-CA" "en-GB" "en-US" "en-ZA" )
IUSE="${PLOCALES[*]/#/+l10n_}"
If you want not to enable L10N other than the ones you list, you need to negate any inherited ones.
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 243

PostPosted: Sun Dec 29, 2024 2:51 pm    Post subject: Re: localization, USE_EXPAND and myspell... Reply with quote

Hu wrote:
If you want not to enable L10N other than the ones you list, you need to negate any inherited ones.

Thanks!

I did have the strong feeling that I was missing something...

So this /etc/portage/package.use/00local works now:
Code:
*/*  LINGUAS: -* de en
*/*  L10N: -* de de-DE de-AT en en-US en-GB


Again, thanks!
_________________
Think for yourself and let others enjoy the privilege of doing so too. Voltaire


Last edited by Atha on Sun Dec 29, 2024 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4682
Location: Germany

PostPosted: Sun Dec 29, 2024 3:06 pm    Post subject: Reply with quote

I think "LINGAS" is probably a typo
-> LINGUAS
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 243

PostPosted: Sun Dec 29, 2024 3:24 pm    Post subject: Reply with quote

Josef.95 wrote:
I think "LINGAS" is probably a typo
-> LINGUAS

Thanks.
Since I copy&pasted from make.conf, I wonder how that got in there...

Anyway, fixed in my postings and my package.use/00local. Again, thanks!
_________________
Think for yourself and let others enjoy the privilege of doing so too. Voltaire
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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