Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399001 - dev-lang/perl has automagic dependency on libbsd (in headers)
Summary: dev-lang/perl has automagic dependency on libbsd (in headers)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-15 16:25 UTC by Michał Górny
Modified: 2012-01-15 22:33 UTC (History)
1 user (show)

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-01-15 16:25:39 UTC
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
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-01-15 17:08:22 UTC
+*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
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-01-15 22:18:43 UTC
Doesn't this remove some point in having libbsd?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-01-15 22:33:22 UTC
(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 $