Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 176667

Summary: Multiple build failures due to elibtoolize failure.
Product: Gentoo Linux Reporter: Peter Westwood <peter.westwood>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: Rod
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Westwood 2007-05-01 11:24:53 UTC
I am getting multiple package builds failing with this error (or one similar):

 * Running elibtoolize in: shadow-4.0.18.1
 * Portage patch failed to apply (ltmain.sh version 1.5.22)!
 * Please bug azarah or vapier to add proper patch.

 * Running elibtoolize in: mysql/bdb/dist
 * Portage patch failed to apply (ltmain.sh version 1.4.2)!
 * Please bug azarah or vapier to add proper patch.

This is stopping me repairing my system.

I have tried rebuilding the system target in a clean chroot, to get binary pacakges to fix my system, based on a stage file and am now getting this error there as well.
Comment 1 Peter Westwood 2007-05-01 11:26:03 UTC
Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.14-hardened-r1 i686)
=================================================================
System uname: 2.6.14-hardened-r1 i686 VIA Nehemiah
Gentoo Base System release 1.12.6
Timestamp of tree: Tue, 01 May 2007 03:50:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.60
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O1 -mtune=c3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O1 -mtune=c3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk"
LINGUAS="en"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="apache2 authdaemond bash-completion berkdb cgi crypt curl dar64 encode ffmpeg flac gd hardened imap jpeg live maildir midi mp3 mys
ql ncurses network nls nptl pam pcre perl php pic png python readline sasl snmp spell sqlite ssl suhosin tcpd unicode urandom vhosts x8
6 xml xorg 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayr
ad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTR
A_OPTS
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-01 20:27:36 UTC
Shrug, your sys-devel/patch segfaults most like; try to re-emerge it or get a working binpkg.
Comment 3 Peter Westwood 2007-05-02 06:18:10 UTC
(In reply to comment #2)
> Shrug, your sys-devel/patch segfaults most like; try to re-emerge it or get a
> working binpkg.
> 

Patch works fine as far as I can see and has been used earlier in the build process for mysql to apply patches:

 * Applying various patches (bugfixes/updates) ...
 *   035_x86_asm-pic-fixes-4.1.12.patch ...                                                                                                               [ ok ]
 *   105_all_mysql_config_cleanup.patch ...                                                                                                               [ ok ]
 *   202_all_embedded-library-compile-5.0.38.patch ...                                                                                                    [ ok ]
 *   703_all_test-rpl_rotate_logs-5.0.21.patch ...                                                                                                        [ ok ]
 *   704_all_disable_mybug_9735_test.patch ...                                                                                                            [ ok ]
 *   706_all_fix-nullpointer-dos.patch ...                                                                                                                [ ok ]
 *   707_all_fix-nullpointer-dos-testcase.patch ...                                                                                                       [ ok ]
 * Done with patching
 * Reconfiguring dir '.'
 * Running eautoreconf in '/var/tmp/portage/mysql-5.0.38/work/mysql/innobase' ...
 * Running aclocal ...                                                                                                                                    [ ok ]
 * Running libtoolize --copy --force --automake ...                                                                                                       [ ok ]
 * Running aclocal ...                                                                                                                                    [ ok ]
 * Running autoconf ...                                                                                                                                   [ ok ]
 * Running autoheader ...                                                                                                                                 [ ok ]
 * Running automake --add-missing --copy --foreign ...                                                                                                    [ ok ]
 * Running eautoreconf in '/var/tmp/portage/mysql-5.0.38/work/mysql' ...
 * Running aclocal ...                                                                                                                                    [ ok ]
 * Running libtoolize --copy --force --automake ...                                                                                                       [ ok ]
 * Running aclocal ...                                                                                                                                    [ ok ]
 * Running autoconf ...                                                                                                                                   [ ok ]
 * Running autoheader ...                                                                                                                                 [ ok ]
 * Running automake --add-missing --copy --foreign ...                                                                                                    [ ok ]
 * Running elibtoolize in: mysql/bdb/dist

 * Portage patch failed to apply (ltmain.sh version 1.4.2)!
 * Please bug azarah or vapier to add proper patch.

!!! ERROR: dev-db/mysql-5.0.38 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  ebuild.sh, line 1255:   Called mysql_src_unpack
  mysql.eclass, line 540:   Called eautoreconf
  autotools.eclass, line 103:   Called elibtoolize
  libtool.eclass, line 305:   Called die
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-05-02 07:14:29 UTC
(In reply to comment #3)
> Patch works fine as far as I can see and has been used earlier in the build
> process for mysql to apply patches:

Well, it apparently doesn't work fine as it bombs out later on. So, as said, get yourself a known working binpkg of patch; there are no patches missing anywhere, so we can't add them.
Comment 5 Rod Smart 2009-01-03 05:03:51 UTC
I am now getting this same problem, I have read down to "Post 4" and there is no real help other than "try and find a binpkg" Ummmm ok, thats really helpful

I'm running Patch version ..
sys-devel/patch
      Latest version available: 2.5.9-r1
      Latest version installed: 2.5.9-r1
      Size of files: 197 kB
      Homepage:      http://www.gnu.org/software/patch/patch.html
      Description:   Utility to apply diffs to files
      License:       GPL-2

and I get the following..

 # emerge -u  dev-libs/libmcrypt 
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/libmcrypt-2.5.8-r1
 * libmcrypt-2.5.8.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking libmcrypt-2.5.8.tar.gz to /var/tmp/portage/dev-libs/libmcrypt-2.5.8-r1/work
 * Applying libmcrypt-2.5.8-rotate-mask.patch ...                                                                                                      [ ok ]
 * Running elibtoolize in: libmcrypt-2.5.8
 *   Applying install-sh-1.5.patch ...

 * Portage patch failed to apply (ltmain.sh version 1.5.22)!
 * Please bug azarah or vapier to add proper patch.
 * 
 * ERROR: dev-libs/libmcrypt-2.5.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2363:  Called elibtoolize
 *             environment, line  942:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch failed to apply!";
 *  The die message:
 *   Portage patch failed to apply!
 * 
 * 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:libmcrypt-2.5.8-r1:20090103-044319.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libmcrypt-2.5.8-r1/temp/environment'.
 * 

>>> Failed to emerge dev-libs/libmcrypt-2.5.8-r1, Log file:

>>>  '/var/log/portage/dev-libs:libmcrypt-2.5.8-r1:20090103-044319.log'

 * Messages for package dev-libs/libmcrypt-2.5.8-r1:

 * Portage patch failed to apply (ltmain.sh version 1.5.22)!
 * Please bug azarah or vapier to add proper patch.
 * 
 * ERROR: dev-libs/libmcrypt-2.5.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2363:  Called elibtoolize
 *             environment, line  942:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch failed to apply!";
 *  The die message:
 *   Portage patch failed to apply!
 * 
 * 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:libmcrypt-2.5.8-r1:20090103-044319.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libmcrypt-2.5.8-r1/temp/environment'.
 * 

The log file from above has this..
>>> Unpacking source...
>>> Unpacking libmcrypt-2.5.8.tar.gz to /var/tmp/portage/dev-libs/libmcrypt-2.5.8-r1/work
 * Applying libmcrypt-2.5.8-rotate-mask.patch ...
  [ ok ]
 * Running elibtoolize in: libmcrypt-2.5.8
 *   Applying install-sh-1.5.patch ...

 * Portage patch failed to apply (ltmain.sh version 1.5.22)!
 * Please bug azarah or vapier to add proper patch.
 * 
 * ERROR: dev-libs/libmcrypt-2.5.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2363:  Called elibtoolize
 *             environment, line  942:  Called die
 * The specific snippet of code:
 *                                   die "Portage patch failed to apply!";
 *  The die message:
 *   Portage patch failed to apply!
 * 
 * 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:libmcrypt-2.5.8-r1:20090103-044319.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libmcrypt-2.5.8-r1/temp/environment'.
 *

I manually installed patch-2.5.4 and the same problems are happening, now someone has said there is a possible "Seg Fault" but I cannot see that coming up unless its not reporting to screen that it has happened.

If I change the patch.c file to use "mkstemp" as it warns what it should be changed to as its safer, I get it not able to make the temp files.

Stating "Well, it apparently doesn't work fine as it bombs out later on. So, as said,
get yourself a known working binpkg of patch; there are no patches missing
anywhere, so we can't add them."

This isn't AFAIKS a solution, as you stated there is still a problem, (as said above) but then the bug is marked as RESOLVED, Question, how can something be resolved if the problem still exists?

I'm with the original poster, I ca no longer update my system with this current issue, ok the dates are different, but the symptoms are the same, I have had this problem for about a month since I upgraded the system and it took in the building and showing problems with the "@" symbol, I cannot go forards or backwards, many packages just will no longer build.

I'm not sure if I'm logged in or not.
Here is my mail address
Rod -> Rods id au