Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 316903 - sys-devel/autogen-5.10.1 fails with dash: ./bootstrap.dir: 45: source: not found
Summary: sys-devel/autogen-5.10.1 fails with dash: ./bootstrap.dir: 45: source: not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-24 11:19 UTC by Harald van Dijk (RETIRED)
Modified: 2010-09-15 09:27 UTC (History)
3 users (show)

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


Attachments
FAILURES.tar.gz (FAILURES.tar.gz,242.87 KB, application/x-gzip)
2010-04-25 07:55 UTC, Peter Volkov (RETIRED)
Details
autogen-build.log (build.log,71.24 KB, text/plain)
2010-04-25 07:55 UTC, Peter Volkov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2010-04-24 11:19:27 UTC
make[4]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.1/work/autogen-5.10.1/getdefs'
./bootstrap.dir: 45: source: not found
Re-building stamp-man
./bootstrap.dir: 335: run_ag: not found
make[3]: *** [stamp-man] Error 127
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.1/work/autogen-5.10.1/agen5'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.1/work/autogen-5.10.1/agen5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.1/work/autogen-5.10.1'
make: *** [all] Error 2
 ^[[31;01m*^[[0m ERROR: sys-devel/autogen-5.10.1 failed:
 ^[[31;01m*^[[0m   emake failed

The 'source' command is specific to bash, and is not supported by dash. autogen could just use '.' here. If I change that, the compile and install succeeds. I still get some testsuite failures, but they appear to be unrelated and I will report them separately after taking a better look at them.

Note that I am not seeing the error reported in bug #316583.

Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.5.0-alpha20100408, glibc-2.11-r1, 2.6.34-rc5 x86_64)
=================================================================
System uname: Linux-2.6.34-rc5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.1
Timestamp of tree: Fri, 23 Apr 2010 21:25:01 +0000
app-shells/bash:     4.1_p5
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r1
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3, 4.5.0_alpha20100408
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -ggdb -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--noconfmem --oneshot --verbose --with-bdeps=y"
FEATURES="assume-digests autopatch fixpackages news notitles preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="en_GB.UTF-8"
LDFLAGS="-Xlinker -O1 -Xlinker --as-needed"
LINGUAS="*"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
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="/etc/portage/layman/java-overlay /etc/portage/layman/sunrise /etc/portage/layman/toolchain /etc/portage/crossdev /etc/portage/overlay /var/cvs/gentoo-x86"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi ads alsa amd64 apache2 aspell berkdb bindist bzip2 cairo cdda cdparanoia cdr cjk cli consolekit cracklib crypt cups cvs dbus demo dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fts3 gcj gdbm gif git gnome gnome-keyring gnutls gstreamer gtk iconv inotify ipv6 ithreads java java5 java6 javascript jit jpeg kvm latex lcms ldap lto mad mbox mikmod mmx mmxext mng mp3 mp4 mpeg mudflap multilib ncurses nfs nls nocxx normalize nptl nptlonly nsplugin ntfs ogg opengl openmp optimized-qmake oss pam pango pcre pdf pdo perl pg_legacytimestamp pic png postgres ppds pppd preview-latex qt3support qt4 quicktime radio rdp readline reflection samba samba4 sdl secure-delete session smbclient spell spl sql sqlite sse sse2 ssl startup-notification subversion svg swat symlink sysfs system-sqlite tcl tcpd theora threads tidy tiff timidity tk tokenizer toolkit-scroll-bars truetype udev unicode usb v4l v4l2 vhosts videos vim-syntax vorbis x264 xattr xcb xcomposite xml xorg xscreensaver xulrunner xv xvid zlib" 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nv nvidia vesa" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-04-25 07:50:33 UTC
Please, try sys-devel/autogen-5.10.2_pre1. Tests still fail there but build should be fixed. It is hardmasked so you need to unmask it in /etc/portage/package.unmask prior to emerge.

I'll attach output of failed tests (with /bin/sh -> /bin/dash) shortly.

FAIL: nested.test
FAIL: cfg-edit.test
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2010-04-25 07:55:10 UTC
Created attachment 229047 [details]
FAILURES.tar.gz

this is archive of autogen-5.10.2pre1/autoopts/test/FAILURES directory, created with /bin/sh -> /bin/dash.

With /bin/sh -> /bin/bash this tests pass.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-04-25 07:55:59 UTC
Created attachment 229049 [details]
autogen-build.log

This is build.log with /bin/sh -> /bin/dash.
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2010-04-25 17:28:30 UTC
This is what I'm seeing with 5.10.2_pre1:

make[4]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.2_pre1/work/autogen-5.10.2pre1/getdefs'
./bootstrap.dir: 45: source: not found
cd: 1: can't cd to /dev/null
Re-building stamp-man
./bootstrap.dir: 336: run_ag: not found
make[3]: *** [stamp-man] Error 127
make[3]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.2_pre1/work/autogen-5.10.2pre1/agen5'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.2_pre1/work/autogen-5.10.2pre1/agen5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-devel/autogen-5.10.2_pre1/work/autogen-5.10.2pre1'
make: *** [all] Error 2

Your build log shows /bin/bash is called explicitly in several places where I'm seeing a call to /bin/sh. I suspect you will experience the same behaviour if in addition to setting /bin/sh -> dash, you export CONFIG_SHELL=/bin/sh, to prevent the configure script from automatically switching to bash.

(Note that on my system, I am not setting CONFIG_SHELL. Instead, my dash is a slightly enhanced unofficial version, and configure scripts consider that version good enough by default.)
Comment 5 Bruce Korb 2010-04-26 18:00:27 UTC
Assign self to CC list.

My assumption was that only autogen developers (me) would bother
with the bootstrapping steps.  With that assumption, I need
not worry over using weirdo tools, "bash" not seeming too
weirdo anyway.  ``source() { . "$1" ; }'' ought to fix the issue
until I bump out a new version.  Sorry for the nuisance.
Regards, Bruce
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2010-04-26 18:23:55 UTC
Thanks for the comment. I'm not doing any special bootstrapping steps, this is simply what happens after ./configure && make, the same as when I run that manually. I had noticed config/bootstrap already, with its #!/bin/bash header so that can't as easily be accidentally run by other shells, but I'm not using that.
Comment 7 Bruce Korb 2010-06-26 04:57:23 UTC
Oops.  I just made a release without fixing the "source" -> "." issue.
Next time.  Sorry.  It is in a pre-release, if that helps:
http://autogen.sourceforge.net/data/autogen-5.11pre1.tar.bz2
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2010-06-29 09:37:43 UTC
Thank you Bruce. Until somebody attaches patch here we'll better wait for release to incorporate this fixes.
Comment 9 Bruce Korb 2010-07-03 17:14:13 UTC
I expect to be getting the release out fairly soon, as there is
also bug 316583 that will get resolved with "pre4".
http://autogen.sourceforge.net/data/autogen-5.11pre4.tar.bz2
Comment 10 Peter Volkov (RETIRED) gentoo-dev 2010-09-15 09:27:24 UTC
5.11.1 is in the tree. This bug should be fixed. Thank you guys.