Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264963 - games-simulation/openttd-0.7.0 fails to configure with /bin/sh being dash
Summary: games-simulation/openttd-0.7.0 fails to configure with /bin/sh being dash
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-05 12:45 UTC by René 'Necoro' Neumann
Modified: 2009-04-13 02:21 UTC (History)
2 users (show)

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


Attachments
openttd-0.7.0-fix-shell.patch (openttd-0.7.0-fix-shell.patch,237 bytes, patch)
2009-04-05 12:46 UTC, René 'Necoro' Neumann
Details | Diff
Dash configure fix (real) (changeset_r16035.diff,578 bytes, patch)
2009-04-12 09:26 UTC, Patric Stout
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René 'Necoro' Neumann 2009-04-05 12:45:00 UTC
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
Comment 1 René 'Necoro' Neumann 2009-04-05 12:46:30 UTC
Created attachment 187368 [details, diff]
openttd-0.7.0-fix-shell.patch

Fixes the shebang line for the configure script: Now states /bin/bash
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-04-05 17:38:05 UTC
fixed.  thanks for the bug report.
Comment 3 Patric Stout 2009-04-12 09:26:08 UTC
Created attachment 188071 [details, diff]
Dash configure fix (real)

Fix configure to work correctly under dash
Comment 4 Patric Stout 2009-04-12 09:26:32 UTC
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!
Comment 5 Mart Raudsepp gentoo-dev 2009-04-12 22:22:38 UTC
Reopening for the real fix
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-04-12 22:29:08 UTC
> 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
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2009-04-13 02:21:00 UTC
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.