Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674950 - dev-libs/libbsd: should not depend on sys-kernel/linux-headers (but virtual/os-headers)
Summary: dev-libs/libbsd: should not depend on sys-kernel/linux-headers (but virtual/o...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2019-01-09 08:33 UTC by Michael Haubenwallner (RETIRED)
Modified: 2023-01-03 05:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haubenwallner (RETIRED) gentoo-dev 2019-01-09 08:33:48 UTC
Unlike Prefix/RAP, in Prefix/Guest we do _not_ install sys-kernel/linux-headers inside Prefix, but use host OS' glibc and kernel headers.
Hence packages should not depend on sys-kernel/linux-headers directly, but virtual/os-headers instead.

Along bug#579228, DEPEND=">=sys-kernel/linux-headers-3.17" was introduced to libbsd, but emerging dev-libs/libbsd-0.9.1 (without linux-headers-3.17) does succeed in Prefix/Guest on RHEL 7.2, which has kernel-headers-3.10.0 installed.

This makes me think that either libbsd was fixed meanwhile to deal with older linux headers, or this was another problem and introducing the dep was a workaround only.


My first idea here was this change, but that feels strange at least:
+DEPEND="|| ( >=sys-kernel/linux-headers-3.17 virtual/os-headers )"

Comment 1 Larry the Git Cow gentoo-dev 2019-01-09 12:38:04 UTC
The bug has been referenced in the following commit(s):

commit e521ba12d5fa49f7aaf111325f1170821d1ab6c1
Author:     Michael Haubenwallner <>
AuthorDate: 2019-01-09 12:37:03 +0000
Commit:     Michael Haubenwallner <>
CommitDate: 2019-01-09 12:37:35 +0000

    dev-libs/libbsd: add for bug#674950
    Package-Manager: Portage-2.3.51, Repoman-2.3.11
    Manifest-Sign-Key: 0x29FB0E9EC719EE20
    Signed-off-by: Michael Haubenwallner <>

 dev-libs/libbsd/Manifest            | 23 +++++++++++++++++++++
 dev-libs/libbsd/libbsd-0.9.1.ebuild | 40 +++++++++++++++++++++++++++++++++++++
 dev-libs/libbsd/metadata.xml        |  8 ++++++++
 3 files changed, 71 insertions(+)