Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388925 - the dev-util/pkgconfig ebuild has a syntax error which means that $PKG_CONFIG_PATH is wrong
Summary: the dev-util/pkgconfig ebuild has a syntax error which means that $PKG_CONFIG...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 388809 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-30 02:14 UTC by François Bissey
Modified: 2011-10-31 15:03 UTC (History)
1 user (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 François Bissey 2011-10-30 02:14:29 UTC
The ebuild contains the following line to define the PKG_CONFIG_PATH variable on prefix:

        if use prefix; then
                # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
                # simplify cross-prefix builds
                echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
                doenvd "${T}"/99${PN}
        fi


It relies on the multilib eclass. Unfortunately usr/$(libdir) is incorrect, it should be usr/$(get_libdir). libdir is not defined anywhere and is not defined in the multilib eclass.
Comment 1 Jonathan Callen (RETIRED) gentoo-dev 2011-10-30 02:50:54 UTC
--- ./ChangeLog
+++ ./ChangeLog
@@ -4,0 +5,3 @@
+  30 Oct 2011; Jonathan Callen <abcd@gentoo.org> pkgconfig-0.26.ebuild:
+  -m Fix typo ($(libdir) -> $(get_libdir)) (bug 388925)
+
Comment 2 François Bissey 2011-10-30 04:10:29 UTC
My friend Steve Trogdon filled a bug for this independently: #388809
One should be marked duplicate of the other.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-10-31 15:03:35 UTC
*** Bug 388809 has been marked as a duplicate of this bug. ***