Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643638 - PLOCALES are not regarded
Summary: PLOCALES are not regarded
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-06 06:49 UTC by Perfect Gentleman
Modified: 2018-01-06 10:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Perfect Gentleman 2018-01-06 06:49:59 UTC
$ emerge -avtp git
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild   R    ] dev-vcs/git-2.15.1::gentoo  USE="blksha1 curl gpg iconv nls pcre pcre-jit threads -cgi -cvs -doc -emacs -gnome-keyring -highlight -libressl -mediawiki -mediawiki-experimental -perl (-ppcsha1) -python -subversion {-test} -tk -webdav -xinetd" PYTHON_TARGETS="python2_7" 0 KiB
----------------------------------------------------
/usr/portage/dev-vcs/git $ grep PLOCALES git-2.15.1.ebuild 
PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN"
Comment 1 Michael Palimaka (kensington) gentoo-dev 2018-01-06 07:37:35 UTC
The ebuild calls 'l10n_for_each_disabled_locale_do rm_loc' which operates on LINGUAS, so it looks like it is regarded.
Comment 2 Perfect Gentleman 2018-01-06 08:38:08 UTC
(In reply to Michael Palimaka (kensington) from comment #1)
> The ebuild calls 'l10n_for_each_disabled_locale_do rm_loc' which operates on
> LINGUAS, so it looks like it is regarded.

Do you mean that PLOCALES are obsolete?
Comment 3 Ulrich Müller gentoo-dev 2018-01-06 09:47:35 UTC
(In reply to Perfect Gentleman from comment #0)
> $ emerge -avtp git
> These are the packages that would be merged, in reverse order:
> Calculating dependencies... done!
> [ebuild   R    ] dev-vcs/git-2.15.1::gentoo  USE="blksha1 curl gpg iconv nls
> pcre pcre-jit threads -cgi -cvs -doc -emacs -gnome-keyring -highlight
> -libressl -mediawiki -mediawiki-experimental -perl (-ppcsha1) -python
> -subversion {-test} -tk -webdav -xinetd" PYTHON_TARGETS="python2_7" 0 KiB

I don't see anything wrong in this output. Have you actually proceeded and installed the package? Which locales does it install (in /usr/share/locale/)?

Please attach the output of emerge --info. Especially, what is the value of your LINGUAS variable?


(In reply to Perfect Gentleman from comment #2)
> Do you mean that PLOCALES are obsolete?

They are not:
https://devmanual.gentoo.org/eclass-reference/l10n.eclass/index.html
Comment 4 Perfect Gentleman 2018-01-06 09:51:50 UTC
(In reply to Ulrich Müller from comment #3)
> (In reply to Perfect Gentleman from comment #0)
> > $ emerge -avtp git
> > These are the packages that would be merged, in reverse order:
> > Calculating dependencies... done!
> > [ebuild   R    ] dev-vcs/git-2.15.1::gentoo  USE="blksha1 curl gpg iconv nls
> > pcre pcre-jit threads -cgi -cvs -doc -emacs -gnome-keyring -highlight
> > -libressl -mediawiki -mediawiki-experimental -perl (-ppcsha1) -python
> > -subversion {-test} -tk -webdav -xinetd" PYTHON_TARGETS="python2_7" 0 KiB
> 
> I don't see anything wrong in this output. Have you actually proceeded and
> installed the package? Which locales does it install (in /usr/share/locale/)?
> 
> Please attach the output of emerge --info. Especially, what is the value of
> your LINGUAS variable?
> 
> 
> (In reply to Perfect Gentleman from comment #2)
> > Do you mean that PLOCALES are obsolete?
> 
> They are not:
> https://devmanual.gentoo.org/eclass-reference/l10n.eclass/index.html

PLOCALES based on LINGUAS, which were deprecated several hours ago.
-------
grep -i ru /etc/portage/make.conf
...
USE="... linguas_ru linguas_ru_RU linguas_en linguas_en_US"
LINGUAS="en en_US ru"
L10N="en en-US ru"
Comment 5 Perfect Gentleman 2018-01-06 10:17:07 UTC
(In reply to Ulrich Müller from comment #3)
> (In reply to Perfect Gentleman from comment #2)
> > Do you mean that PLOCALES are obsolete?
> 
> They are not:
> https://devmanual.gentoo.org/eclass-reference/l10n.eclass/index.html

according to https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2b35d386291d6b34b108cbb0895460ec5ef80a1
------
-# Add linguas useflags
-for u in ${PLOCALES}; do
-	IUSE+=" linguas_${u}"
-done
--------
Comment 6 Ulrich Müller gentoo-dev 2018-01-06 10:22:32 UTC
(In reply to Perfect Gentleman from comment #4)
> PLOCALES based on LINGUAS, which were deprecated several hours ago.

The LINGUAS variable hasn't been deprecated, but is reverted to the standard gettext behaviour. What changes is that it will no longer be expanded into linguas_* USE flags. That functionality is taken over by the L10N variable. See the news item for a longer explanation:
https://www.gentoo.org/support/news-items/2016-06-23-l10n-use_expand.html

> grep -i ru /etc/portage/make.conf
> ...
> USE="... linguas_ru linguas_ru_RU linguas_en linguas_en_US"
> LINGUAS="en en_US ru"
> L10N="en en-US ru"

Looks good to me. After the transition period, the linguas_* flags will be gone and you may remove them from your USE then.

So assuming that its PLOCALES is accurate, the git ebuild should install only the locale in /usr/share/locale/ru/ for you (as "en" is implicit as source language).
Comment 7 Perfect Gentleman 2018-01-06 10:33:38 UTC
(In reply to Ulrich Müller from comment #6)
> So assuming that its PLOCALES is accurate, the git ebuild should install
> only the locale in /usr/share/locale/ru/ for you (as "en" is implicit as
> source language).
you're right. Russing language is installed for targeted packages.
false alarm.
-------
~ $ equery f git | grep -i locale
/usr/share/locale
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/git.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/git.mo
~ $ equery f bleachbit | grep -i locale
/usr/share/locale
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/bleachbit.mo
~ $ equery f deadbeef | grep -i locale
/usr/share/locale
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/deadbeef.mo
-------
I don't get why linguas_es for dev-vsc/git is present as locale.
Comment 8 Ulrich Müller gentoo-dev 2018-01-06 10:55:40 UTC
(In reply to Perfect Gentleman from comment #7)
> (In reply to Ulrich Müller from comment #6)
> > So assuming that its PLOCALES is accurate, the git ebuild should install
> > only the locale in /usr/share/locale/ru/ for you (as "en" is implicit as
> > source language).
> you're right. Russing language is installed for targeted packages.
> false alarm.

Closing this bug then.

> I don't get why linguas_es for dev-vsc/git is present as locale.

It is missing from PLOCALES indeed, but let's move to bug 643674 for that.