Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378109 - building xen-sources-2.6.38 fails - genpatches-2.6.38-4.base.tar.bz2 not found
Summary: building xen-sources-2.6.38 fails - genpatches-2.6.38-4.base.tar.bz2 not found
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-07 17:59 UTC by Grzegorz Mucha
Modified: 2012-06-16 12:00 UTC (History)
3 users (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 Grzegorz Mucha 2011-08-07 17:59:16 UTC
When I try to emerge sys-kernel/xen-sources-2.6.38, the process aborts as it cannot download genpatches-2.6.38-4.base.tar.bz2 from any mirror.

Reproducible: Always

Steps to Reproduce:
# emerge --update --nospinner --deep --newuse --ask -v world

These are the packages that would be merged, in order:

Calculating dependencies .... ..... done!
[ebuild NS ~] sys-kernel/xen-sources-2.6.38 [2.6.34-r4] USE="-build -deblob -symlink" 119 kB

Total: 1 package (1 in new slot), Size of downloads: 119 kB

Would you like to merge these packages? [Yes/No] y
Actual Results:  
* linux-2.6.38.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 14:24:45-- http://distfiles.gentoo.org/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving distfiles.gentoo.org... 156.56.247.195, 199.6.1.167, 216.165.129.135, ...
Connecting to distfiles.gentoo.org|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 14:24:45 ERROR 404: Not Found.

>>> Downloading 'http://mirrors.kernel.org/gentoo/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 14:24:45-- http://mirrors.kernel.org/gentoo/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving mirrors.kernel.org... 199.6.1.167, 130.239.17.7
Connecting to mirrors.kernel.org|199.6.1.167|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 14:24:46 ERROR 404: Not Found.

>>> Downloading 'http://gentoo.ussg.indiana.edu/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 14:24:46-- http://gentoo.ussg.indiana.edu/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving gentoo.ussg.indiana.edu... 156.56.247.195
Connecting to gentoo.ussg.indiana.edu|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 14:24:46 ERROR 404: Not Found.

>>> Downloading 'http://ftp.halifax.rwth-aachen.de/gentoo/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 14:24:46-- http://ftp.halifax.rwth-aachen.de/gentoo/genpatches-2.6.38-4.base.tar.bz2
Resolving ftp.halifax.rwth-aachen.de... 137.226.34.42
Connecting to ftp.halifax.rwth-aachen.de|137.226.34.42|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 14:24:46 ERROR 404: Not Found.

>>> Downloading 'http://gentoo-distfiles.mirrors.tds.net/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 14:24:46-- http://gentoo-distfiles.mirrors.tds.net/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving gentoo-distfiles.mirrors.tds.net... 216.165.129.135
Connecting to gentoo-distfiles.mirrors.tds.net|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 14:24:46 ERROR 404: Not Found.

>>> Downloading 'http://gentoo.osuosl.org/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 14:24:46-- http://gentoo.osuosl.org/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving gentoo.osuosl.org... 64.50.233.100, 64.50.236.52
Connecting to gentoo.osuosl.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 14:24:47 ERROR 404: Not Found.

!!! Couldn't download 'genpatches-2.6.38-4.base.tar.bz2'. Aborting.
* Fetch failed for 'sys-kernel/xen-sources-2.6.38', Log file:
* '/var/tmp/portage/sys-kernel/xen-sources-2.6.38/temp/build.log' 

Expected Results:  
It should download all necessary files and install.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-07 20:44:03 UTC
jer@wieneke /newaches/gentoo/cvs/gentoo-x86/sys-kernel/xen-sources $ GENTOO_MIRRORS= ebuild xen-sources-2.6.38.ebuild fetch
Appending /newaches/gentoo/cvs/gentoo-x86 to PORTDIR_OVERLAY...
 * linux-2.6.38.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                      [ ok ]
>>> Downloading 'http://gentoo.ussg.indiana.edu/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 22:43:25--  http://gentoo.ussg.indiana.edu/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving gentoo.ussg.indiana.edu (gentoo.ussg.indiana.edu)... 156.56.247.195
Connecting to gentoo.ussg.indiana.edu (gentoo.ussg.indiana.edu)|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 22:43:26 ERROR 404: Not Found.

>>> Downloading 'http://gentoo.osuosl.org/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 22:43:26--  http://gentoo.osuosl.org/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving gentoo.osuosl.org (gentoo.osuosl.org)... 64.50.233.100, 64.50.236.52
Connecting to gentoo.osuosl.org (gentoo.osuosl.org)|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 22:43:26 ERROR 404: Not Found.

>>> Downloading 'http://gentoo-distfiles.mirrors.tds.net/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 22:43:26--  http://gentoo-distfiles.mirrors.tds.net/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving gentoo-distfiles.mirrors.tds.net (gentoo-distfiles.mirrors.tds.net)... 216.165.129.135
Connecting to gentoo-distfiles.mirrors.tds.net (gentoo-distfiles.mirrors.tds.net)|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 22:43:26 ERROR 404: Not Found.

>>> Downloading 'http://mirrors.kernel.org/gentoo/distfiles/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 22:43:26--  http://mirrors.kernel.org/gentoo/distfiles/genpatches-2.6.38-4.base.tar.bz2
Resolving mirrors.kernel.org (mirrors.kernel.org)... 199.6.1.167, 2001:500:60:10:1997:313:1:0
Connecting to mirrors.kernel.org (mirrors.kernel.org)|199.6.1.167|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 22:43:26 ERROR 404: Not Found.

>>> Downloading 'http://ftp.halifax.rwth-aachen.de/gentoo/genpatches-2.6.38-4.base.tar.bz2'
--2011-08-07 22:43:26--  http://ftp.halifax.rwth-aachen.de/gentoo/genpatches-2.6.38-4.base.tar.bz2
Resolving ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)... 137.226.34.42
Connecting to ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)|137.226.34.42|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2011-08-07 22:43:26 ERROR 404: Not Found.

!!! Couldn't download 'genpatches-2.6.38-4.base.tar.bz2'. Aborting.
Comment 2 Aleksander Balicki 2011-08-08 21:41:52 UTC
I second that
Comment 3 linuxraptor 2011-08-09 23:47:16 UTC
I'm getting the same results as these gentlemen.

http://pastebin.com/EzPCqW1g
(Link set to expire Sept. 09, 2011)
Comment 4 linuxraptor 2011-08-10 00:52:58 UTC
I hope I'm not stating the obvious here, but with a quick glance we can see that the 404-ing file is called 
"genpatches-2.6.38-4.base.tar.bz2".
 I browsed through the mirrors and I could only find files named 
"genpatches-2.6.38-5.base.tar.bz2", 
"genpatches-2.6.38-7.base.tar.bz2", and 
"genpatches-2.6.38-8.base.tar.bz2".

Now I know that patch sets aren't exactly backwards-compatible, but what if we use one of the newer patch sets instead? I'll try it out and let you men know how it goes.
Comment 5 linuxraptor 2011-08-10 03:23:53 UTC
MEN.

Emerge has confirmed that genpatches-2.6.38-5.extras.tar.bz2 has all the patches we need.

If it is necessary to build gentoo's xen-sources quickly (perhaps, like me, you have a tight project deadline and really can't wait) then we can do a little hacking to make it work. I should remind you that this can be dangerous when done incorrectly.

First, we'll need to edit the xen-sources ebuild: 
nano  /usr/portage/sys-kernel/xen-sources/xen-sources-2.6.38.ebuild
We need edit the line that says:
K_GENPATCHES_VER="4"
so it will instead say:
K_GENPATCHES_VER="5"

Second, we need to rebuild the Manifest so that emerge will accept it:

ebuild /usr/portage/sys-kernel/xen-sources/xen-sources-2.6.38.ebuild digest

Now, run your typical emerge:

emerge --update --nospinner --deep --newuse --ask -v xen-sources

And voila! Our next "emerge --sync" will replace our custom ebuild when an update for xen-sources hits upstream.

Hope this helps!
Comment 6 Stuart Longland (RETIRED) gentoo-dev 2011-08-10 14:25:18 UTC
Well, I've been hitting this bug recently myself.

A quick one-liner to get people out of trouble:

wget -cP ${DISTDIR} http://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-2.6.38-4.extras.tar.bz2 http://dev.gentoo.org/~mpagano/genpatches/tarballs/genpatches-2.6.38-4.base.tar.bz2

I've shelled into dev.gentoo.org and done something similar, so hopefully next time the distfiles get pushed to the mirrors, the files should magically appear in the right place.

No ebuild changes were necessary, and the files I put there matched the existing manifest, so I'll check back in a few days and see if the bug is still reproduce-able or whether I have fixed it (until they disappear again).
Comment 7 Pacho Ramos gentoo-dev 2012-06-16 12:00:56 UTC
dropped