Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370385 - net-misc/modemmanager: fix udev dependencies
Summary: net-misc/modemmanager: fix udev dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 348472
  Show dependency tree
 
Reported: 2011-06-07 03:46 UTC by William Hubbs
Modified: 2011-06-09 02:03 UTC (History)
1 user (show)

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


Attachments
updated ebuild for modemmanager 0.4_p20110205 (modemmanager-0.4_p20110205.ebuild,1.93 KB, application/octet-stream)
2011-06-08 15:01 UTC, Trevor Bowen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Hubbs gentoo-dev 2011-06-07 03:46:50 UTC
Udev 171 splits out the extras use flag into separate use flags.

As a result, the ebuilds for this package need the following changes:

sys-fs/udev[extras]

needs to become:

|| ( >=sys-fs/udev-171[useflag] >= sys-fs/udev145[extras] )

"useflag" in this example should be replaced with whatever the use flag
is for udev-171 that your package needs.
This should not require a revbump since we are just modifying use flags.
Comment 1 Christian Bricart 2011-06-08 12:00:30 UTC
I think $useflag might be "action_modeswitch"

so the change in any net-misc/modemmanager ebuild sums up to:

|| ( >=sys-fs/udev-171[action_modeswitch] >= sys-fs/udev-145[extras] )
Comment 2 Christian Bricart 2011-06-08 12:15:06 UTC
..on the other hand while reading through Bug #348472 

> - disable action-modeswitch by default (will move to usb_modeswitch)

which is already available in the tree as sys-apps/usb_modeswitch

don't know if this might be used by net-misc/modemmanager as an alternative i.e. drop-in replacement..?
Comment 3 Trevor Bowen 2011-06-08 15:01:00 UTC
Created attachment 276287 [details]
updated ebuild for modemmanager 0.4_p20110205

I was able to build the attached ebuild with only this change:

|| ( >=sys-fs/udev-145[extras] >=sys-fs/udev-171 )

I did not have to require any use flags.  However, some other ebuilds required
gudev, and so I was forced to use gudev too.

# echo sys-fs/udev gudev >> /etc/portage/package.use

gudev may be required here too.  It's hard for me to tell.
Comment 4 Trevor Bowen 2011-06-08 15:09:48 UTC
FWIW, Here's how I built udev:

[ebuild   R   ~] sys-fs/udev-171-r1  USE="acl gudev rule_generator -action_modeswitch -debug -edd -floppy -hwdb (-introspection) -keymap (-selinux) -test" 0 kB
Comment 5 William Hubbs gentoo-dev 2011-06-08 19:55:03 UTC
Maintainers, the correct approach here is going to be either to use comment #1 or comment #2 as the basis of  the fix depending on whether modemmanager can use the package from comment #2. If you know which way to go, I am willing to make the change, just let me know.

Thanks,

William
Comment 6 Sebastian Pipping gentoo-dev 2011-06-09 02:03:05 UTC
I dared touching this myself:

+  09 Jun 2011; Sebastian Pipping <sping@gentoo.org> modemmanager-0.3.ebuild,
+  modemmanager-0.4.ebuild, modemmanager-0.4_p20101211.ebuild,
+  modemmanager-0.4_p20110205.ebuild:
+  Add >=sys-fs/udev-171[gudev] as an alternative dependency to
+  >=sys-fs/udev-145[extras] (bug #370385)
+