Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265599 - sys-apps/parted-1.8.8 dependency on device-mapper not satisfied by lvm2 2.02.45
Summary: sys-apps/parted-1.8.8 dependency on device-mapper not satisfied by lvm2 2.02.45
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
: 265627 265629 (view as bug list)
Depends on: 263243
Blocks:
  Show dependency tree
 
Reported: 2009-04-10 01:57 UTC by Jose daLuz
Modified: 2009-04-14 19:42 UTC (History)
12 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 Jose daLuz 2009-04-10 01:57:48 UTC
With lvm2 2.02.45, the device-mapper library is built-in instead of supplied by sys-fs/device-mapper. The block in the lvm2 2.02.45 package requires device-mapper to be removed. However, parted 1.8.8 (and earlier presumably) has a device-mapper USE flag which pulls in the device-mapper package. The dependency needs to be changed to reflect the new lvm2 inclusion of device-mapper.
Comment 1 Jose daLuz 2009-04-10 02:01:13 UTC
And hal with the disk-partition USE flag requires parted. Not to mention hal's crypt USE flag pulling in device-mapper for dmcrypt support.
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2009-04-10 09:08:15 UTC
http://tinderbox.x86.dev.gentoo.org/misc/rindex/sys-fs/device-mapper
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2009-04-10 09:08:59 UTC
*** Bug 265627 has been marked as a duplicate of this bug. ***
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-10 09:24:44 UTC
should we add a virtual/device-mapper for the transition, or just use lots of || blocks in the DEPEND statements?
Comment 5 Torsten Veller (RETIRED) gentoo-dev 2009-04-10 11:43:37 UTC
*** Bug 265629 has been marked as a duplicate of this bug. ***
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 12:09:27 UTC
It doesn't look like there are enough packages with device-mapper deps to make this worthwhile.  I'm happy to go and modify them with || depends.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 12:16:03 UTC
seems to work great if I change the dep to:

	device-mapper? ( || (
		>=sys-fs/lvm2-2.02.45
		sys-fs/device-mapper )
	)
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 12:17:47 UTC
Note to self: Other affected packages:

app-crypt/truecrypt
sys-boot/lilo
sys-fs/clvm
sys-fs/cryptsetup
sys-fs/multipath-tools
sys-fs/udev
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 12:18:48 UTC
please verify that what I've just committed works ok for you.
Comment 10 Marcus Becker 2009-04-10 13:43:33 UTC
works with the new DEPEND in the ebuild, just tested

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-libs/timezone-data-2009e [2009d] USE="nls" 359 kB
[ebuild     U ] sys-fs/lvm2-2.02.45 [2.02.42] USE="lvm1 readline static (-clvm) (-cman) (-selinux)" 723 kB
Comment 11 Marcus Becker 2009-04-10 13:47:56 UTC
but then fails to compile for me:

rm -f ioctl/libdevmapper.a
ar rs ioctl/libdevmapper.a datastruct/bitset.o datastruct/hash.o datastruct/list.o libdm-common.o libdm-file.o libdm-deptree.o libdm-string.o libdm-report.o mm/dbg_malloc.o mm/pool.o regex/matcher.o regex/parse_rx.o regex/ttree.o ioctl/libdm-iface.o
ar: creating ioctl/libdevmapper.a
rm -f libdevmapper.so.1.02
ln -s ioctl/libdevmapper.so libdevmapper.so.1.02
rm -f libdevmapper.so
ln -s ioctl/libdevmapper.so libdevmapper.so
make[1]: Leaving directory `/var/tmp/portage/sys-fs/lvm2-2.02.45/work/LVM2.2.02.45/libdm'
 * 
 * ERROR: sys-fs/lvm2-2.02.45 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2235:  Called die
 * The specific snippet of code:
 *       emake || die "compile problem"
 *  The die message:
 *   compile problem
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2009-04-10 14:49:37 UTC
(In reply to comment #8)
> Note to self: Other affected packages:
> 
> app-crypt/truecrypt
> sys-boot/lilo
> sys-fs/clvm
> sys-fs/cryptsetup
> sys-fs/multipath-tools
> sys-fs/udev
> 

You need to fix these BEFORE you unmask lvm2-2.02.45... Not at some point after.
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2009-04-10 16:58:12 UTC
All packages except clvm should be fixed, and I've opened a new ticket for that.
Comment 14 Marcus Becker 2009-04-10 18:28:40 UTC
I get now 2.02.42 with or without device-mapper installed.
Comment 15 Jose daLuz 2009-04-10 22:33:45 UTC
Updated parted builds for me with no problems. lvm2 now satisfies the device-mapper dependency.
Comment 16 Steve Kutnar 2009-04-11 04:15:45 UTC
(In reply to comment #11)
> but then fails to compile for me:
> 
> rm -f ioctl/libdevmapper.a
> ar rs ioctl/libdevmapper.a datastruct/bitset.o datastruct/hash.o
> datastruct/list.o libdm-common.o libdm-file.o libdm-deptree.o libdm-string.o
> libdm-report.o mm/dbg_malloc.o mm/pool.o regex/matcher.o regex/parse_rx.o
> regex/ttree.o ioctl/libdm-iface.o
> ar: creating ioctl/libdevmapper.a
> rm -f libdevmapper.so.1.02
> ln -s ioctl/libdevmapper.so libdevmapper.so.1.02
> rm -f libdevmapper.so
> ln -s ioctl/libdevmapper.so libdevmapper.so
> make[1]: Leaving directory
> `/var/tmp/portage/sys-fs/lvm2-2.02.45/work/LVM2.2.02.45/libdm'
>  * 
>  * ERROR: sys-fs/lvm2-2.02.45 failed.
>  * Call stack:
>  *               ebuild.sh, line   48:  Called src_compile
>  *             environment, line 2235:  Called die
>  * The specific snippet of code:
>  *       emake || die "compile problem"
>  *  The die message:
>  *   compile problem
>  * 
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
> 

That's the MAKEOPTS bug.  I don't have the number right in front of me, but a quick search should find it.  You have to build lvm2-2.02.45 with MAKEOPTS="-j1".
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-13 02:24:03 UTC
caleb:
- the MAKEOPTS is fixed.
- note that clvm blocks lvm2, and will be dealt with seperately (see my comment in bug 265671 for xmerlin)

Ergo, please unmask it in package.mask since you're done with all the device-mapper conversions.
Comment 18 Caleb Tennis (RETIRED) gentoo-dev 2009-04-13 11:09:48 UTC
unmasked.  Thanks for all of your help with this.
Comment 19 RB 2009-04-14 18:03:10 UTC
[in reply to comment #12]

> You need to fix these BEFORE you unmask lvm2-2.02.45... Not at some point
> after.

I still don't see cryptsetup-1.0.6-r2 being fixed; since it still depends directly on device-mapper and is a default system dependency (USE=crypt + sys-apps/hal on most profiles), I'd say this is a big problem.

Why on earth was this unmasked when the dev responsible themselves noted the breakage?  This really needs reopened and resolved ASAP.
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-04-14 18:52:02 UTC
aoz.syn:
Sounds like your tree is out of date.
cryptsetup-1.0.6-r2.ebuild:
 16 DEPEND="|| (
 17         >=sys-fs/lvm2-2.02.45
 18         >=sys-fs/device-mapper-1.00.07-r1
 19     )
Comment 21 RB 2009-04-14 19:42:52 UTC
My tree was up-to-date, but it seems I still had truecrypt installed (which was the culprit behind the 'unsatisfied block' message) and failed to re-try after uninstalling it.  Apologies for the pile of fail.