Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
* Could not apply portage.patch!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Mon Jan 26, 2004 7:34 pm    Post subject: * Could not apply portage.patch! Reply with quote

Ho spulciao il forum ma nn ho trovato soluzione...
il problema e' che con qualche emerge ottengo questo messaggio:
Quote:

[stekkino:/usr/src/linux] > emerge aalib
Calculating dependencies ...done!
>>> emerge (1 of 1) media-libs/aalib-1.4_rc4-r2 to /
>>> md5 src_uri ;-) aalib-1.4rc4.tar.gz
>>> Unpacking source...
>>> Unpacking aalib-1.4rc4.tar.gz to /var/tmp/portage/aalib-1.4_rc4-r2/work
* Applying aalib-1.4_rc4-gentoo.diff... [ ok ]
>>> Source unpacked.
* Patching ${S}/ltmain.sh...
* Could not apply portage.patch!
* Please verify that it is not needed.
* Cannot apply any patch, running libtoolize...
You should update your `aclocal.m4' by running aclocal.
creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
...


anche se poi la compilazione mi va abuon fine.
In questo caso mi e' capitato con le aalib ma per esempio mi capita anche con le libungif... quanlche idea??? E' pericolosa la faccenda se non vengono installate le patch di gentoo??
_________________
HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Jan 26, 2004 10:19 pm    Post subject: Reply with quote

Per curiosità: che shell usi?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Tue Jan 27, 2004 1:17 am    Post subject: Reply with quote

cerri wrote:
Per curiosità: che shell usi?


Bash... ma credi possa dipendere da questo... e poi me lo fa solo con alcuni pacchetti! :roll:
boo... come diceva un tizio in un film: "allibisco!"
_________________
HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Tue Jan 27, 2004 6:49 am    Post subject: Reply with quote

Allibisco anch'io, sembra che non ti converta alcune variabili. Prova a fare l'emerge con -d.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
quantumwire
Guru
Guru


Joined: 15 Oct 2003
Posts: 403
Location: Lausanne

PostPosted: Tue Jan 27, 2004 12:17 pm    Post subject: Reply with quote

cerri wrote:
Allibisco anch'io, sembra che non ti converta alcune variabili. Prova a fare l'emerge con -d.

Ecco qua... e l'orrore ora e' visibile!!!
Quote:

...
++ sed -e 's|//|/|g'
+ einfo 'Patching ${S}/ltmain.sh...'
+ '[' no '!=' yes ']'
+ echo -e ' * Patching ${S}/ltmain.sh...'
* Patching ${S}/ltmain.sh...
+ return 0
+ local ret=0
+ ELT_walk_patches /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0/ltmain.sh portage
+ local x=
+ local y=
+ local ret=1
+ local patch_dir=
+ '[' -n portage ']'
+ '[' -d /usr/portage/eclass/ELT-patches/portage ']'
+ patch_dir=/usr/portage/eclass/ELT-patches/portage
++ ls -d /usr/portage/eclass/ELT-patches/portage/1.4.1
+ '[' -n /usr/portage/eclass/ELT-patches/portage/1.4.1 -a -f /usr/portage/eclass/ELT-patches/portage/1.4.1 ']'
+ '[' -n '' ']'
+ ELT_try_and_apply_patch /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0/ltmain.sh /usr/portage/eclass/ELT-patches/portage/1.4.1
+ local ret=0
+ local patch=/usr/portage/eclass/ELT-patches/portage/1.4.1
+ patch -p0 --dry-run /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0/ltmain.sh
+ ret=1 8O 8O 8O 8O
+ return 1
+ return 1
+ ret=1
+ '[' 1 -ne 0 ']'
+ '[' no = yes ']'
+ ewarn ' Could not apply portage.patch!'
+ '[' no = yes ']'
+ echo -e ' * Could not apply portage.patch!'
* Could not apply portage.patch!
+ esyslog daemon.warning rc-scripts ' Could not apply portage.patch!'
+ return 0
+ return 0
+ ewarn ' Please verify that it is not needed.'
+ '[' no = yes ']'
+ echo -e ' * Please verify that it is not needed.'
* Please verify that it is not needed.
+ esyslog daemon.warning rc-scripts ' Please verify that it is not needed.'
+ return 0
+ return 0
+ '[' -z '' ']'
+ '[' no = no -a no = no -a no = no -a '' = '' ']'
+ '[' '!' -f /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0/configure.in -a '!' -f /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0/configure.ac ']'
+ which libtoolize
+ ewarn 'Cannot apply any patch, running libtoolize...'
+ '[' no = yes ']'
+ echo -e ' * Cannot apply any patch, running libtoolize...'
* Cannot apply any patch, running libtoolize...
+ esyslog daemon.warning rc-scripts 'Cannot apply any patch, running libtoolize...'
+ return 0
+ return 0
+ libtoolize --copy --force
You should update your `aclocal.m4' by running aclocal.
+ cd /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0
+ break
+ '[' -f libtool ']'
+ cd /var/tmp/portage/aalib-1.4_rc4-r2/work/aalib-1.4.0
+ econf --with-slang-driver=yes --with-x11-driver=yes --with-gpm-mouse=no
+ '[' -x ./configure ']'
...


Ti mando i file ltmain.sh e 1.4.1 allegati in una mail al tuo indirizzo:
cerrito@centromultimediale.it

Se riesci a capirci ti ringrazio altrimenti non preoccuparti.

Ho anche questo curioso comportamento da proporti: provare a fare il "$ less 1.4.1" e ricordati cosa vedi (io vedo il file in un'unica colonna da 65 caratteri come se tutto fosse scritto di seguito sia in xterm che in console); poi fai "$ mv 1.4.1 1.4.1m && less 1.4.1m" e dimmi se vedi ancora il file come prima! (in questo caso lo vedo "corretto" ovvero con i capolinea giusti!) 8O
Lo stesso mi capita con i file di sistema /etc/modules.autoload.d/kernel-2.4 (o .5 o .6)!!! Insomma vedo cosi tutti i file che finiscono con .num dove num e' un numero di una sola cifra compreso tra 1 e 9.

Sara' mica questo il problema????

...7 hours later...

Ho provato a fare quello che fa lo script ovvero ad applicare la patch 1.4.1 (... sembra un specie di versione di gentoo??!!!) al file ltmain.sh... e che cosa succede???

Quote:

matteo@lcbcpc02:~/tmp> patch -p0 --dry-run < 1.4.1 ltmain.sh
patching file ltmain.sh
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 4000 (offset 60 lines).
Hunk #2 succeeded at 4042 (offset 67 lines).
matteo@lcbcpc02:~/tmp>


Succede che mi dice che quella patch sembra essere gia' stata applicata al file ltmain.sh! 8O 8O
Ma non solo... l'opzione --dry-run serve per emulare l'applicazione della patch... e' come l'uso dell'opzione -dummy in cdrecord che serve per emulare la scrittura del cd semplicemente disattivando il laser.. e tutti sappiamo che il -dummy si usa per vedere se il nostro sistema ha problemi di buffer underun (... anche se oggi con i nuovi CDR non ce n'e' piu bisogno) senza dover sprecare preziosi cd!!

Diamo un'occhiata all'opzione -R:
Quote:

-R or --reverse
Assume that this patch was created with the old and new files swapped. (Yes, I'm afraid that does happen occasion­
ally, human nature being what it is.) patch attempts to swap each hunk around before applying it. Rejects come
out in the swapped format. The -R option does not work with ed diff scripts because there is too little informa­
tion to reconstruct the reverse operation.

If the first hunk of a patch fails, patch reverses the hunk to see if it can be applied that way. If it can, you
are asked if you want to have the -R option set. If it can't, the patch continues to be applied normally. (Note:
this method cannot detect a reversed patch if it is a normal diff and if the first command is an append (i.e. it
should have been a delete) since appends always succeed, due to the fact that a null context matches anywhere.
Luckily, most patches add or change lines rather than delete them, so most reversed normal diffs begin with a
delete, which fails, triggering the heuristic.)


... e qui bisogna sapere qual'e' il meccanismo esatto di applicazione delle patch... comunque il problema e' questo: la patch 1.4.1 sembra gia' stata essere applicata!!!

... 5 minutes later...

Ok mi sono autorisposto in parte... ho controllato la patch per vedere se e' gia' stata applicata al file ltmain.sh... EBBENE SI!!! 8O

Ai posteri l'ardua sentenza!

A parte gli scherzi.. se lo fa a me... dovrebbe farlo anche a voi... potete provare un bel "$ emerge media-libs/aalib-1.4_rc4-r2" e controllare???
Questa libreria e' piccolina.. basta un "$ emerge unmerge aalib" e tutto torna come prima.

Stando comunque cosi' le cose si spiega perche' le compilazioni terminano corretttamente. Conseguentemente Inoltre non ci dovrebbero essere problemi anche se appare quel warning.

Domanda: cos'e' quella patch 1.4.1???
_________________
HOWTO 1: Spegnere il laptop!
HOWTO 2: Comprimere i DVDs!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum