If dev-libs/libbsd is installed while perl is being built, perl detects it and enables relevant header file parts. When portage unmerges libbsd later, random packages using perl headers fail to build: /usr/lib64/perl5/5.12.4/x86_64-linux/CORE/perl.h:5905:63: fatal error: libutil.h: No such file or directory
+*libbsd-0.3.0-r1 (15 Jan 2012) + + 15 Jan 2012; Samuli Suominen <ssuominen@gentoo.org> +libbsd-0.3.0-r1.ebuild: + Remove libutil.h (and vis.h) from /usr/include to prevent automagic #includie + by dev-lang/perl wrt #399001 by Michał Górny
Doesn't this remove some point in having libbsd?
(In reply to comment #2) > Doesn't this remove some point in having libbsd? no, those headers are deprecated and the replacements live in /usr/include/bsd/ and should be used like this: to use #include <bsd/libutil.h> in the code: pkg-config --cflags libbsd to use #include <libutil.h> in the code: pkg-config --cflags libbsd-overlay ssuominen@null ~/gentoo-x86/dev-libs/libbsd $ pkg-config --cflags libbsd-overlay -isystem /usr/include/bsd -DLIBBSD_OVERLAY ssuominen@null ~/gentoo-x86/dev-libs/libbsd $ pkg-config --cflags libbsd ssuominen@null ~/gentoo-x86/dev-libs/libbsd $