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

Bug 632658

Summary: sys-apps/openrc-0.28 needs __USE_BSD, __USE_MISC defined to build on sys-libs/uclibc-ng
Product: Gentoo Hosted Projects Reporter: René Rhéaume <rene.rheaume>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED INVALID    
Severity: normal CC: blueness
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 570544    
Attachments: openrc-0.28-uclibc.patch

Description René Rhéaume 2017-10-01 20:54:14 UTC
OpenRC uses many extensions, notably BSD extensions, most of them supported by uclibc-ng. However, __USE_BSD and __USE_MISC are not defined and cannot be defined globally as end up with other build errors.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 openrc
2.
3.
Actual Results:  
emake failed (compile phase)

Expected Results:  
OpenRC updated on system
Comment 1 René Rhéaume 2017-10-01 20:57:14 UTC
Created attachment 497382 [details, diff]
openrc-0.28-uclibc.patch

The patches enabled __USE_BSD and __USE_MISC on a header-by-header basis
Comment 2 William Hubbs gentoo-dev 2017-10-02 16:55:34 UTC
I believe the macros you are listing are internal maccros for uclibc-ng
and should not be defined by other projects.

I have added our uclibc-ng maintainer to this bug.
Comment 3 William Hubbs gentoo-dev 2017-10-02 16:57:57 UTC
Which version of uclibc-ng are you using?
I think you need at least 1.25.
Comment 4 William Hubbs gentoo-dev 2017-10-05 18:37:17 UTC
I just verified that you need uclibc-ng v1.0.25. This is the relevant
commit.

https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/commit?id=526747a2bf

Thanks,

William
Comment 5 René Rhéaume 2017-10-05 21:28:23 UTC
That's correct you mark my report as invalid because I use an old version of µclibc-ng. However, can you please add "elibc_uclibc ? ( >=syslibs/uclibc-ng-1.0.25 )" to the DEPEND variable in the ebuild, because there are still versions older than 1.0.25 in the tree?