| Anonymous | Login | Signup for a new account | 11-10-2008 11:03 PST |
| Main | My View | View Issues | Change Log | Docs |
| 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 |
|
||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |