Summary: | dev-libs/libpcre: pkg-config file does not declare -lpthread in Libs.private | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Till Heikamp <t.heikamp> |
Component: | SELinux | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jd, t.heikamp |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
libpcre-8.30-pkg-config.patch |
Description
Till Heikamp
2013-01-29 00:23:33 UTC
Created attachment 337168 [details]
build.log
Same story for me: for all hosts using default/linux/amd64/13.0/selinux profile, I have to disabled static USE flag to successfully compile sys-apps/busybox Is libpcre installed with the static-libs USE flag set? Yes, it is: $ emerge -pv dev-libs/libpcre These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-libs/libpcre-8.30-r2:3 USE="bzip2 cxx jit readline recursion-limit static-libs (unicode) zlib -pcre16" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Hi, same for me. I tried recompiling following packages but it did not help: - gcc - glibc - libpcre Regards Daniel IMHO this cannot be fixed by just recompiling existing packages without further adjustments to the configuration or fixed packages. What I did (without success) is: # emerge -e @system # emerge -e @system # emerge -e @world Unfortunately, the behaviour was exactly like I described it in my first post. It fails when emerging busybox. @Mike: any idea? I thought we resolved these things with the static-libs on libselinux and libpcre not an selinux bug ... you'll hit it with any pcre static linking Created attachment 341670 [details]
libpcre-8.30-pkg-config.patch
@SpanKY:
Thank you very much. Here's my patch but all credits go to you!
Ebuild needs an addtional epatch line in src_prepare:
epatch "${FILESDIR}"/${P}-pkg-config.patch #454478
With this patch applied, I can emerge libpcre and busybox with success!
should be all set now in the tree; thanks for the report! Commit message: Add -pthread to static pkg-config entries when appropriate http://sources.gentoo.org/dev-libs/libpcre/libpcre-8.32-r1.ebuild?rev=1.1 http://sources.gentoo.org/dev-libs/libpcre/libpcre-8.32.ebuild?r1=1.2&r2=1.3 |