On Sun, 2011-11-27 at 04:52 -0600, Harry Putnam wrote: > Albert, I cloned your hg repo and tried to build from it, but it fails > at downloading gentoo-sources. Something about not being able to > resolve the kernel URLS. > > I suspect it is a problem in the ebuild itself, but I was not able to > find where `portage' is on disc during that build. I wanted to > attempt editing the ebuild but even with variable: > REMOVE_PORTAGE_TREE NO > I never find a `portage' directory.
It grabs the sources from wherever they are specified (SRC_URI) in the ebuild. I just tried it and it worked for me: virtual-appliance # emerge --fetchonly gentoo-sources Calculating dependencies... done! >>> Fetching (1 of 1) sys-kernel/gentoo-sources-3.0.6 >>> Downloading 'http://distfiles.gentoo.org/distfiles/linux-3.0.tar.bz2' --2011-11-27 12:15:37-- http://distfiles.gentoo.org/distfiles/linux-3.0.tar.bz2 Resolving distfiles.gentoo.org... 216.165.129.135, 64.50.233.100, 64.50.236.52, ... Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 76753134 (73M) [application/x-tar] Saving to: `/usr/portage/distfiles/linux-3.0.tar.bz2' 100%[======================================>] 76,753,134 523K/s in 49s The portage tree itself (should be) in the chroot directory. The build will download the latest snapshot and unpack it in the chroot. Although, I did just try that and am getting failures. It seems the latest portage snapshot is currupt? virtual-appliance # make portage rsync --no-motd -L rsync://rsync.us.gentoo.org/gentoo/snapshots/portage-latest.tar.bz2 portage-latest.tar.bz2 touch sync_portage mkdir -p /root/virtual-appliance/vabuild tar xjpf "stage4/base-stage4.tar.bz2" -C /root/virtual-appliance/vabuild touch stage3 tar xjf portage-latest.tar.bz2 -C /root/virtual-appliance/vabuild/usr tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now make: *** [portage] Error 2 Anyone else getting this?