follow new gentoo's download server configuration. Should be backported in earlier lxc versions.
Signed-off-by: Guillaume ZITTA <l...@zitta.fr> --- templates/lxc-gentoo.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-gentoo.in b/templates/lxc-gentoo.in index 92edcd4..bcaca4e 100644 --- a/templates/lxc-gentoo.in +++ b/templates/lxc-gentoo.in @@ -160,7 +160,7 @@ cache_stage3() printf "Determining path to latest Gentoo %s (%s) stage3 archive...\n" "${arch}" "${variant}" printf " => downloading and processing %s\n" "${stage3_pointer}" - local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 ) \ + local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | tail -n1 | cut -d' ' -f1) \ || die 6 "Error: unable to fetch\n" printf " => Got: %s\n" "${stage3_latest_tarball}" -- 2.3.0 Le 20/02/2015 17:31, Serge Hallyn a écrit : > Hi Guido, > > I've not had time to play with this, but if you end up with a patch to be > applied upstream, please do send it with a signed-off-by. (This one looks > reasonable and I'd have applied it if it had one) > > thanks, > -serge > > Quoting Jäkel, Guido (g.jae...@dnb.de): >> --- lxc-gentoo.in.20150218-095329 2015-02-18 09:53:29.160903000 +0100 >> +++ lxc-gentoo.in 2015-02-18 09:54:03.823073000 +0100 >> @@ -160,7 +160,7 @@ >> printf "Determining path to latest Gentoo %s (%s) stage3 >> archive...\n" "${arch}" "${variant}" >> printf " => downloading and processing %s\n" "${stage3_pointer}" >> >> - local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | >> tail -n1 ) \ >> + local stage3_latest_tarball=$(wget -q -O - "${stage3_pointer}" | >> tail -n1 | cut -d' ' -f1) \ >> || die 6 "Error: unable to fetch\n" >> >> printf " => Got: %s\n" "${stage3_latest_tarball}" >> >> with greetings >> >> Guido Jäkel >> >>> -----Original Message----- >>> From: lxc-devel [mailto:lxc-devel-boun...@lists.linuxcontainers.org] On >>> Behalf Of lxc-deve...@noci.xs4all.nl >>> Sent: Wednesday, February 18, 2015 12:10 AM >>> To: LXC development mailing-list >>> Subject: [lxc-devel] gentoo container building fails during wget. >>> >>> The Gentoo template for lxc-1.1.0 is failing... >>> >>> The link file contains >>> 20141204/stage3-amd64-20141204.tar.bz2 207889127 >>> >>> The file should be: >>> http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64-20141204.tar.bz2 >>> >>> the 207889127 part is the size. which should not be in the filename, for >>> wget. >>> >>> Example: >>> >>> >>> Determining path to latest Gentoo amd64 (amd64) stage3 archive... >>> => downloading and processing >>> http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage3-amd64.txt >>> => Got: 20141204/stage3-amd64-20141204.tar.bz2 207889127 >>> Downloading/untarring the actual stage3 tarball... >>> --2015-02-17 22:18:30-- >>> http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64-20141204.tar.bz2%20207889127 >>> Resolving distfiles.gentoo.org (distfiles.gentoo.org)... 156.56.247.195, >>> 64.50.233.100, 137.226.34.42, ... >>> Connecting to distfiles.gentoo.org >>> (distfiles.gentoo.org)|156.56.247.195|:80... >>> connected. >>> HTTP request sent, awaiting response... 404 Not Found >>> 2015-02-17 22:18:30 ERROR 404: Not Found. >>> >>> http://distfiles.gentoo.org/releases/amd64/autobuilds/20141204/stage3-amd64-20141204.tar.bz2 >>> >>> >>> bzip2: Compressed file ends unexpectedly; >>> perhaps it is corrupted? *Possible* reason follows. >>> bzip2: Inappropriate ioctl for device >>> Input file = (stdin), output file = (stdout) >>> >>> It is possible that the compressed file(s) have become corrupted. >>> You can use the -tvv option to test integrity of such files. >>> >>> You can use the `bzip2recover' program to attempt to recover >>> data from undamaged sections of corrupted files. >>> >>> tar: Child returned status 2 >>> tar: Error is not recoverable: exiting now >>> >>> >>> _______________________________________________ >>> lxc-devel mailing list >>> lxc-devel@lists.linuxcontainers.org >>> http://lists.linuxcontainers.org/listinfo/lxc-devel >> _______________________________________________ >> lxc-devel mailing list >> lxc-devel@lists.linuxcontainers.org >> http://lists.linuxcontainers.org/listinfo/lxc-devel > _______________________________________________ > lxc-devel mailing list > lxc-devel@lists.linuxcontainers.org > http://lists.linuxcontainers.org/listinfo/lxc-devel _______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel