Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
I upgraded from DRBD 0.6.6 to 0.6.12 and it places the drbd binary file direct on the root level instead of /sbin/. This is also reported during the build process: >>> Completed installing into /var/tmp/portage/drbd-0.6.12/image/ >>> Merging sys-cluster/drbd-0.6.12 to / --- /sbin/ >>> /sbin/drbdsetup --- /usr/ --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man5/ >>> /usr/share/man/man5/drbd.conf.5.gz --- /usr/share/man/man8/ >>> /usr/share/man/man8/drbdsetup.8.gz >>> /usr/share/man/man8/drbd.8.gz >>> /usr/share/man/man8/datadisk.8.gz --- /usr/share/man/ja/ --- /usr/share/man/ja/man8/ >>> /usr/share/man/ja/man8/drbd.8.gz >>> /usr/share/man/ja/man8/drbdsetup.8.gz >>> /usr/share/man/ja/man8/datadisk.8.gz --- /usr/share/man/ja/man5/ >>> /usr/share/man/ja/man5/drbd.conf.5.gz --- /usr/share/man/pt_BR/ --- /usr/share/man/pt_BR/man8/ >>> /usr/share/man/pt_BR/man8/drbd.8.gz >>> /usr/share/man/pt_BR/man8/drbdsetup.8.gz >>> /usr/share/man/pt_BR/man8/datadisk.8.gz --- /usr/share/man/pt_BR/man5/ >>> /usr/share/man/pt_BR/man5/drbd.conf.5.gz --- /usr/share/doc/ >>> /usr/share/doc/drbd-0.6.12/ >>> /usr/share/doc/drbd-0.6.12/README.gz >>> /usr/share/doc/drbd-0.6.12/COPYING.gz >>> /usr/share/doc/drbd-0.6.12/ChangeLog.gz >>> /usr/share/doc/drbd-0.6.12/NFS-Server-README.txt.gz >>> /usr/share/doc/drbd-0.6.12/drbd.conf.gz --- /etc/ --- /etc/ha.d/ --- /etc/ha.d/resource.d/ >>> /etc/ha.d/resource.d/datadisk -> ../../../drbd --- /etc/init.d/ >>> /drbd --- /lib/ --- /lib/modules/ --- /lib/modules/2.4.25_pre7-gss-r3/ --- /lib/modules/2.4.25_pre7-gss-r3/kernel/ --- /lib/modules/2.4.25_pre7-gss-r3/kernel/drivers/ --- /lib/modules/2.4.25_pre7-gss-r3/kernel/drivers/block/ >>> /lib/modules/2.4.25_pre7-gss-r3/kernel/drivers/block/drbd.o --- /var/ --- /var/lib/ --- /var/lib/drbd/ >>> /var/lib/drbd/.keep * * upgrading module dependencies ... * ... done *
I have found the same. Attaching the complete output from ebuild process. Also found that documentation does not install correctly (such as the HOWTO and the DRBD Article).
Created an attachment (id=32068) [details] output from ebuild sys-clust-drbd-0.6.12 The attached emerge output - did this three times with same results
Created an attachment (id=32364) [details] cleaner ebuild a cleaner ebuild that comes with a new 0.6.12-scripts-Makefile.patch.chris
Created an attachment (id=32365) [details] fixes path, link etc fixes path, link etc ...already tested with heartbeat
I checked in your ebuild as -r1 and renamed your patch to ${PVR}... When i try to emerge the new ebuild i get the following errors: mobile drbd # ebuild drbd-0.6.12-r1.ebuild merge >>> md5 src_uri ;-) drbd-0.6.12.tar.gz >>> Checking drbd-0.6.12.tar.gz's mtime... >>> /usr/portage/sys-cluster/drbd/drbd-0.6.12-r1.ebuild has been updated; recreating WORKDIR... >>> Unpacking source... >>> Unpacking drbd-0.6.12.tar.gz to /var/tmp/portage/drbd-0.6.12-r1/work * Applying 0.6.12-Makefile.vars.patch... [ ok ] * Applying 0.6.12-module-Makefile.patch... [ ok ] * Applying 0.6.12-r1-scripts-Makefile.patch... [ ok ] >>> Source unpacked. * * Your kernel-sources in /usr/src/linux-2.6.5-mm6 must be properly configured * and match the currently running kernel version 2.6.5-mm6 * If otherwise -> build will fail. * pod2html --title "Howto Build and Install DRBD" \ < INSTALL.pod > INSTALL.html ; rm -f pod2htm* make[1]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/user' gcc -c -Wall drbdsetup.c gcc -o drbdsetup drbdsetup.o make[1]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/user' make[1]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/documentation' make[2]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/documentation/ja' make[2]: *** No rule to make target `man'. Stop. make[2]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/documentation/ja' make[1]: *** [man] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/documentation' make[1]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/scripts' ln -sf drbd datadisk make[1]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/scripts' make[1]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/benchmark' gcc -o dm dm.c strip dm make[1]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/benchmark' make[1]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/drbd' Calling toplevel makefile of kernel source tree, which I believe is in KDIR=//var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6 make dep ... make[2]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6' Makefile:450: /var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6/arch/x86/Makefile: No such file or directory make[2]: *** No rule to make target `/var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6/arch/x86/Makefile'. Stop. make[2]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6' I'll ignore this error, but this can cause inconsistencies! done. make -C //var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6 SUBDIRS=/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/drbd modules make[2]: Entering directory `/var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6' Makefile:450: /var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6/arch/x86/Makefile: No such file or directory make[2]: *** No rule to make target `/var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6/arch/x86/Makefile'. Stop. make[2]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/linux-2.6.5-mm6' make[1]: *** [kbuild] Error 2 make[1]: Leaving directory `/var/tmp/portage/drbd-0.6.12-r1/work/drbd-0.6.12/drbd' make: *** [all] Error 1 !!! ERROR: sys-cluster/drbd-0.6.12-r1 failed. !!! Function src_compile, Line 42, Exitcode 2 !!! (no error message)
I looked into this one again. Looks like it does not compile with kernel version 2.6 as there exists no arch/x86 directory. Could you please submit an ebuild that works with kernel 2.6?
Michael, DRBD 0.6.12 is not meant to work with 2.6 sources -- only 2.4-vanilla sources. However, I believe the folks at DRBD have just commited 0.7 to final stage. They have tested 0.7 with 2.6 kernel. I am running 0.6.12 (compiled with manual makes and tweaks to ebuild) successfully with 2.4.25 vanilla. If time permits I may be able to submit something, but I am a realative 'noob' to ebuilds and such.
Any news on this one?
already fixed in CVS, please try the newer series 0.7.x