On a P595 System When i try to build apr-util the system fail apparently because the option passed to buildtool are eaten by something... Reproducible: Always Steps to Reproduce: 1.emerge -av apr-util 2. 3. Actual Results: unpack apr_dbd_mysql-r84.c: file format not recognized. Ignoring. Problem finding apr source in --wit../apr-1.2.11. Use: --with-apr=[directory] * * ERROR: dev-libs/apr-util-1.2.10 failed. * Call stack: * ebuild.sh, line 49: Called src_unpack * environment, line 3188: Called die * The specific snippet of code: * ./buildconf "--with-apr=../apr-${APR_PV}" || die "buildconf failed"; * The die message: * buildconf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/dev-libs:apr-util-1.2.10:20080515-154453.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/apr-util-1.2.10/temp/environment'. If I comment the builtool line inside the ebuild and recompute the digest I can build apr-util without problem.
Portage 2.1.4.4 (hardened/ppc64, gcc-4.2.3, glibc-2.7-r2, 2.6.23-hardened-r8 ppc64) ================================================================= System uname: 2.6.23-hardened-r8 ppc64 POWER5 (gr) Timestamp of tree: Thu, 08 May 2008 01:45:03 +0000 distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.17, 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="ppc64" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache clean distlocks fixpackages metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/" LANG="en_US.UTF-8" LC_ALL="et_EE.UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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/portage" SYNC="rsync://sunmanager/gentoo-portage" USE="a52 acl ads apache2 async bash-completion bashlogger berkdb bzip2 cgi cli cracklib crypt ctype divx4linux dvdread eix esearch examples exif fame gcj hardened hardenedphp idea imagemagick jbig ldap mbox midi mjpeg multislot multiuser mysql ncurses nptl nptlonly objc odbc pam pcre pdf perl pic ppc64 python quotas readline rrdtool session snmp sockets ssl swat syslog tcpd unicode urandom vhosts vim-syntax winbind xml xmlreader xmlwriter xorg xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
please try 1.2.12 and reopen if it still doesn't work
Same problem: >>> Unpacking source... >>> Unpacking apr-util-1.2.12.tar.gz to /var/tmp/portage/dev-libs/apr-util-1.2.12/work >>> Unpacking apr-1.2.12.tar.gz to /var/tmp/portage/dev-libs/apr-util-1.2.12/work Problem finding apr source in --wit../apr-1.2.12. Use: --with-apr=[directory] * * ERROR: dev-libs/apr-util-1.2.12 failed. * Call stack: * ebuild.sh, line 49: Called src_unpack * environment, line 3187: Called die * The specific snippet of code: * ./buildconf --with-apr=../apr-${PV} || die "buildconf failed"; * The die message: * buildconf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/dev-libs:apr-util-1.2.12:20080605-144554.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/apr-util-1.2.12/temp/environment'. *
Very Very strange behaviour!!! I've analyze deeply the problem and I've found a very strange things. I've modified the ebuild to run buildconf like "sh -x buildconf" and this is the result: + sh -x buildconf --with-apr=../apr-1.2.12 + apr_src_dir=../apr + test 1 -gt 0 + case "$1" in ++ echo --with-apr=../apr-1.2.12 ++ sed 's/[-_a-zA-Z0-9]*=//' + optarg=--wit../apr-1.2.12 + case "$1" in + apr_src_dir=--wit../apr-1.2.12 + shift + test 0 -gt 0 + '[' -f --wit../apr-1.2.12/build/apr_common.m4 ']' + echo '' + echo 'Problem finding apr source in --wit../apr-1.2.12.' Problem finding apr source in --wit../apr-1.2.12. So there, inside the build process, the sed doesn't work properly, while if I run the same command from the shell I get the correct result...
I've found a workaround...But it'snt the SOLUTION. Comment the line: sh -x buildconf --with-apr=../apr-${PV} || die "buildconf failed" from the ebuild recreate the digest and I now I can build apr-util without problem.
please try 1.2.12 or 1.3.0 again, it doesn't use buildconf anymore