When /bin/sh is dash, openttd-0.7.0 fails to configure with the following error: <snip> checking OSX sysroot... not OSX, skipping checking OSX application bundle... not OSX, skipping checking revision... release (0.7.0) checking iconv... found ./configure: 1: Syntax error: Bad fd number For completeness: my emerge --info Portage 2.2_rc28 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.26-gentoo-r3 i686) ================================================================= System uname: Linux-2.6.26-gentoo-r3-i686-Intel-R-_Pentium-R-_D_CPU_2.80GHz-with-gentoo-2.0.0 Timestamp of tree: Sun, 05 Apr 2009 11:45:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2, 2.6.1-r1 dev-python/pycrypto: 2.0.1-r8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.3-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/distfiles" FEATURES="candy distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.UTF-8" LDFLAGS="-Wl,--as-needed -Wl,-O1" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/var/binfiles" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/layman/sunrise /usr/local/layman/portato /usr/local/layman/bazaar /usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="X a52 aac alsa apache2 asf berkdb bluetooth branding bzip2 bzr cairo cdr cli cracklib crypt css cups dbus dri dvd dvdread emboss encode evo fam flac gdbm gif gpm gtk hal iconv ipv6 isdnlog jpeg kdehiddenvisibility latex libnotify mad matroska midi mikmod mmap mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pcre pdf perl png ppds pppd python qt3support quicktime readline reflection scanner sdl session spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb vim-syntax vorbis win32codecs x86 xcb xml xorg xulrunner xv xvid xvmc zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 187368 [details, diff] openttd-0.7.0-fix-shell.patch Fixes the shebang line for the configure script: Now states /bin/bash
fixed. thanks for the bug report.
Created attachment 188071 [details, diff] Dash configure fix (real) Fix configure to work correctly under dash
The above fix is not a fix, it is a big hack. Dash is perfectly capable of running the configure, but has 2 mistakes in iconv detection. Here is the real fix: http://vcs.openttd.org/svn/changeset/16035 Also, we would kindly want to ask to report such problems upstream (http://bugs.openttd.org). This helps us improving the game, as of course such problem is not Gentoo specific. Thank you!
Reopening for the real fix
> Also, we would kindly want to ask to report such problems upstream > (http://bugs.openttd.org). This helps us improving the game, as of course such > problem is not Gentoo specific. > > Thank you! > Well when i wanted to report the former buildsystem issues the page was throwing 404 all the time ;] Keep up the good game rocking :P
the work-around is fine for now and since upstream seems to be paying attention, I assume it'll be fixed in 0.7.1 where we'll pick it up.