Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
commonc++: "patch2 failed"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
erwan
Apprentice
Apprentice


Joined: 01 Jun 2003
Posts: 150
Location: Tokyo

PostPosted: Mon Aug 11, 2003 2:57 am    Post subject: commonc++: "patch2 failed" Reply with quote

Hello.

I have a problem trying to emerge commonc++ to update my system:

Code:

Calculating world dependencies ...done!
>>> emerge (1 of 64) dev-libs/commonc++-1.9.7-r3 to /
>>> md5 src_uri ;-) commonc++-1.9.7.tar.gz
>>> md5 src_uri ;-) commonc++_1.9.7-1.diff.gz
>>> Unpacking source...
>>> Unpacking commonc++-1.9.7.tar.gz to /var/tmp/portage/commonc++-1.9.7-r3/work
>>> Unpacking commonc++_1.9.7-1.diff.gz to /var/tmp/portage/commonc++-1.9.7-r3/work
 * Applying commmonc++-0.1.patch...                                       [ ok ]

!!! ERROR: dev-libs/commonc++-1.9.7-r3 failed.
!!! Function src_unpack, Line 25, Exitcode 1
!!! patch2 failed


Any clues ?
_________________
See me on Jabber: erwan@im.loisant.org
Back to top
View user's profile Send private message
chaoslord007
n00b
n00b


Joined: 26 Aug 2003
Posts: 14
Location: Wernersberg - Germany

PostPosted: Tue Aug 26, 2003 11:58 am    Post subject: Reply with quote

I have the same problem but no Idea.
There are more and more updates waiting for the commonc++ package at emerge world.

Does anyone out there know a solution ?
_________________
Immer Dusma bleiwe
Back to top
View user's profile Send private message
Vergo
n00b
n00b


Joined: 19 Apr 2003
Posts: 42
Location: Oulu, Finland

PostPosted: Tue Aug 26, 2003 12:16 pm    Post subject: Reply with quote

I had the same problem and found this line from the ebuild in src_unpack()
Code:
use ppc && epatch ${DISTDIR}/commonc++_1.9.7-1.diff.gz || die "patch2 failed"

If I understand that correctly, it will fail unless the system is a ppc. My temporary fix was to remove that line (its line 25) from to ebuild and it merged fine after that.
Back to top
View user's profile Send private message
chaoslord007
n00b
n00b


Joined: 26 Aug 2003
Posts: 14
Location: Wernersberg - Germany

PostPosted: Thu Aug 28, 2003 7:14 am    Post subject: Reply with quote

I must have been blind. Thx it helped in my case.

But you should only remove the "use ppc &&" part so that the patch in the *.diff.gz is apllied. Otherwise you get a commonc++ Rev2 and your System means only it is Rev3. The Patch seems not to be an ppc only variant.
_________________
Immer Dusma bleiwe
Back to top
View user's profile Send private message
Nemesis
n00b
n00b


Joined: 26 Apr 2003
Posts: 22

PostPosted: Wed Sep 24, 2003 4:44 pm    Post subject: Praise the king! Reply with quote

That was gold!

Why didnt I see that...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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