Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447304 - sys-fs/udisks-1.0.4-r3 - udev rule 80-udisks.rules fails, the external pci-db program is to be replaced by the internal hwdb.
Summary: sys-fs/udisks-1.0.4-r3 - udev rule 80-udisks.rules fails, the external pci-db...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL: http://forums-web2.gentoo.org/viewtop...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-15 00:40 UTC by Konstantin (elxa)
Modified: 2012-12-15 21:04 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 Konstantin (elxa) 2012-12-15 00:40:41 UTC
udisks-1.0.4-r3 udev rule 80-udisks.rules fails, because 'pci-db' got replaced by 'hwdb'

Reproducible: Always

Steps to Reproduce:
1. install >=udev-196 and udisks-1.0.4-r3
2. boot system
3. see errors in syslog/systemd journal
Actual Results:  
Dec 14 23:22:52 gentoo-desktop systemd-udevd[1931]: failed to execute '/lib/udev/pci-db' 'pci-db /devices/pci0000:00/0000:00:1c.4/0000:03:00.0': No such file or directory
Dec 14 23:22:52 gentoo-desktop systemd-udevd[1932]: failed to execute '/lib/udev/pci-db' 'pci-db /devices/pci0000:00/0000:00:1f.2': No such file or directory

Expected Results:  
no errors

patch /usr/lib/udev/rules.d/80-udisks.rules:
replace 'pci-db' with 'hwdb'
(see http://forums-web2.gentoo.org/viewtopic-p-7057112.html?sid=de7de2f7c8449656bdd7083465fd9278)
Comment 1 Rafał Mużyło 2012-12-15 05:46:36 UTC
The needed change is actually:
IMPORT{program}="pci-db %p"
to
IMPORT{builtin}="hwdb"

but obviously this is udev version dependent.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-12-15 10:21:00 UTC
> CC freedesktop-bugs@gentoo.org

Please do not use the CC feature as an under-the-radar maintainer assignment.
Comment 3 Rafał Mużyło 2012-12-15 14:31:21 UTC
(In reply to comment #2)
> > CC freedesktop-bugs@gentoo.org
> 
> Please do not use the CC feature as an under-the-radar maintainer assignment.

Actually, I've just put the cursor in the wrong cell and didn't notice it at submission.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-12-15 19:03:18 UTC
I see ArchLinux is completely dropping the line,

https://projects.archlinux.org/svntogit/packages.git/plain/trunk/drop-pci-db.patch?h=packages/udisks

So that should work for all versions of udev, but do we actually lose something by doing it like this?

I'm between doing this and Comment #1
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-12-15 21:04:22 UTC
went with ArchLinux patch and raised virtual/udev dependency, now requiring 196

+*udisks-1.0.4-r4 (15 Dec 2012)
+
+  15 Dec 2012; Samuli Suominen <ssuominen@gentoo.org> +udisks-1.0.4-r4.ebuild,
+  +files/udisks-1.0.4-drop-pci-db.patch:
+  Remove usage of old pci-db and rely upon >=virtual/udev-196 dependency to
+  bring us internal hwdb support wrt #447304 by "Konstantin"