First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 145008
Alias:
Product:
Component:
Status: CLOSED
Resolution: FIXED
Assigned To: Lars Weiler (RETIRED) <pylon@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Oliver Schinagl <oliver@schinagl.nl>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 145008 depends on: Show dependency tree
Bug 145008 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-24 13:16 0000
I just upgraded my openttd to 0.4.8 and it won't start anymore, checking in the
console I get some red error about missing language packs:

Error: No available language packs

How do I get these? The ebuild output doesn't mention anything, nor is google
helpfull. I quickly glanced in the ebuild and saw it does try to install some
<lang>.lng files, which it did install (/opt/share/games/openttd/lang/dutch.lng
and /opt/share/games/openttd/lang/english.lng for example)

If I'm missing something, or am supposed to do something, then a) why doesn't
the ebuild do it somewhat automagically, b) tell me about it like it tells me
about all the other things at the end of the ebuild.

------- Comment #1 From Lars Weiler (RETIRED) 2006-08-25 00:39:50 0000 -------
Post the output of `locale`.  `emerge --info` would also be great.

------- Comment #2 From Oliver Schinagl 2006-08-25 07:51:46 0000 -------
oliver@valexia ~ $ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
oliver@valexia ~ $ emerge --info

*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.

Portage 2.1.1_pre5-r3 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3,
2.6.17-gentoo-r5 i686)
=================================================================
System uname: 2.6.17-gentoo-r5 i686 AMD Sempron(tm)
Gentoo Base System version 1.12.4
Last Sync: Tue, 22 Aug 2006 14:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms
strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/            
http://ftp.snt.utwente.nl/pub/os/linux/gentoo               
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo           
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LINGUAS=""
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/opt/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 7zip X a52 aac acpi aim alsa apache2 audiofile avi
bash-completion bcmath berkdb bindist bitmap-fonts boundschecking bzip2 cairo
calendar cddb cdinstall cdparanoia cdr cli crypt cscope cups curl curlwrappers
dbus dlloader dri dvd dvdr dvdread elibc_glibc encode fam ffmpeg fftw firefox
flac gif gnutls gphoto2 gstreamer gtk gtk2 hal icq idn imap imlib
input_devices_evdev input_devices_joystick input_devices_keyboard
input_devices_mouse ipv6 isdnlog jabber joystick jpeg jpeg2k kerberos
kernel_linux ldap libedit libwww lirc lirc_devices_uirt2_raw lm_sensors lzo mad
maildir matroska mhash mikmod mime mmx mng mozilla mp3 mpeg msn netboot nocd
nodrm nowin nptl nptlonly nsplugin offensive ofx ogg openal opengl osc oscar
pam pcre pdf pdflib png portaudio pppd python quicktime readline recode
reflection scanner scenarios sdl session shorten sndfile sox speex spell spl
sse ssl svg sysvipc tcpd theora tidy tiff truetype truetype-fonts type1-fonts
udev unicode usb userland_GNU v4l v4l2 vcd video_cards_ati video_cards_fglrx
video_cards_radeon video_cards_v4l videos vorbis win32codecs wma x264
xcomposite xface xine xinerama xml xml2 xmms xorg xosd xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS



Now the 'locale' thing is not only new, but also very interesting, i'll try and
go figure something with that out : )

I think i haven't gotten 'any' language set ... oh the good old days. I suppose
however the gentoo handbook has to be updated to include that you set a
language now.

------- Comment #3 From Oliver Schinagl 2006-08-25 07:59:41 0000 -------
little update, set my locale and everything I think and also the linguas var,
haven't compiled yet, but here's what I get now:

oliver@valexia ~ $ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US
oliver@valexia ~ $ openttd
Error: No available language packs

------- Comment #4 From Lars Weiler (RETIRED) 2006-08-26 17:15:48 0000 -------
That's very odd.  Do you have a ~/.openttd from an older install?  Can you try
with moving the directory?

Otherwise I don't have any clue currently.  openttd works for me when I start
it with en_US set as locale.

------- Comment #5 From Oliver Schinagl 2006-11-17 17:03:07 0000 -------
Still hasn't been fixed ... I finally installed strace (for unrelated problem)
and finding out what it does, I figured I'd run it on openttd.

open("/usr/share/games/openttd/lang/",
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = -1 ENOENT (No such file or
directory)

hah! busted it's true, I don't have that directory.

I do use $GAMES_DATADIR/openttd/lang.

The path is hardcoded in the game to /usr/share/games/openttd/lang so it's an
upstream bug really, but could be patched in the meantime here. (I'm not aware
how games.eclass does this exactly; should configure script catch this?)

------- Comment #6 From Lars Weiler (RETIRED) 2006-12-16 16:17:15 0000 -------
(In reply to comment #5)
> I do use $GAMES_DATADIR/openttd/lang.
> 
> The path is hardcoded in the game to /usr/share/games/openttd/lang so it's an
> upstream bug really, but could be patched in the meantime here. (I'm not aware
> how games.eclass does this exactly; should configure script catch this?)

It's set to $PREFIX/$GAMES_DATADIR, which is /usr/share/games/openttd in our
case.  But the lang-files are copied from the ebuild into Gentoo's
${GAMES_DATADIR}/openttd/lang.

I can't find any line in the sources where the GAMES_DATADIR is hardcoded to
/usr/share/games/openttd.

Have a look at the install-output of openttd, where the lang files are
installed into or if there is a failure during copy somewhere.

------- Comment #7 From Oliver Schinagl 2006-12-18 08:22:34 0000 -------
--- /opt/share/games/openttd/lang/
>>> /opt/share/games/openttd/lang/american.lng
>>> /opt/share/games/openttd/lang/brazilian_portuguese.lng
>>> /opt/share/games/openttd/lang/catalan.lng
>>> /opt/share/games/openttd/lang/czech.lng
>>> /opt/share/games/openttd/lang/danish.lng
>>> /opt/share/games/openttd/lang/dutch.lng
>>> /opt/share/games/openttd/lang/english.lng


whereas my /etc/make.conf clearly says:

GAMES_PREFIX_OPT="/opt/games"
GAMES_DATADIR="/opt/share/games"
GAMES_DATADIR_BASE="/opt/share"

------- Comment #8 From Oliver Schinagl 2006-12-18 08:24:15 0000 -------
--- /opt/share/games/openttd/lang/
>>> /opt/share/games/openttd/lang/american.lng
>>> /opt/share/games/openttd/lang/brazilian_portuguese.lng
>>> /opt/share/games/openttd/lang/catalan.lng
>>> /opt/share/games/openttd/lang/czech.lng
>>> /opt/share/games/openttd/lang/danish.lng
>>> /opt/share/games/openttd/lang/dutch.lng
>>> /opt/share/games/openttd/lang/english.lng


whereas my /etc/make.conf clearly says:

GAMES_PREFIX_OPT="/opt/games"
GAMES_DATADIR="/opt/share/games"
GAMES_DATADIR_BASE="/opt/share"

so that is all correct, however when running/launching the game, as noted
earlier, it tries to find them in /usr/share/games.

------- Comment #9 From Lars Weiler (RETIRED) 2007-01-06 16:05:51 0000 -------
Well, this one was a bit harder and I had to do some Makefile-voodoo.  But now
it should work.

Thanks for your patience :)

------- Comment #10 From Oliver Schinagl 2007-01-08 23:43:55 0000 -------
Uninstalled, openttd, removed the /usr/share/games/openttd symlink I made,
reemerged openttd, and it ran right away.

Closing.

First Last Prev Next    No search results available      Search page      Enter new bug