Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 550298

Summary: sys-libs/libcap-ng: utils/proc-llist.c fails to include <unistd.h> and breaks build on sys-libs/musl.
Product: Gentoo Linux Reporter: Shiz <hi>
Component: HardenedAssignee: Gentoo musl team <musl>
Severity: normal CC: base-system, blueness
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Bug Depends on: 556872    
Bug Blocks: 430702    

Description Shiz 2015-05-24 13:36:11 UTC
Currently when attempting to perform a stage 3 install from the latest experimental/hardened/musl/amd64 tarball, an emerge -NuD world fails because the main tree ships sys-libs/libcap-ng 0.7.4 as stable. The hardened-dev overlay with musl patches still ships 0.7.3, thus Portage will prefer and attempt to install the main tree version, which will then fail.

An alternative solution would be to add >=sys-libs/libcap-ng-0.7.4 to the hardened/linux/musl profiles' package.mask until the patches are forward-ported to 0.7.4, if that turns out to be nontrivial.
Comment 1 Anthony Basile gentoo-dev 2015-05-24 14:35:56 UTC
I've bumped this on the overlay, but the patch should go upstream.  Its trivial and POSIX-correct.  It adds #include <unistd.h> for pid_t and uid_t.  I've looked at bug I can't find any bug reporting process.

Does anyone in base-system know?  Do I just submit at
Comment 2 Shiz 2015-05-24 14:58:51 UTC
Judging from earlier bugs[1][2], seems to be the place to go.

Comment 3 SpanKY gentoo-dev 2015-05-25 01:42:24 UTC
(In reply to Anthony Basile from comment #1)

where is the patch ?
Comment 4 Shiz 2015-05-25 01:47:04 UTC
Presumably, he means the patch in the hardened-development overlay[1].

Comment 5 SpanKY gentoo-dev 2015-05-25 02:11:10 UTC
(In reply to Shiz from comment #4)

that patch is fine for the main tree once it's cleaned & properly documented:
Comment 6 Anthony Basile gentoo-dev 2015-05-26 10:45:11 UTC
The patch is now in the our tree for libcap-ng-0.7.5 (not previous)

and it is submitted upstream at the above URL.
Comment 7 Anthony Basile gentoo-dev 2015-05-27 22:59:40 UTC
Upstream says the fix is in 0.7.7.  I'll bump and see if it works.
Comment 8 Anthony Basile gentoo-dev 2015-05-28 01:17:03 UTC
(In reply to Anthony Basile from comment #7)
> Upstream says the fix is in 0.7.7.  I'll bump and see if it works.

It works.  I bumped 0.7.6 (with my patch) and 0.7.7 (without my patch) to the tree.  The next version of libcap-ng to stabilize should be 0.7.7.
Comment 9 tt_1 2015-10-04 07:27:26 UTC
can be closed, 0.7.7 is stable on all related archs.