Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9444 - XFree 4.2.1 failed to build when applying patches
Summary: XFree 4.2.1 failed to build when applying patches
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-21 14:17 UTC by Grant Likely
Modified: 2003-03-10 08:54 UTC (History)
8 users (show)

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


Attachments
Full log from emerge -d xfree (xfree.log,41.41 KB, text/plain)
2002-10-21 14:19 UTC, Grant Likely
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Likely 2002-10-21 14:17:31 UTC
xfree 4.2.1 ebuild failed when applying patches to X sources.  I'm using the Oct
20, 2002 snapshot of the portage tree.  Here's the tail end of the build log:

+ echo -e ' *   001_all_4.2.0-G450.patch.bz2...'
 *   001_all_4.2.0-G450.patch.bz2...
+ bzip2 -dc
/usr/portage/x11-base/xfree/files/4.2.1-patches/001_all_4.2.0-G450.patch.bz2
+ patch -p2
+ diefunc src_unpack 208 1 'Failed Patch: 001_all_4.2.0-G450.patch.bz2!'
+ local funcname=src_unpack lineno=208 exitcode=1
+ shift 3
+ echo

+ echo '!!! ERROR: The ebuild did not complete successfully.'
!!! ERROR: The ebuild did not complete successfully.
+ echo '!!! Function src_unpack, Line 208, Exitcode 1'
!!! Function src_unpack, Line 208, Exitcode 1
+ echo '!!! Failed Patch: 001_all_4.2.0-G450.patch.bz2!'
!!! Failed Patch: 001_all_4.2.0-G450.patch.bz2!
+ echo

+ exit 1                                                                       
                                                                   ...done!
Comment 1 Grant Likely 2002-10-21 14:19:37 UTC
Created attachment 4869 [details]
Full log from emerge -d xfree
Comment 2 Roman Majer 2002-10-23 08:35:56 UTC
the same bug here...
Comment 3 Grant Likely 2002-10-23 10:05:45 UTC
I deleted /usr/portage/x11* from my portage tree and re-extracted the portage
snapshot today.  The problem has now gone away.  It seems that by using the
daily snapshots the xfree ebuid was picking up some old stuff, whereas using
rsync the old stuff is deleted.

What is the correct way to handle this situation?
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2002-10-23 10:34:25 UTC
you are right
i clean my portage tree every time before uncompress the daily snapshot.
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2002-10-23 10:35:52 UTC
i delete every directory except distfile (there are the downloaded source)
Comment 6 Grant Likely 2002-10-23 10:37:24 UTC
Should cleaning the portage tree then be standard practice before opening the 
snapshot tarball?  In which case it needs to be documented.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-25 16:26:41 UTC
Yep, guess not many devs use the snapshots, and this is the first time
we had a problem like this.

Collin, can you fix the docs please ?
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2002-10-30 15:31:12 UTC
from #7115:

------- Additional Comment #3 From Daniel Ahlberg 2002-08-29 06:26 -------

You need to completly remove the /usr/portage to get rid of old ebuild files
from earlier snapshots, just overwriting with the new snapshots isn't enough. 
Since the ebuild has been removed from CVS I can't update it :-/.

Comment 9 Martin Holzer (RETIRED) gentoo-dev 2002-11-30 09:14:25 UTC
zhen please watch Additional Comment #7 
Comment 10 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-26 23:47:40 UTC
Is this in a specific guide, or should I add this to the FAQ?

Cheers,
//ZhEN
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 12:33:48 UTC
Is there docs about the daily snapshots ?
Comment 12 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-27 14:03:19 UTC
I do not think so, but I am not positive. I checked both the portage user guide
and the developers guide, and it does not seem to be in either. Maybe this info
needs to be included in them?

Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 14:39:27 UTC
Not sure, as not my 'domain' ... Err, who is handling the snapshots and stuff ?
Comment 14 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-27 14:42:59 UTC
Carpaski maybe? I will add him to the cc list.  //zhen 
Comment 15 Martin Holzer (RETIRED) gentoo-dev 2002-12-27 16:03:04 UTC
drobbins does this by crontab afaik
Comment 16 Daniel Robbins (RETIRED) gentoo-dev 2002-12-27 16:52:38 UTC
OK, well let's narrow down the problem. If Grant had old ebuilds or data in his
Portage tree, either:

1) He didn't rsync recently
2) He synced with a rsync mirror that was stale
3) He is using an older version of Portage and didn't use the "--clean" option
with rsync, which used to be required to clean out "old stuff"

I don't know if there is a way to determine at this point what exactly happened,
unless it's #3 and he hasn't upgraded Portage since then, and we can verify that
it was old enough to require the --clean option. Probably it's best to ensure
that he can get the new data, and that our current build is correct, and then
close this bug.
Comment 17 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 17:26:08 UTC
Daniel, he was using the daily snapshots ....   This is where the problems
came into.  He just untarred the new tarball without cleaning out /usr/portage
first ...
Comment 18 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-27 17:48:35 UTC
On that  note, it might be advisable (if we add to docs) to remind the user
about /usr/portage/distfiles if he may want to keep it.
Comment 19 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-29 23:52:35 UTC
In other words, remove all portage-relevant files from distfiles if they want to
use snapshots?

//zhen
Comment 20 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-31 16:50:09 UTC
Err, no.  Lets try again .. the issue is about not clearing /usr/portage when
using snapshots (almost like the 'emerge rsync --clean' which is done by default
now ...).  We should just also maybe mention that if the user want to keep
/usr/portage/distfiles, he should move it aside, or change where it is in
make.conf.
Comment 21 John Davis (zhen) (RETIRED) gentoo-dev 2003-01-06 21:27:09 UTC
Looks like developer docs to me..

//zhen
Comment 22 SpanKY gentoo-dev 2003-03-10 08:54:08 UTC
portage now runs clean automagically