Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194567 (sysstat-linguas) - app-admin/sysstat could support LINGUAS
Summary: app-admin/sysstat could support LINGUAS
Status: RESOLVED FIXED
Alias: sysstat-linguas
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
: 205963 309671 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-03 03:31 UTC by Andrew Ross (RETIRED)
Modified: 2010-03-20 10:51 UTC (History)
2 users (show)

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


Attachments
respect LINGUAS and detect new translations in the upstream tarball (locales.diff,1.27 KB, patch)
2007-10-04 04:32 UTC, Andrew Ross (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Ross (RETIRED) gentoo-dev 2007-10-03 03:31:37 UTC
app-admin/sysstat ignores the value of LINGUAS and unconditionally installs all message catalogs:

equery files sysstat | fgrep /usr/share/locale/
/usr/share/locale/af
/usr/share/locale/af/LC_MESSAGES
/usr/share/locale/af/LC_MESSAGES/sysstat.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/sysstat.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/sysstat.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/sysstat.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/sysstat.mo
/usr/share/locale/ja
/usr/share/locale/ja/LC_MESSAGES
/usr/share/locale/ja/LC_MESSAGES/sysstat.mo
/usr/share/locale/nb
/usr/share/locale/nb/LC_MESSAGES
/usr/share/locale/nb/LC_MESSAGES/sysstat.mo
/usr/share/locale/nn
/usr/share/locale/nn/LC_MESSAGES
/usr/share/locale/nn/LC_MESSAGES/sysstat.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/sysstat.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/sysstat.mo
/usr/share/locale/ro
/usr/share/locale/ro/LC_MESSAGES
/usr/share/locale/ro/LC_MESSAGES/sysstat.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/sysstat.mo
/usr/share/locale/sk
/usr/share/locale/sk/LC_MESSAGES
/usr/share/locale/sk/LC_MESSAGES/sysstat.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/sysstat.mo

=================================================================
System uname: 2.6.20-hardened-r6 x86_64 Intel(R) Core(TM)2 CPU 6420 @ 2.13GHz
Timestamp of tree: Wed, 03 Oct 2007 01:50:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict stricter test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gento http://mirror.aarnet.edu.au/pub/gentoo http://mirror.pacific.net.au/linux/Gentoo http://mirror.isp.net.au/ftp/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU.UTF8"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/pythonhead /usr/local/portage/aross /home/andrew/gentoo-x86"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 caps cracklib crypt cups fam hardened jpeg jpeg2k justify midi ncurses nls nptl nptlonly pam pic png ppds python readline snmp sqlite ssl symlink test tiff unicode urandom vhosts xattr xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrew Ross (RETIRED) gentoo-dev 2007-10-04 04:32:44 UTC
Created attachment 132519 [details, diff]
respect LINGUAS and detect new translations in the upstream tarball

Here's the first draft of a patch both to handle the existing message catalogs, and to detect the addition of new translations in the upstream tarball.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2007-10-04 04:56:50 UTC
This has nothing to do with LINGUAS as such. Please learn to use INSTALL_MASK instead, as documented in make.conf(5), if you want to prevent unwanted files from being installed.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-15 23:20:46 UTC
Changing reason.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-15 23:22:11 UTC
*** Bug 205963 has been marked as a duplicate of this bug. ***
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-15 23:22:22 UTC
*** Bug 309671 has been marked as a duplicate of this bug. ***
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2010-03-16 01:56:37 UTC
Good news, everyone!

I have added LINGUAS support after struggling with Makefile.in for quite a bit to get it not to hardcode locales but reuse the existing wildcard use instead. I am sending that patch (which works independent of our LINGUAS hacking) upstream.

Meanwhile, you can test 9.1.1 (which is masked for being a "development version, anyway) and see if removing (among 25) the Kyrgyz and Nynorsk language works for you.

Please reopen this bug report if something is still wrong.
Comment 7 Łukasz Stelmach 2010-03-20 10:51:29 UTC
Ad. comment #2

I'd rather see LINGUAS procedures extended to act like INSTALL_MASK for locale files so that ebuilds need not to worry about them.

Ad. comment #6

sysstat-9.1.1 has installed without Kyrgyz and Nynorsk ;) and everything else except Polish. Let's see how it works.