Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292046 - dev-libs/libpcre isn't correctly Prefix'ed
Summary: dev-libs/libpcre isn't correctly Prefix'ed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 03:55 UTC by Matt Michalowski
Modified: 2009-11-11 13:45 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 Matt Michalowski 2009-11-06 03:55:29 UTC
The port of the dev-libs/libpcre ebuilds (both 7.9-r1 and 8.00) has an slightly broken src_prepare routine which breaks the pkg-config .pc files which get installed, and have the potential to break other packages which might use them.

The line:
sed -i -e "s:libdir=@libdir@:libdir=/$(get_libdir):" libpcre.pc.in || die "Fixing libpcre pkgconfig files failed"

means that libdir gets set to just "/lib" and not EPREFIX/lib or EPREFIX/usr/lib.

Removing this sed line entirely is good enough for Prefix, you will end up with something like:
# Package Information for pkg-config

prefix=/Users/mattm/gentoo/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libpcre
Description: PCRE - Perl compatible regular expressions C library
Version: 8.00
Libs: -L${libdir} -lpcre
Cflags: -I${includedir}
Comment 1 Fabian Groffen gentoo-dev 2009-11-11 13:45:10 UTC
fixed, thanks