BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000926 [buildroot] Other minor always 06-27-06 03:59 02-12-07 05:43
Reporter redhatter View Status public  
Assigned To buildroot
Priority normal Resolution fixed  
Status closed   Product Version 0.9.27
Summary 0000926: lvm2 fails to install (DESTDIR issues)
Description When running the `make install` stage of the LVM2 build, the install scripts attempt to write to /etc/lvm (instead of /path/to/staging_dir/etc/lvm), yeilding a "permission denied" when run as a non-root user. The supplied patch fixes this issue.
Additional Information Build Log:

[...]
make[2]: Entering directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/doc'
make[2]: Entering directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/include'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/include'
make[2]: Entering directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/man'
Installing example.conf as /etc/lvm/lvm.conf
Installing lvchange.8 lvcreate.8 lvdisplay.8 lvextend.8 lvm.8 lvmchange.8 lvmdiskscan.8 lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 lvscan.8 pvchange.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 vgimport.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 vgrename.8 vgs.8 vgscan.8 vgsplit.8 in /mnt/scratch/uclibc/buildroot/build_i386/staging_dir/man/man8
make[2]: Entering directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/lib'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/lib'
/bin/install: cannot create directory `/etc/lvm': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/doc'
make[1]: *** [doc.install] Error 2
make[1]: *** Waiting for unfinished jobs....make[2]: Entering directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/daemons'

make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/daemons'
make[2]: Entering directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/tools'
/bin/install -c -D -o stuartl -g users -m 555 lvm \
        /mnt/scratch/uclibc/buildroot/build_i386/staging_dir/sbin/lvm
Creating symbolic links for individual commands in /mnt/scratch/uclibc/buildroot/build_i386/staging_dir/sbin
make[2]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/tools'
Installing lvm.conf.5 in /mnt/scratch/uclibc/buildroot/build_i386/staging_dir/man/man5
make[2]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15/man'
make[1]: Leaving directory `/mnt/scratch/uclibc/buildroot/build_i386/LVM2.2.01.15'
make: *** [/mnt/scratch/uclibc/buildroot/build_i386/root/sbin/lvchange] Error 2

I found by replacing the current commands ran in package/lvm2/lvm2.mk to use DESTDIR rather than prefix, this problem was avoided.

This issue has been confirmed with SVN HEAD (revision 15529). A patch that corrects the issue has been included. Could someone review the patch and kindly submit it?

Thanks in advance. :-)

Regards,
Stuart Longland
Attached Files  buildroot-lvm2-fix.diff [^] (627 bytes) 06-27-06 04:00

- Relationships

- Notes
(0001458)
redhatter
06-27-06 04:01

Hrmm, this seems to have wound up in the uClibc bug list... (I *swear* I clicked Busybox)... if it's out of place, I appologise.
 
(0001902)
bernhardf
12-21-06 03:57

Fixed in r17026. Thanks!
 

- Issue History
Date Modified Username Field Change
06-27-06 03:59 redhatter New Issue
06-27-06 03:59 redhatter Status new => assigned
06-27-06 03:59 redhatter Assigned To  => uClibc
06-27-06 04:00 redhatter File Added: buildroot-lvm2-fix.diff
06-27-06 04:01 redhatter Note Added: 0001458
12-21-06 03:57 bernhardf Status assigned => closed
12-21-06 03:57 bernhardf Note Added: 0001902
12-21-06 03:57 bernhardf Resolution open => fixed
02-12-07 05:43 vapier Status closed => assigned
02-12-07 05:43 vapier Assigned To uClibc => buildroot


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker