Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365565 - dev-lisp/cmucl-20b_p001 fails in src_prepare (Failed Patch: 20b-patch001.patch)
Summary: dev-lisp/cmucl-20b_p001 fails in src_prepare (Failed Patch: 20b-patch001.patch)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 14:44 UTC by Jean-Francois Ostiguy
Modified: 2011-05-03 07:21 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2011-05-01 14:44:45 UTC
cmucl-20b_p001 fails to emerge, apparently because of a bad patch.
Here is the relevant output: 

.... 


2011-05-01 09:37:57 (368 KB/s) - “/usr/portage/distfiles/cmucl-20b-x86-linux.tar.bz2” saved [17612706/17612706]

 * cmucl-20b-x86-linux.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                     [ ok ]
 * Package:    dev-lisp/cmucl-20b_p001
 * Repository: gentoo
 * Maintainer: grozin@gentoo.org common-lisp@gentoo.org
 * USE:        X elibc_glibc kernel_linux sse2 userland_GNU x86
 * FEATURES:   sandbox splitdebug userpriv usersandbox
You should enable -g (or higher) for debugging!
>>> Unpacking source...
>>> Unpacking cmucl-src-20b.tar.bz2 to /var/tmp/portage/dev-lisp/cmucl-20b_p001/work
>>> Unpacking cmucl-20b-x86-linux.tar.bz2 to /var/tmp/portage/dev-lisp/cmucl-20b_p001/work
>>> Source unpacked in /var/tmp/portage/dev-lisp/cmucl-20b_p001/work
>>> Preparing source in /var/tmp/portage/dev-lisp/cmucl-20b_p001/work ...
 * Applying 20b-patch001.patch ...

 * Failed Patch: 20b-patch001.patch !
 *  ( /usr/portage/dev-lisp/cmucl/files/20b-patch001.patch )
 * 
 * Include in your bugreport the contents of:
 * 
 *   /var/tmp/portage/dev-lisp/cmucl-20b_p001/temp/20b-patch001.patch.out

 * ERROR: dev-lisp/cmucl-20b_p001 failed (prepare phase):
 *   Failed Patch: 20b-patch001.patch!
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_prepare
 *   environment, line 2227:  Called epatch '/usr/portage/dev-lisp/cmucl/files/20b-patch001.patch'
 *   environment, line 1091:  Called die
 * The specific snippet of code:
 *               die "Failed Patch: ${patchname}!";
 * 
 * If you need support, post the output of 'emerge --info =dev-lisp/cmucl-20b_p001',
 * the complete build log and the output of 'emerge -pqv =dev-lisp/cmucl-20b_p001'.
 * The complete build log is located at '/var/tmp/portage/dev-lisp/cmucl-20b_p001/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lisp/cmucl-20b_p001/temp/environment'.
 * S: '/var/tmp/portage/dev-lisp/cmucl-20b_p001/work'

>>> Failed to emerge dev-lisp/cmucl-20b_p001, Log file:


Reproducible: Always
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-05-01 22:14:59 UTC
I don't have time to fix this now. Mr. Grozin, any thoughts/help?
Comment 2 Andrey Grozin gentoo-dev 2011-05-02 19:29:45 UTC
I see what has happened. cvs commit has mangled the file 20b-patch001.patch, because it contains a string $Header: <something> $ (in fact, twice). This is why emerge worked OK with this file on my local disk, when I tested it before committing; after committing, the file in cvs became wrong.

Does anybody know how to commit a file containing $Header: ... $ in such a way that it does not change on the fly?

For now, I'll simply omit this chunk, because it is not crucial. Please re-sync after some time and check that the problem is fixed.
Comment 3 Jean-Francois Ostiguy 2011-05-03 02:20:02 UTC
I confirm that the fix (comment no 2) works. Thanks!
Comment 4 Andrey Grozin gentoo-dev 2011-05-03 07:21:27 UTC
OK, closing