From: Michael Sullivan <[EMAIL PROTECTED]> Subject: Re: [gentoo-user] "xyz.la seems to be moved" message Date: Tue, 24 Oct 2006 14:43:37 -0500
> On Tue, 2006-10-24 at 18:34 +0200, Meino Christian Cramer wrote: > > From: Michael Sullivan <[EMAIL PROTECTED]> > > Subject: Re: [gentoo-user] "xyz.la seems to be moved" message > > Date: Tue, 24 Oct 2006 11:24:31 -0500 > > > > > On Tue, 2006-10-24 at 17:31 +0200, Fabrice Delliaux wrote: > > > > Hi, > > > > > > > > Explanation && patch here : > > > > > > > > http://www.mail-archive.com/[email protected]/msg00838.html > > > > > > I saved the patch at the above link to /root/libtool.patch, but I can't > > > figure out how to use it. I assume that I would need to navigate to a > > > directory and say "patch < /root/libtool.patch", but what directory do I > > > do it from? If I do it from /usr/share/libtool, I get this: > > > > > > camille libtool # patch </root/libtool.patch > > > patching file ltmain.sh > > > Hunk #1 FAILED at 2795. > > > 1 out of 1 hunk FAILED -- saving rejects to file ltmain.sh.rej > > > > > > If I do it from /, I get this: > > > > > > camille / # patch </root/libtool.patch > > > can't find file to patch at input line 3 > > > Perhaps you should have used the -p or --strip option? > > > The text leading up to this was: > > > -------------------------- > > > |--- /usr/share/libtool/ltmain.sh 2005-11-22 08:18:02.000000000 -0500 > > > |+++ ltmain.sh 2006-05-13 18:15:15.000000000 -0400 > > > -------------------------- > > > File to patch: > > > > > > > > > -- > > > [email protected] mailing list > > > > > > > Hi Michael, > > > > I applied the patch by hand, my be it will work with the > > patch-command too. > > > > If you want to try it: > > cd /usr/share/libtool/. and apply the patch there with > > > > patch -p0 -i <your file of the patch here> > > > > If it does not work for you, please email me, I will send you the > > laready patched ltmain.sh attached to a private mail. > > > > Keep hacking! > > mcc > > > > I think I'm doing it wrong: > > camille libtool # patch -p0 -i /root/libtool.patch > patching file ltmain.sh > Hunk #1 FAILED at 2795. > 1 out of 1 hunk FAILED -- saving rejects to file ltmain.sh.rej > > > -- > [email protected] mailing list > Hi Michael, ...no, you did nothing wrong... "...hunk FAILED..." means: The file to be patched is to different from that one, from which the original patch was made. There is another way: As root edit /usr/share/libtool/ltmain.sh by hand (I did the same): In the file search for the string "seems to be moved" and then compare the context of that line with the text of the patch: There is one line to be removed and I think four or so to be added. Notging too complicate. Make a backup copy of ltmain.sh before. Make a diff afterwards and compare the output with the patch. If all fails: Mail me privately and we will find a solution. Keep hacking! mcc -- [email protected] mailing list

