Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 51727

Summary: DRBD 0.6.12 places drbd on / instead of /sbin/
Product: Gentoo Linux Reporter: Matthias Gessenay <mgessenay>
Component: New packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: critical    
Priority: Highest    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 51333    
Bug Blocks:    
Attachments: output from ebuild sys-clust-drbd-0.6.12
cleaner ebuild
fixes path, link etc

Description Matthias Gessenay 2004-05-22 03:09:11 UTC
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
 *
Comment 1 Gary Baker 2004-05-26 04:46:07 UTC
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).
Comment 2 Gary Baker 2004-05-26 04:49:17 UTC
Created attachment 32068 [details]
output from ebuild sys-clust-drbd-0.6.12

The attached emerge output - did this three times with same results
Comment 3 Christian Zoffoli (RETIRED) gentoo-dev 2004-05-30 20:26:32 UTC
Created attachment 32364 [details]
cleaner ebuild

a cleaner ebuild that comes with a new 0.6.12-scripts-Makefile.patch.chris
Comment 4 Christian Zoffoli (RETIRED) gentoo-dev 2004-05-30 20:36:03 UTC
Created attachment 32365 [details, diff]
fixes path, link etc

fixes path, link etc ...already tested with heartbeat
Comment 5 Michael Imhof (RETIRED) gentoo-dev 2004-06-06 17:39:59 UTC
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)

Comment 6 Michael Imhof (RETIRED) gentoo-dev 2004-07-13 13:02:34 UTC
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?
Comment 7 Gary Baker 2004-07-19 05:43:26 UTC
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.
Comment 8 Michael Imhof (RETIRED) gentoo-dev 2004-09-19 13:15:51 UTC
Any news on this one?
Comment 9 Christian Zoffoli (RETIRED) gentoo-dev 2005-01-19 10:43:29 UTC
already fixed in CVS, please try the newer series 0.7.x