Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360397 - sys-fs/udev[extras] fails to cross-compile
Summary: sys-fs/udev[extras] fails to cross-compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 08:50 UTC by Arun Raghavan (RETIRED)
Modified: 2011-06-05 20:02 UTC (History)
0 users

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 Arun Raghavan (RETIRED) gentoo-dev 2011-03-25 08:50:38 UTC
Cross-compiling fails as configure expects --with-pci-ids-path set during cross-compile. The following patch works for me:

--- /usr/local/overlays/gentoo-x86/sys-fs/udev/udev-164-r2.ebuild	2011-03-19 16:36:20.000000000 +0530
+++ /usr/local/overlays/ford_prefect/sys-fs/udev/udev-164-r2.ebuild	2011-03-25 14:11:41.431000194 +0530
@@ -208,6 +208,7 @@ src_compile() {
 		--libexecdir="${udev_libexec_dir}" \
 		--enable-logging \
 		--enable-static \
+		--with-pci-ids-path="${ROOT}/usr/share/misc/pci.ids" \
 		$(use_with selinux) \
 		$(use_enable extras) \
 		--disable-introspection
Comment 1 Matthias Schwarzott gentoo-dev 2011-05-04 16:19:22 UTC
That does not look like a good idea, as this path is compiled into /lib/udev/pci-db.

What makes me wonder is: Didn't you have the same problem with usb.ids used by /lib/udev/usb-db.
Comment 2 Matthias Schwarzott gentoo-dev 2011-06-05 20:02:09 UTC
Now the ebuilds calls:
# configure [...] --with-pci-ids-path=/usr/share/misc/pci.ids --with-usb-ids-path=/usr/share/misc/usb.ids [...]