1 |
From: Michael Sullivan <michael@××××××××××××.com> |
2 |
Subject: Re: [gentoo-user] "xyz.la seems to be moved" message |
3 |
Date: Tue, 24 Oct 2006 14:43:37 -0500 |
4 |
|
5 |
> On Tue, 2006-10-24 at 18:34 +0200, Meino Christian Cramer wrote: |
6 |
> > From: Michael Sullivan <michael@××××××××××××.com> |
7 |
> > Subject: Re: [gentoo-user] "xyz.la seems to be moved" message |
8 |
> > Date: Tue, 24 Oct 2006 11:24:31 -0500 |
9 |
> > |
10 |
> > > On Tue, 2006-10-24 at 17:31 +0200, Fabrice Delliaux wrote: |
11 |
> > > > Hi, |
12 |
> > > > |
13 |
> > > > Explanation && patch here : |
14 |
> > > > |
15 |
> > > > http://www.mail-archive.com/bug-libtool@×××.org/msg00838.html |
16 |
> > > |
17 |
> > > I saved the patch at the above link to /root/libtool.patch, but I can't |
18 |
> > > figure out how to use it. I assume that I would need to navigate to a |
19 |
> > > directory and say "patch < /root/libtool.patch", but what directory do I |
20 |
> > > do it from? If I do it from /usr/share/libtool, I get this: |
21 |
> > > |
22 |
> > > camille libtool # patch </root/libtool.patch |
23 |
> > > patching file ltmain.sh |
24 |
> > > Hunk #1 FAILED at 2795. |
25 |
> > > 1 out of 1 hunk FAILED -- saving rejects to file ltmain.sh.rej |
26 |
> > > |
27 |
> > > If I do it from /, I get this: |
28 |
> > > |
29 |
> > > camille / # patch </root/libtool.patch |
30 |
> > > can't find file to patch at input line 3 |
31 |
> > > Perhaps you should have used the -p or --strip option? |
32 |
> > > The text leading up to this was: |
33 |
> > > -------------------------- |
34 |
> > > |--- /usr/share/libtool/ltmain.sh 2005-11-22 08:18:02.000000000 -0500 |
35 |
> > > |+++ ltmain.sh 2006-05-13 18:15:15.000000000 -0400 |
36 |
> > > -------------------------- |
37 |
> > > File to patch: |
38 |
> > > |
39 |
> > > |
40 |
> > > -- |
41 |
> > > gentoo-user@g.o mailing list |
42 |
> > > |
43 |
> > |
44 |
> > Hi Michael, |
45 |
> > |
46 |
> > I applied the patch by hand, my be it will work with the |
47 |
> > patch-command too. |
48 |
> > |
49 |
> > If you want to try it: |
50 |
> > cd /usr/share/libtool/. and apply the patch there with |
51 |
> > |
52 |
> > patch -p0 -i <your file of the patch here> |
53 |
> > |
54 |
> > If it does not work for you, please email me, I will send you the |
55 |
> > laready patched ltmain.sh attached to a private mail. |
56 |
> > |
57 |
> > Keep hacking! |
58 |
> > mcc |
59 |
> > |
60 |
> |
61 |
> I think I'm doing it wrong: |
62 |
> |
63 |
> camille libtool # patch -p0 -i /root/libtool.patch |
64 |
> patching file ltmain.sh |
65 |
> Hunk #1 FAILED at 2795. |
66 |
> 1 out of 1 hunk FAILED -- saving rejects to file ltmain.sh.rej |
67 |
> |
68 |
> |
69 |
> -- |
70 |
> gentoo-user@g.o mailing list |
71 |
> |
72 |
|
73 |
Hi Michael, |
74 |
|
75 |
...no, you did nothing wrong... |
76 |
|
77 |
"...hunk FAILED..." means: The file to be patched is to different |
78 |
from that one, from which the original patch was made. |
79 |
|
80 |
There is another way: |
81 |
As root edit /usr/share/libtool/ltmain.sh by hand (I did the same): |
82 |
In the file search for the string "seems to be moved" and then |
83 |
compare the context of that line with the text of the patch: There is |
84 |
one line to be removed and I think four or so to be added. Notging |
85 |
too complicate. Make a backup copy of ltmain.sh before. Make a diff |
86 |
afterwards and compare the output with the patch. |
87 |
|
88 |
If all fails: Mail me privately and we will find a solution. |
89 |
|
90 |
Keep hacking! |
91 |
mcc |
92 |
-- |
93 |
gentoo-user@g.o mailing list |