Summary: | dev-libs/yajl generates incorrect pkg-config .pc due to bug in multilib | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ted Tanberry <ted.tanberry> |
Component: | [OLD] Library | Assignee: | Michael Weber (RETIRED) <xmw> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hasufell, multilib+disabled, ruby |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://github.com/lloyd/yajl/issues/118 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | yajl-pkgconfig_multilib.patch |
Description
Ted Tanberry
2013-08-11 11:45:07 UTC
Yeah, it shouldn't install yajl.pc to /usr/share/pkgconfig at all because it's an pkg-config file for arch specific library, but to /usr/lib32/pkgconfig and /usr/lib64/pkgconfig Ok so it's clear that it's the fault of the package for using an incorrect layout. Turns out the issue is pretty easy to fix. Updated ebuild: --- /usr/portage/dev-libs/yajl/yajl-2.0.4-r2.ebuild +++ /usr/portage/dev-libs/yajl/yajl-2.0.4-r2.ebuild @@ -17,6 +17,7 @@ src_prepare() { epatch "${FILESDIR}"/${PN}-fix_static_linking.patch + epatch "${FILESDIR}"/${PN}-pkgconfig_multilib.patch multilib_copy_sources } Created attachment 355690 [details, diff]
yajl-pkgconfig_multilib.patch
With this we get >>> Install yajl-2.0.4-r2 into /var/tmp/portage/dev-libs/yajl-2.0.4-r2/image/ category dev-libs * x86: running cmake-multilib_secure_install [...] -- Installing: /var/tmp/portage/dev-libs/yajl-2.0.4-r2/image/usr/lib32/pkgconfig/yajl.pc [...] * amd64: running cmake-multilib_secure_install >>> Working in BUILD_DIR: "/var/tmp/portage/dev-libs/yajl-2.0.4-r2/work/yajl-2.0.4-amd64" [...] -- Installing: /var/tmp/portage/dev-libs/yajl-2.0.4-r2/image/usr/lib64/pkgconfig/yajl.pc [...] >>> Completed installing yajl-2.0.4-r2 into /var/tmp/portage/dev-libs/yajl-2.0.4-r2/image/ Can we get my patch committed? Changing install locations is within the scope of packagers, so I don't feel this violates any QA standards. I will fix this in 2 weeks unless there are objections. Julian, do you think you could fix this? +*yajl-2.0.4-r3 (16 Jun 2014) + + 16 Jun 2014; Julian Ospald <hasufell@gentoo.org> +yajl-2.0.4-r3.ebuild, + +files/yajl-2.0.4-pkgconfig_multilib.patch: + fix .pc install destination wrt #480598 |