• [gentoo-user] Firefox and USE flags

    From Peter Humphrey@21:1/5 to All on Wed May 21 16:10:01 2025
    Greetings,

    I found a Gentoo binpkg of firefox yesterday, to use which I had only to set L10N="-en-GB*" against www-client/firefox in package.use; all other settings were all right as they were.

    I did that and the binpkg was fetched and installed. Today, portage wants to ignore that USE flag and revert to compiling locally, thus:

    [ebuild R ] www-client/firefox-128.10.1:esr::gentoo [...] L10N="en-GB* [...]

    But:

    # grep -r en-GB /etc
    /etc/portage/make.conf:L10N="en-GB en" /etc/portage/package.use/firefox:www-client/firefox L10N="-en-GB*" [...]

    Have I missed something obvious again?

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eli Schwartz@21:1/5 to Peter Humphrey on Wed May 21 16:50:01 2025
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------kNjLJ4bbrF5FEu6gg33Xob2T
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable

    On 5/21/25 10:01 AM, Peter Humphrey wrote:
    Greetings,

    I found a Gentoo binpkg of firefox yesterday, to use which I had only to set L10N="-en-GB*" against www-client/firefox in package.use; all other settings were all right as they were.

    I did that and the binpkg was fetched and installed. Today, portage wants to ignore that USE flag and revert to compiling locally, thus:

    [ebuild R ] www-client/firefox-128.10.1:esr::gentoo [...] L10N="en-GB* [...]

    But:

    # grep -r en-GB /etc
    /etc/portage/make.conf:L10N="en-GB en" /etc/portage/package.use/firefox:www-client/firefox L10N="-en-GB*" [...]

    Have I missed something obvious again?


    That doesn't look like a valid package.use line. See `man 5 portage`
    under "package.use", in particular,

    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.


    So you should have used,

    www-client/firefox L10N: -en-GB


    Note no glob used. -* is documented, but not partial matches, so I don't
    know where you got it from. :)


    --
    Eli Schwartz

    --------------kNjLJ4bbrF5FEu6gg33Xob2T--

    -----BEGIN PGP SIGNATURE-----

    wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCaC3l1gUDAAAAAAAKCRCEp9ErcA0vV4nj AQCMm0/CnC2rWIenM7GxNZKtULpcB7F9y0Z6+KzXpCkirgD8DKYRjckKM3j+5B47V84xKk9XAPY4 jNae+xMEogA+JAY=
    =yIke
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Fri May 23 07:30:02 2025
    On Wednesday, 21 May 2025 15:40:22 British Summer Time Eli Schwartz wrote:
    On 5/21/25 10:01 AM, Peter Humphrey wrote:

    8

    Have I missed something obvious again?

    That doesn't look like a valid package.use line. See `man 5 portage`
    under "package.use", in particular,

    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.

    So you should have used,

    www-client/firefox L10N: -en-GB


    Note no glob used. -* is documented, but not partial matches, so I don't
    know where you got it from. :)

    You're right of course, Eli. I went away and did something else for a while, then came back and did two things: 1. Made an entry in package.env; 2. Removed the package.use firefox line.

    So I now have 'L10N="en-GB en"' in make.conf, 'www-client/firefox
    nol10n.conf' in package.env, 'L10N="en"' in env/nol10n.conf and nothing in package.use.

    All is now well.

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)