Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287206 - sys-apps/usbutils-0.86 installs .pc file into wrong location
Summary: sys-apps/usbutils-0.86 installs .pc file into wrong location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-01 06:31 UTC by Tiziano Müller (RETIRED)
Modified: 2009-10-01 17:22 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 Tiziano Müller (RETIRED) gentoo-dev 2009-10-01 06:31:30 UTC
... because it installs the usbutils.pc file in $(datadir)/pkgconfig instead of $(libdir)/pkgconfig as in previous versions (see http://github.com/gregkh/usbutils/commits/master/Makefile.am). And since the ebuild sets datadir to /usr/share/misc it lands in /usr/share/misc/pkgconfig where it doesn't get picked up by pkg-config and thus pkg-config can't find the usbutils package, breaking udev and every other package searching for usbutils via pkg-config.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2009-10-01 06:36:07 UTC
my solution to this: (plus rev-bump of course)
--- /var/repositories/portage/sys-apps/usbutils/usbutils-0.86.ebuild	2009-10-01 05:37:34.000000000 +0200
+++ usbutils-0.86-r1.ebuild	2009-10-01 08:34:50.000000000 +0200
@@ -35,6 +35,8 @@
 	newsbin update-usbids.sh update-usbids || die "update-usbids failed"
 	dodoc AUTHORS ChangeLog NEWS README
 
+	mv "${D}"/usr/share/{misc/pkgconfig,}
+
 	use network-cron || return 0
 	exeinto /etc/cron.monthly
 	newexe "${FILESDIR}"/usbutils.cron update-usbids || die
Comment 2 SpanKY gentoo-dev 2009-10-01 17:22:28 UTC
fixed a different way and added 0.86-r1 ... thanks for pointing this out