| Summary: | DRBD 0.6.12 places drbd on / instead of /sbin/ | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Matthias Gessenay <mgessenay> |
| Component: | New packages | Assignee: | 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 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 attachment 32068 [details]
output from ebuild sys-clust-drbd-0.6.12
The attached emerge output - did this three times with same results
Created attachment 32364 [details]
cleaner ebuild
a cleaner ebuild that comes with a new 0.6.12-scripts-Makefile.patch.chris
Created attachment 32365 [details, diff]
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 |