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

Bug 491746

Summary: sys-fs/lvm2 should also DEPEND on sys-block/thin-provisioning-tools
Product: Gentoo Linux Reporter: Spooky Ghost <spookyghost>
Component: [OLD] Core systemAssignee: Robin Johnson <robbat2>
Status: RESOLVED DUPLICATE    
Severity: normal CC: agk, cardoe
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Spooky Ghost 2013-11-20 10:05:47 UTC
thin? ( >=sys-block/thin-provisioning-tools-0.2.1 ) is both a depend and an RDEPEND.  If it is not present in the build environment then the build will fail because the /sbin/thin_check command cannot be found.  (I don't have the exact build log)

Reproducible: Always

Steps to Reproduce:
1. Create a new build environment using a stage3 tarball which does not contain sys-fs/lvm2 or sys-block/thin-provisioning-tools.
2.  Chroot in to the build environment and then emerge to an alternate root using emerge --root /some/path where the package selection includes sys-fs/lvm2
3. Build will fail if the build environment does not already contain thin-provisioning-tools.
Actual Results:  
Build of lvm2 failed with missing /sbin/thin_check command

Expected Results:  
lvm2 installs to the alternate --root

The problem was solved by updating the lvm2-2.02.103.ebuild to make the DEPEND be:

DEPEND="${DEPEND_COMMON}
        virtual/pkgconfig
        >=sys-devel/binutils-2.20.1-r1
        thin? ( >=sys-block/thin-provisioning-tools-0.2.1 )
        static? (
                selinux? ( sys-libs/libselinux[static-libs] )
                udev? ( virtual/udev[static-libs] )
        )"

The actual fix is probably to move this to DEPEND_COMMON.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-11-20 15:22:35 UTC
We already have that bug, but under another name.

*** This bug has been marked as a duplicate of bug 448354 ***