Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435728 - sys-devel/gcc: gcj-*.pc file is installed into /usr/lib/pkgconfig instead of libdir
Summary: sys-devel/gcc: gcj-*.pc file is installed into /usr/lib/pkgconfig instead of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 425154
Blocks:
  Show dependency tree
 
Reported: 2012-09-21 09:36 UTC by Michał Górny
Modified: 2012-11-19 06:56 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-09-21 09:36:55 UTC
$ qlist gcc | grep gcj.*pc
/usr/lib/pkgconfig/libgcj-4.7.1.pc

while it should be installed to /usr/lib64/pkgconfig. This causes two problems:

1) pkg-config doesn't even check that directory by default,
2) gcc-config doesn't look for the file there and *silently* leaves broken libgcj.pc symlinks.
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2012-09-29 05:32:36 UTC
2) is bug #430932.

We have:

1621     # SLOT up libgcj.pc if it's available (and let gcc-config worry about links)
1622     for x in "${D}"${PREFIX}/lib*/pkgconfig/libgcj*.pc ; do
1623         [[ -f ${x} ]] || continue
1624         sed -i "/^libdir=/s:=.*:=${LIBPATH}:" "${x}"
1625         mv "${x}" "${D}"/usr/lib/pkgconfig/libgcj-${GCC_PV}.pc || die
1626     done
Comment 3 SpanKY gentoo-dev 2012-11-19 06:56:47 UTC
during the unpack phase, we have to hack pkgconfigdir to the right place

http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.554&r2=1.555