Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364815 - sys-fs/udisks-1.0.2-r1 has the unnecessary use-flag dependency >=sys-block/parted-1.8.8[device-mapper]
Summary: sys-fs/udisks-1.0.2-r1 has the unnecessary use-flag dependency >=sys-block/pa...
Status: RESOLVED DUPLICATE of bug 335724
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 17:09 UTC by Nils Stöckmann
Modified: 2011-04-25 20:18 UTC (History)
2 users (show)

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


Attachments
output of "emerge -s %^udisks$ device-mapper > udisks-dev-map" (udisks-dev-map,779 bytes, text/plain)
2011-04-25 18:23 UTC, Nils Stöckmann
Details
preventing device-mapper installation with udisks- overlay ebuild (udisks-1.0.2.ebuild,1.94 KB, text/plain)
2011-04-25 18:32 UTC, Nils Stöckmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Stöckmann 2011-04-25 17:09:11 UTC
sys-fs/udisks-1.0.2-r1 requires having parted installed with the device-mapper useflag. I don't use logical volumes or like, and neither need nor want the device-mapper installed. 
I removed the use-flag in the dependency in a local overlay (I know, not the "nice" way) and everything compiled and ran fine for over a month now.

There should be a regular handling of the system-wide useflags to determine, whether the device-mapper-USE-Flag on parted is really needed.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge -pv1 udisks
Actual Results:  
emerge: there are no ebuilds built with USE flags to satisfy ">=sys-block/parted-1.8.8[device-mapper]".
!!! One of the following packages is required to complete your request:
- sys-block/parted-2.3 (Change USE: +device-mapper)
(dependency required by "sys-fs/udisks-1.0.2-r1" [ebuild])


Expected Results:  
no error, acceptance of my USE=-device-mapper Flag set.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-04-25 17:32:16 UTC
udisks has harddepend on device-mapper (from lvm2) anyway, so you wouldn't save any dependencies by disabling the use flag.

you'd just break detection of certain partitions in libparted, used by udisks as they are not listed in /proc/partitions but rather checked by _probe_dm_devices() function inside libparted.

so removing that dep just seems to add more complexity with no gain.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-04-25 17:37:47 UTC
as in, if you have udisks installed, you already have device-mapper installed so your statement about "and neither need nor want the device-mapper installed." is just false. you have it.

*** This bug has been marked as a duplicate of bug 335724 ***
Comment 3 Nils Stöckmann 2011-04-25 18:23:50 UTC
Created attachment 271149 [details]
output of "emerge -s %^udisks$ device-mapper > udisks-dev-map"
Comment 4 Nils Stöckmann 2011-04-25 18:29:37 UTC
(In reply to comment #1)
> you'd just break detection of certain partitions in libparted, used by udisks
> as they are not listed in /proc/partitions but rather checked by
> _probe_dm_devices() function inside libparted.
> 
> so removing that dep just seems to add more complexity with no gain.

Well, for me it has a gain since I know that I don't have those partitions and don't want to install device-mapper.


(In reply to comment #2)
> as in, if you have udisks installed, you already have device-mapper installed
> so your statement about "and neither need nor want the device-mapper
> installed." is just false. you have it.

No, my statement is correct. It is possible using the local overlay ebuild I created and proven by the emerge -s output.

Please see the attachments I made.

As I already stated, I don't have logical volumes, thus no LVM, device-mapper or something similar. Everything works fine. I simply avoided installing it, for under my conditions I don't need them. And I'd like to be able to translate my "I don't use logical volumes" condition into a use flag.



P.S.: Sorry for the duplicate bug. I guess i forgot searching (2nd bug today, searched for the first one, though).
Comment 5 Nils Stöckmann 2011-04-25 18:32:04 UTC
Created attachment 271151 [details]
preventing device-mapper installation with udisks- overlay ebuild

The Overlay ebuild without the device-mapper dependency. Using this ebuild in /usr/local/portage, i don't need the [device-mapper] useflag and the device-mapper software installed.