Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491746 - sys-fs/lvm2 should also DEPEND on sys-block/thin-provisioning-tools
Summary: sys-fs/lvm2 should also DEPEND on sys-block/thin-provisioning-tools
Status: RESOLVED DUPLICATE of bug 448354
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 10:05 UTC by Spooky Ghost
Modified: 2013-11-20 15:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***