emerge of linux-sabayon-2.6.26 for x86_64 fails [Solved]

Anything that pertains to Portage

Moderator: Moderators

emerge of linux-sabayon-2.6.26 for x86_64 fails [Solved]

Postby Fitzcarraldo » Mon Aug 18, 2008 23:49

emerge =linux-sabayon-2.6.26 fails on my x86_64 laptop. Here's the bottom of the build log:

Code: Select all
 INSTALL sound/pcmcia/vx/snd-vxpocket.ko
  INSTALL sound/soc/snd-soc-core.ko
  INSTALL sound/synth/emux/snd-emux-synth.ko
  INSTALL sound/synth/snd-util-mem.ko
  INSTALL sound/usb/caiaq/snd-usb-caiaq.ko
  INSTALL sound/usb/snd-usb-audio.ko
  INSTALL sound/usb/snd-usb-lib.ko
  INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
  DEPMOD  2.6.26-sabayon
* Copying config for successful build to /etc/kernels/kernel-config-x86_64-2.6.26-sabayon
* Gentoo Linux Genkernel; Version 3.4.9
* Running with options: --kerneldir=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/linux-2.6.26-sabayon --kernel-config=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/config --cachedir=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/cache --makeopts=-j3 --tempdir=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/linux-2.6.26-sabayon/temp --logfile=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/genkernel.log --bootdir=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/boot --mountboot --lvm --luks --module-prefix=/var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/lib all

* ERROR: Could not find busybox source tarball: /var/cache/genkernel/src/busybox-1.7.4.tar.bz2!
* -- Grepping log... --
* -- End log... --
* Please consult /var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/tmp/portage/sys-kernel/linux-sabayon-2.6.26/work/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*


Notice the error message "* ERROR: Could not find busybox source tarball: /var/cache/genkernel/src/busybox-1.7.4.tar.bz2!"

Now, busybox-1.7.4.tar.bz2 is in /usr/portage/distfiles/

And in /var/cache/genkernel/ there is only a directory x86_64 containing busybox-1.7.4-x86_64.tar.bz2:

Code: Select all
fitzcarraldo@localhost /var/cache/genkernel $ ls -la
total 12
drwxr-xr-x  3 root root 4096 2008-08-18 22:07 .
drwxr-xr-x 12 root root 4096 2008-05-11 19:35 ..
drwxr-xr-x  2 root root 4096 2008-06-02 20:09 x86_64
fitzcarraldo@localhost /var/cache/genkernel $ cd ./x86_64
fitzcarraldo@localhost /var/cache/genkernel/x86_64 $ ls -la
total 2772
drwxr-xr-x 2 root root   4096 2008-06-02 20:09 .
drwxr-xr-x 3 root root   4096 2008-08-18 22:07 ..
-rwxr-xr-x 1 root root 487943 2007-07-19 09:14 busybox-1.1.3+gentoo-x86_64.bz2
-rw-r--r-- 1 root root 538407 2008-05-17 22:45 busybox-1.1.3+gentoo-x86_64.tar.bz2
-rw-r--r-- 1 root root 543224 2008-06-02 20:09 busybox-1.7.4-x86_64.tar.bz2
-rw-r--r-- 1 root root 340050 2007-05-16 17:28 device-mapper-1.02.07-x86_64.tar.bz2
-rw-r--r-- 1 root root 314591 2007-05-16 17:28 dmraid-1.0.0.rc13-x86_64.tar.bz2
-rwxr-xr-x 1 root root 227277 2007-05-16 17:25 insmod-x86_64-static-2.6.bz2
-rw-r--r-- 1 root root 332632 2007-05-16 17:27 unionfs-utils-0.1-x86_64.tar.bz2
fitzcarraldo@localhost /var/cache/genkernel/x86_64 $     


Any ideas?
Last edited by Fitzcarraldo on Wed Aug 20, 2008 0:23, edited 1 time in total.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: emerge of linux-sabayon-2.6.26 for x86_64 fails

Postby gaffu » Tue Aug 19, 2008 15:36

Hello,

try reemerging/upgrade genkernel (and busybox), because genkernel used to store files it needs at runtime in /usr/portage/distfiles, not a great idea because one should be able to erase the content of the distfiles directory without losing any functionality (see http://bugs.gentoo.org/show_bug.cgi?id=220111).

Hope this helps.
gaffu
Growing Hen
 
Posts: 110
Joined: Tue Jan 23, 2007 16:16

Re: emerge of linux-sabayon-2.6.26 for x86_64 fails

Postby Fitzcarraldo » Tue Aug 19, 2008 21:55

Thanks for the reply, gaffu. Strange thing, though, is that merging linux-sabayon-2.6.26 re-merges genkernel-3.4.9. Here's the linux-sabayon-2.6.26 ebuild from the SL Subversion repository; notice the reference to genkernel-3.4.9:

Code: Select all
# Copyright 2007 Sabayon Linux
# Distributed under the terms of the GNU General Public License v2

ETYPE="sources"
K_WANT_GENPATCHES=""
K_GENPATCHES_VER=""
inherit kernel-2
detect_version
detect_arch

UNIPATCH_STRICTORDER="yes"
KEYWORDS="~amd64 ~x86"
HOMEPAGE="http://www.sabayonlinux.org"
DEPEND="
        !only_sources? ( ~sys-kernel/genkernel-3.4.9 )
        splash? ( x11-themes/sabayonlinux-artwork )
        !=sys-kernel/sabayon-sources-${PVR}
        ~sys-kernel/genkernel-3.4.9
        "
RDEPEND="grub? ( sys-boot/grub )"
IUSE="splash dmraid grub no_sources only_sources"
RESTRICT="nomirror"

DESCRIPTION="Official Sabayon Linux kernel images and sources"
KV_FULL=${KV_FULL/linux/sabayon}
K_NOSETEXTRAVERSION="1"
EXTRAVERSION=${EXTRAVERSION/linux/sabayon}
SLOT="${PV}"
S="${WORKDIR}/linux-${KV_FULL}"
UNIONFS_PATCH="unionfs-2.4_for_2.6.26.diff.gz"

## INIT: Exported data
SL_PATCHES_URI="http://download.filesystems.org/unionfs/unionfs-2.x/${UNIONFS_PATCH}"

SUSPEND2_VERSION="3.0-rc7a"
SUSPEND2_TARGET="2.6.26"
SUSPEND2_SRC="tuxonice-${SUSPEND2_VERSION}-for-${SUSPEND2_TARGET}"
SUSPEND2_URI="http://www.tuxonice.net/downloads/all/${SUSPEND2_SRC}.patch.bz2"
UNIPATCH_LIST="
                ${FILESDIR}/${PV}/patch-${PV}.2.bz2
                ${FILESDIR}/${PV}/${P}-from-ext4dev-to-ext4.patch
                ${FILESDIR}/${PV}/${P}-at76.patch
                ${FILESDIR}/${PV}/${P}-aufs.patch
                ${FILESDIR}/${PV}/${P}-atl2.patch
                ${DISTDIR}/${SUSPEND2_SRC}.patch.bz2
                ${DISTDIR}/${UNIONFS_PATCH}
"

# gentoo patches
for patch in `/bin/ls ${FILESDIR}/${PV}/genpatches`; do
        UNIPATCH_LIST="${UNIPATCH_LIST} ${FILESDIR}/${PV}/genpatches/${patch}"
done

SRC_URI="${KERNEL_URI} ${SL_PATCHES_URI} ${SUSPEND2_URI} ${SUSPEND2_URI}"

## END: Exported data

src_unpack() {
        kernel-2_src_unpack
        cd "${S}"
        # manually set extraversion
        sed -i -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" Makefile

}

src_compile() {

        if ! use only_sources; then

                # disable sandbox
                export SANDBOX_ON=0

                # creating workdirs
                mkdir -p ${WORKDIR}/boot/grub
                mkdir ${WORKDIR}/lib
                mkdir ${WORKDIR}/cache
                mkdir ${S}/temp
       
                einfo "Starting to compile kernel..."
                cp ${FILESDIR}/${PF/-r0/}-${ARCH}.config ${WORKDIR}/config || die "cannot copy kernel config"
       
                if use grub; then
                        if [ -e "/boot/grub/grub.conf" ]; then
                                cp /boot/grub/grub.conf ${WORKDIR}/boot/grub -p
                        fi
                fi

                # do some cleanup
                rm -rf "${WORKDIR}"/lib
                rm -rf "${WORKDIR}"/cache
                rm -rf "${S}"/temp
                OLDARCH=${ARCH}
                unset ARCH
                cd ${S}
                GK_ARGS="--disklabel"
                use splash && GKARGS="${GKARGS} --splash=sabayon"
                use dmraid && GKARGS="${GKARGS} --dmraid"
                use grub && GKARGS="${GKARGS} --bootloader=grub"
                export DEFAULT_KERNEL_SOURCE="${S}"
                export CMD_KERNEL_DIR="${S}"
                DEFAULT_KERNEL_SOURCE="${S}" CMD_KERNEL_DIR="${S}" genkernel ${GKARGS} \
                        --kerneldir=${S} \
                        --kernel-config=${WORKDIR}/config \
                        --cachedir=${WORKDIR}/cache \
                        --makeopts=-j3 \
                        --tempdir=${S}/temp \
                        --logfile=${WORKDIR}/genkernel.log \
                        --bootdir=${WORKDIR}/boot \
                        --mountboot \
                        --lvm \
                        --luks \
                        --module-prefix=${WORKDIR}/lib \
                        all || die "genkernel failed"
                ARCH=${OLDARCH}

        fi
}

src_install() {

        if ! use no_sources || use only_sources; then
                kernel-2_src_install || die "sources install failed"
                if ! use only_sources; then
                        cd ${D}/usr/src/linux-${KV_FULL} || die "cannot cd into sources directory"
                        cp Module.symvers Module.symvers.backup -p || die "cannot copy Module.symvers"
                        OLDARCH=${ARCH}
                        unset ARCH
                        make distclean || die "cannot run make distclean"
                        cp ${FILESDIR}/${PF/-r0/}-${OLDARCH}.config ${D}/usr/src/linux-${KV_FULL}/.config || die "cannot copy kernel configuration"
                        make prepare modules_prepare || die "cannot run make prepare modules_prepare"
                        ARCH=${OLDARCH}
                        cp Module.symvers.backup Module.symvers -p || die "cannot copy back Module.symvers"
                fi
        fi

        if ! use only_sources; then
                insinto /boot
                doins ${WORKDIR}/boot/*
                cp -Rp ${WORKDIR}/lib/* ${D}/
                rm ${D}/lib/modules/${KV_FULL}/source
                rm ${D}/lib/modules/${KV_FULL}/build
                ln -s /usr/src/linux-${KV_FULL} ${D}/lib/modules/${KV_FULL}/source
                ln -s /usr/src/linux-${KV_FULL} ${D}/lib/modules/${KV_FULL}/build
                if use grub; then
                        if [ -e "${WORKDIR}/boot/grub.conf" ]; then
                                insinto /boot/grub/
                                doins ${WORKDIR}/boot/grub.conf
                        fi
                fi
        fi
}

pkg_postinst() {
        kernel-2_pkg_postinst
        einfo "Please report kernel bugs at:"
        einfo "http://bugs.sabayonlinux.org"
}


I've tried re-merging genkernel, linux-sabayon and busybox, and none of those helped. I think I might have to hack the linux-sabayon-2.6.26 ebuild and change it to refer to genkernel-3.4.10-r1.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: emerge of linux-sabayon-2.6.26 for x86_64 fails

Postby Thev00d00 » Tue Aug 19, 2008 22:59

I had this a while back cant remember what i did though, this may help:

https://bugs.gentoo.org/show_bug.cgi?fo ... &id=225073
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: emerge of linux-sabayon-2.6.26 for x86_64 fails

Postby Fitzcarraldo » Wed Aug 20, 2008 0:22

Solved it in the end by doing:

Code: Select all
emerge -C genkernel
emerge -1v linux-sabayon


Judging by Gentoo Bugzilla Bug Report No. 225073, I could have hacked the linux-sabayon-2.6.26 ebuild and changed genkernel-3.4.9 to genkernel-3.4.10 and it would have worked, as it seems that genkernel-3.4.10-r1 fixes the bug in genkernel-3.4.10 (which is not present in 3.4.9-r12, by the looks of it, 'cause that's the one that's merged by linux-sabayon-2.6.26).

BTW, the comments in the Gentoo Bugzilla Bug Report No. 220111 (see post by gaffu) are hilarious -- they read more like a bunch of kids squabbling than developers trying to solve a problem.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7978
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests

cron