Summary: | sys-libs/libselinux-2.7[pcre2]: libselinux.pc still refers to libpcre.pc instead of libpcre2-posix.pc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | SE Linux Bugs <selinux> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log (xz-compressed) |
Description
Dennis Schridde
2017-09-30 09:37:29 UTC
Fixed in: https://github.com/devurandom/gentoo-overlay/commit/010971406488234701070d91523ff4f12bb72e85 I split "busybox_config_set()" out from busybox_config_option(), in order to be able to easily set string values, and then used that to set CONFIG_EXTRA_LDLIBS, if use selinux && use static && has_version 'sys-libs/libselinux[pcre2]'. I am not sure whether this would also require me to set DEPEND="dev-libs/libpcre2" -- I left that out for now. this is a bug in libselinux, not busybox. busybox has no knowledge of pcre or pcre2, it just queries libselinux deps via `pkg-config --libs --static libselinux`. looks like the libselinux.pc still says "libpcre" Requires.private instead of libpcre2-posix (or something). Indeed I see: # pkg-config --libs --static libselinux -lselinux -lsepol -lpcre -pthread I changed libselinux.pc: -Requires.private: libsepol libpcre +Requires.private: libsepol libpcre2-posix Now I get: # pkg-config --libs --static libselinux -lselinux -lsepol -lpcre2-posix -lpcre2-8 -pthread And sys-apps/busybox-1.28.0 builds fine. This is already fixed upstream, it'll be in 2.8 soon commit 80d6927b69b5d1411fde52cf693e05746aa6ad49 Author: Petr Lautrbach <plautrba@redhat.com> Date: Wed Oct 11 16:53:45 2017 libselinux: Add support for pcre2 to pkgconfig definition When libselinux is built using USE_PCRE2 libselinux.pc needs to require libpcre2-8 instead of libpcre. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1487521 Signed-off-by: Petr Lautrbach <plautrba@redhat.com> Fixed in 2.8. |