Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538310 - sys-apps/shadow: add LINGUAS support
Summary: sys-apps/shadow: add LINGUAS support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-31 05:16 UTC by Alex Efros
Modified: 2015-04-03 06:02 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 Alex Efros 2015-01-31 05:16:43 UTC
Translated man pages (like /usr/share/man/ru/man1/login.1.bz2) are usually outdated, thus many people prefer to avoid installing them.

It probably makes sense to move man pages from sys-apps/shadow to shadow-man or man-pages package to make it possible to independently control "nls" USE flag (or related linguas_XX flags) for binaries and man pages of sys-apps/shadow.
Comment 1 SpanKY gentoo-dev 2015-02-14 05:40:53 UTC
should be all set now in the tree; thanks for the report!

Commit message: Respect LINGUAS when installing man pages
http://sources.gentoo.org/sys-apps/shadow/shadow-4.2.1-r1.ebuild?rev=1.1
Comment 2 Mart Raudsepp gentoo-dev 2015-03-18 11:43:31 UTC
shouldn't be using IUSE_EXPAND for this, just look at the LINGUAS env var that is kept around for such purposes, like every gettext/intltool package does out of the box, without littering the USE flags. In fact, upstream should really have it work automatically.
Additionally this completely loses the notion of "install all translations when LINGUAS is unset", that it should have.
Comment 3 SpanKY gentoo-dev 2015-04-03 06:02:44 UTC
(In reply to Mart Raudsepp from comment #2)

that's a bug for portage/PMS.  LINGUAS is not in the binpkg metadata whereas IUSE is, and the whole point of linguas_xx is to see if a particular lang is enabled.

the compiled/installed behavior should only be changing based on USE, not other random untracked env vars.