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...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-09 08:33 UTC by Michael Haubenwallner
Modified: 2019-01-09 12:38 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 Michael Haubenwallner 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.

Thoughts?

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

Thanks!
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):

https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e521ba12d5fa49f7aaf111325f1170821d1ab6c1

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

    dev-libs/libbsd: add for bug#674950
    
    Bug: https://bugs.gentoo.org/674950
    Package-Manager: Portage-2.3.51, Repoman-2.3.11
    Manifest-Sign-Key: 0x29FB0E9EC719EE20
    Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>

 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(+)