Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184720 - sys-cluster/drbd-8.0.5 fails to compile when KBUILD_OUTPUT is used
Summary: sys-cluster/drbd-8.0.5 fails to compile when KBUILD_OUTPUT is used
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-09 11:53 UTC by Natanael Copa
Modified: 2010-09-10 18:51 UTC (History)
0 users

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 Natanael Copa 2007-07-09 11:53:42 UTC
gcc -g -O2 -c -W -Wall -I../drbd -I/usr/src/linux/include -fno-strict-aliasing   -c -o drbd_strings.o drbd_strings.c
gcc -o drbdsetup drbdsetup.o drbdtool_common.o drbd_buildtag.o drbd_strings.o
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/drbd-8.0.4/work/drbd-8.0.4/user'
make[1]: Entering directory `/var/tmp/portage/sys-cluster/drbd-8.0.4/work/drbd-8.0.4/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/drbd-8.0.4/work/drbd-8.0.4/scripts'
make[1]: Entering directory `/var/tmp/portage/sys-cluster/drbd-8.0.4/work/drbd-8.0.4/documentation'
To (re)make the documentation: make doc
make[1]: Leaving directory `/var/tmp/portage/sys-cluster/drbd-8.0.4/work/drbd-8.0.4/documentation'

        Userland tools build was successful.
Could not determine uts_release
make: *** [module] Error 1

!!! ERROR: sys-cluster/drbd-8.0.4 failed.
Comment 1 Natanael Copa 2007-07-09 11:54:44 UTC
This fixes it. I dont know if the change is needed for 2.4 kernels since i dont have one to test on.

--- drbd-8.0.4.ebuild.orig      2007-07-09 11:51:16 +0000
+++ drbd-8.0.4.ebuild   2007-07-09 11:52:05 +0000
@@ -39,10 +39,10 @@
        linux_chkconfig_present
 
        if kernel_is 2 6; then
-               emake -j1 KDIR=${KERNEL_DIR} || die "compile problem"
+               emake -j1 KDIR=${KERNEL_DIR} O=${KBUILD_OUTPUT} || die "compile problem"
        else
                cp -R /usr/src/linux-${KV} ${WORKDIR}
-               emake -j1 KDIR=/${WORKDIR}/linux-${KV} || die "compile problem"
+               emake -j1 KDIR=/${WORKDIR}/linux-${KV} O=${KBUILD_OUTPUT} || die "compile problem"
        fi
 }
 
Comment 2 Natanael Copa 2007-08-16 13:03:09 UTC
Is this a big issue to fix?
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2007-08-16 16:35:00 UTC
Fixed in cvs, thanks.