Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 319183 - libtool.eclass - Portage patch failed to apply (ltmain.sh version 1.5.22)! // * Please bug azarah or vapier to add proper patch.
Summary: libtool.eclass - Portage patch failed to apply (ltmain.sh version 1.5.22)! /...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 319181 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-10 17:33 UTC by Christian
Modified: 2010-05-11 23:11 UTC (History)
0 users

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


Attachments
emerge info (emergeinfo,13.41 KB, text/plain)
2010-05-10 17:37 UTC, Christian
Details
log from gvfs (ebuild.log,240.36 KB, text/plain)
2010-05-11 03:59 UTC, Christian
Details
eclasses (libtool.log,2.71 KB, text/plain)
2010-05-11 04:00 UTC, Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2010-05-10 17:33:50 UTC
Hi, since last week I have a few packages, which i can't emerge anymore. Here is the output of firefox as example. the other packages (gvfs and xulrunner I discovered to now) break at the same point with same error.

>>> Emerging (1 of 1) www-client/mozilla-firefox-3.6.3
 * firefox-3.6.3.source.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                         [ ok ]
 * mozilla-firefox-3.6-patches-0.6.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
 * mozilla-firefox-3.6.3-de.xpi RMD160 SHA1 SHA256 size ;-) ...                         [ ok ]
 * checking ebuild checksums ;-) ...                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                  [ ok ]
 * CPV:  www-client/mozilla-firefox-3.6.3                                                     
 * REPO: gentoo                                                                               
 * USE:  alsa amd64 custom-optimization dbus elibc_glibc java kernel_linux libnotify linguas_de linguas_en multilib startup-notification userland_GNU                                         
 *                                                                                             
 * You are enabling official branding. You may not redistribute this build                     
 * to any users on your network or the internet. Doing so puts yourself into                   
 * a legal problem with Mozilla Foundation                                                     
 * You can disable it by emerging mozilla-firefox _with_ the bindist USE-flag                  
 * Using: icedtea6                                                                             
>>> Unpacking source...                                                                        
>>> Unpacking firefox-3.6.3.source.tar.bz2 to /var/tmp/portage/www-client/mozilla-firefox-3.6.3/work                                                                                          
>>> Unpacking mozilla-firefox-3.6-patches-0.6.tar.bz2 to /var/tmp/portage/www-client/mozilla-firefox-3.6.3/work                                                                               
 * Unpacking mozilla-firefox-3.6.3-de.xpi to /var/tmp/portage/www-client/mozilla-firefox-3.6.3/work                                                                                           
>>> Source unpacked in /var/tmp/portage/www-client/mozilla-firefox-3.6.3/work                  
>>> Preparing source in /var/tmp/portage/www-client/mozilla-firefox-3.6.3/work/mozilla-1.9.2 ...                                                                                              
 * Applying various patches (bugfixes/updates) ...                                             
 *   001-firefox_gentoo_install_dirs.patch ...                                           [ ok ]
 *   100-bz386904_config_rules_install_dist_files.patch ...                              [ ok ]
 *   116-gentoo_no_app_updates.patch ...                                                 [ ok ]
 *   137-bz460917_att350845_reload_new_plugins-gentoo-update.patch ...                   [ ok ]
 *   300-xulrunner-fix-jemalloc-vs-aslr.patch ...                                        [ ok ]
 *   301-xulrunner-xpctools.patch ...                                                    [ ok ]
 *   302_fix-java-xpcom.patch ...                                                        [ ok ]
 *   400-libdl.patch ...                                                                 [ ok ]
 *   401-libsydney_oss.patch ...                                                         [ ok ]
 *   402-oggzfbsd.patch ...                                                              [ ok ]
 *   700-sparc-build.patch ...                                                           [ ok ]
 * Done with patching                                                                          
 * Applying xulrunner-1.9.2-noalsa-fixup.patch ...                                       [ ok ]
 * Applying 1000_fix_alignment.patch ...                                                 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/www-client/mozilla-firefox-3.6.3/work/mozilla-1.9.2' ...                                                                                          
 * Running autoconf ...                                                                  [ ok ]
 * Running elibtoolize in: mozilla-1.9.2/toolkit/crashreporter/google-breakpad/autotools       

 * Portage patch failed to apply (ltmain.sh version 1.5.22)!
 * Please bug azarah or vapier to add proper patch.         
 * ERROR: www-client/mozilla-firefox-3.6.3 failed:          
 *   Portage patch failed to apply!                         
 *                                                          
 * Call stack:                                              
 *     ebuild.sh, line   54:  Called src_prepare            
 *   environment, line 5561:  Called eautoreconf            
 *   environment, line 1491:  Called elibtoolize            
 *   environment, line 1868:  Called die                    
 * The specific snippet of code:                            
 *                                   die "Portage patch failed to apply!";
 *                                                                        
 * If you need support, post the output of 'emerge --info =www-client/mozilla-firefox-3.6.3',
 * the complete build log and the output of 'emerge -pqv =www-client/mozilla-firefox-3.6.3'. 
!!! When you file a bug report, please include the following information:                    
GENTOO_VM=icedtea6  CLASSPATH="" JAVA_HOME="/usr/lib/icedtea6"                               
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""                                             
and of course, the output of emerge --info                                                   
 * The complete build log is located at '/var/tmp/portage/www-client/mozilla-firefox-3.6.3/temp/build.log'.                                                                                   
 * The ebuild environment file is located at '/var/tmp/portage/www-client/mozilla-firefox-3.6.3/temp/environment'.                                                                            
 * S: '/var/tmp/portage/www-client/mozilla-firefox-3.6.3/work/mozilla-1.9.2'
Comment 1 Christian 2010-05-10 17:37:38 UTC
Created attachment 230995 [details]
emerge info

emergeinfo
Comment 2 Rafał Mużyło 2010-05-10 18:36:11 UTC
*** Bug 319181 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2010-05-11 03:20:24 UTC
first, pick a smaller package that fails.  mozilla-firefox is huge.

then run:
emerge --debug <pkg> >& ebuild.log

followed by:
ls -R /usr/portage/eclass/ELT-patches/ >& libtool.log

then post those logs as attachments
Comment 4 Christian 2010-05-11 03:59:46 UTC
Created attachment 231039 [details]
log from gvfs
Comment 5 Christian 2010-05-11 04:00:09 UTC
Created attachment 231041 [details]
eclasses
Comment 6 SpanKY gentoo-dev 2010-05-11 05:15:24 UTC
your `patch` looks screwed up.  what version is it ?

it should look like:
$ tar xf /usr/portage/distfiles/gvfs-1.4.3.tar.bz2
$ cd gvfs-1.4.3
$ patch -p0 -g0 --no-backup-if-mismatch ltmain.sh /usr/portage/eclass/ELT-patches/portage/2.2 patching file ltmain.sh
Hunk #1 succeeded at 8059 (offset 649 lines).
Hunk #2 succeeded at 8169 with fuzz 2 (offset 649 lines).
Comment 7 Christian 2010-05-11 13:15:09 UTC
i've read about this already, and also reinstalled patch once. but with no sucess. also, with other packages (like firefox) multiple patches are applied correctly, and only at the elibtoolize point it fails. and why does patch suddenly fail? it wasn't reinstalled ever:

genlop patch
 * sys-devel/patch

     Fri Feb 27 11:59:21 2009 >>> sys-devel/patch-2.5.9
     Fri May  7 19:31:33 2010 >>> sys-devel/patch-2.5.9

the installation from 7th May was after the problem occured. So, how did it break, and how to fix it?
Comment 8 SpanKY gentoo-dev 2010-05-11 19:52:30 UTC
you didnt show what happens when you run the command manually
Comment 9 Christian 2010-05-11 20:54:53 UTC
ah, sorry. didn't understand you...
I can unpack the package, but when I run the patch command, nothing happens.
at least for 5 minutes now. I'm not sure, but i don't think, that patch should take so long. No output (even with --verbose switch) and the console doesn't return. In htop, the status is "sleeping". 
Just as sidenote: when I start firefox from console, the same happens: no window, no output, console not returning. (that's why i wanted to reemerge firefox, and so I came to the emerge-problem) Maybe its  related? a little difference: "patch --help" shows me the correct output, but "firefox -h" (which should show a list of commandline parameters) doesn't to anything, too.

I hope u have an idea, what's wrong...
Comment 10 SpanKY gentoo-dev 2010-05-11 22:06:12 UTC
i dont think you ran `patch` correctly.  notice how bugzilla line wrapped in my comment.  you need to run:

patch \
  -p0 -g0 --no-backup-if-mismatch \
  ltmain.sh \
  /usr/portage/eclass/ELT-patches/portage/2.2

if it fails, run it through `strace` and post the log as an attachment
Comment 11 Christian 2010-05-11 22:29:32 UTC
you are right. i thought, the /usr/portage... part was part of output. here it is:

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- ltmain.sh
|+++ ltmain.sh
--------------------------
Patching file ltmain.sh using Plan A...
Hunk #1 succeeded at 8059 (offset 649 lines).
Hunk #2 succeeded at 8169 with fuzz 2 (offset 649 lines).
done

I'm not quite sure what this means. no experience with patch.
and so it isn't related to my firefox-problem i guess :)
Comment 12 SpanKY gentoo-dev 2010-05-11 22:55:19 UTC
that patch output doesnt make sense if you ran the command that i did.  did you manually add --verbose ?
Comment 13 Christian 2010-05-11 23:11:31 UTC
sorry, you are right. i tried the verbose switch before, as nothing happend, and now i used bashhistory and didn't remove it. Here again the right output:

~/gvfs-1.4.3 $ patch -p0 -g0 --no-backup-if-mismatch ltmain.sh /usr/portage/tree/official/eclass/ELT-patches/portage/2.2
patching file ltmain.sh
Hunk #1 succeeded at 8059 (offset 649 lines).
Hunk #2 succeeded at 8169 with fuzz 2 (offset 649 lines).