Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541122 - games-action/minetest installs gettext file to wrong directory
Summary: games-action/minetest installs gettext file to wrong directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Account Disabled (uid 86422)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-23 11:24 UTC by Fab
Modified: 2015-09-09 16:35 UTC (History)
2 users (show)

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


Attachments
0.4.10-r1 build.log (minetest-0.4.10-r1:20150224-002735.log,445.31 KB, text/plain)
2015-02-24 00:39 UTC, Fab
Details
modified ebuild with the suggested change (minetest-0.4.10-r3.ebuild,3.29 KB, text/plain)
2015-02-24 11:04 UTC, Account Disabled (uid 86422)
Details
Added suggested solution (minetest-0.4.10-r3.patch,956 bytes, patch)
2015-03-10 15:08 UTC, Account Disabled (uid 86422)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2015-02-23 11:24:10 UTC
Each version of minetest I tried on gentoo is always in english, even if I build it with NLS.

The ebuild installs mo file here :
> $ equery f minetest | grep "minetest.mo"
> /usr/share/locale/fr/LC_MESSAGES/minetest.mo

But when I run minetest through strace it tries to load it from another directory :
> open("/usr/share/games/minetest/locale/fr_FR.UTF-8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/share/games/minetest/locale/fr_FR.utf8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/share/games/minetest/locale/fr_FR/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/share/games/minetest/locale/fr.UTF-8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/share/games/minetest/locale/fr.utf8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/share/games/minetest/locale/fr/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)


In ebuilds, if I set CUSTOM_LOCALEDIR to the right location :
> -		-DCUSTOM_LOCALEDIR="/usr/share/locale"
> +		-DCUSTOM_LOCALEDIR="${GAMES_DATADIR}/${PN}/locale"

It works.
Comment 1 Account Disabled (uid 86422) 2015-02-23 20:16:08 UTC
(In reply to Fab from comment #0)
> Each version of minetest I tried on gentoo is always in english, even if I
> build it with NLS.
> 
> The ebuild installs mo file here :
> > $ equery f minetest | grep "minetest.mo"
> > /usr/share/locale/fr/LC_MESSAGES/minetest.mo
> 
> But when I run minetest through strace it tries to load it from another
> directory :
> > open("/usr/share/games/minetest/locale/fr_FR.UTF-8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/games/minetest/locale/fr_FR.utf8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/games/minetest/locale/fr_FR/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/games/minetest/locale/fr.UTF-8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/games/minetest/locale/fr.utf8/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> > open("/usr/share/games/minetest/locale/fr/LC_MESSAGES/minetest.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
> 
> 
> In ebuilds, if I set CUSTOM_LOCALEDIR to the right location :
> > -		-DCUSTOM_LOCALEDIR="/usr/share/locale"
> > +		-DCUSTOM_LOCALEDIR="${GAMES_DATADIR}/${PN}/locale"
> 
> It works.

Can you please provide the build.log and emerge --info?
Comment 2 Fab 2015-02-24 00:39:00 UTC
Created attachment 397356 [details]
0.4.10-r1 build.log

$ emerge --info
Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.19-r1, 3.14.28 x86_64)
=================================================================
System uname: Linux-3.14.28-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     4018100 total,   1858752 free
KiB Swap:    6291444 total,   5871772 free
Timestamp of tree: Sun, 22 Feb 2015 08:15:02 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo java anders-larsson gnome15 voyageur steam-overlay netfab perso
Installed sets: @common-apps, @games-apps, @kde-apps, @portage-apps, @qemukvm, @system-apps, @xfce
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -mtune=generic -O2 -pipe -mcx16 -msahf -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7-avx -mtune=generic -O2 -pipe -mcx16 -msahf -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mno-movbe -mno-aes -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx2 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase"
DISTDIR="/portage/distpack/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs 3 --load-average 3 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.ovh.net/gentoo-distfiles/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/portage/distpack/packages/coreIx"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage/trees/gentoo"
PORTDIR_OVERLAY="/portage/trees/layman/java /portage/trees/layman/anders-larsson /portage/trees/layman/gnome15-overlay /portage/trees/layman/voyageur /portage/trees/layman/steam-overlay /portage/trees/netfab /portage/trees/perso"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gnutls gstreamer gtk gtk2 gtk3 hddtemp iconv id3tag java jpeg lcms libav libnotify lm_sensors mad matroska mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session sox spell sse sse2 ssl startup-notification steamruntime svg tcpd theora tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="directory fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Account Disabled (uid 86422) 2015-02-24 11:04:54 UTC
Created attachment 397380 [details]
modified ebuild with the suggested change

I applied the suggested change to the ebuild and tested it. Locales work now properly for me.
Comment 4 Account Disabled (uid 86422) 2015-03-10 15:08:55 UTC
Created attachment 398616 [details, diff]
Added suggested solution

Created a patch to make the change more visible.
Comment 5 Account Disabled (uid 86422) 2015-09-09 16:35:27 UTC
This one is fixed with the version bump to 0.4.13 , For further details look at:

https://github.com/gentoo/gentoo/commit/3425759f0eea03b9034d2207a731ebed2548c573