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

Bug 544062

Summary: sys-auth/polkit: fix compilation with musl
Product: Gentoo Linux Reporter: Travis Tilley <ttilley>
Component: HardenedAssignee: The Gentoo Linux Hardened Team <hardened>
Severity: normal CC: blueness
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: fix compilation against musl

Description Travis Tilley 2015-03-21 21:58:24 UTC
Created attachment 399422 [details, diff]
fix compilation against musl

musl doesn't have netgroup support. use configure to check for getnetgrent and innetgr, block off sections of code using those.

patch is inspired by a similar patch in alpine linux for polkit 0.105, however the polkit code has changed significantly since then. their attempt to upstream a fix has been completely ignored since 2012.

the attached patch is against hardened-dev musl branch, though i don't see how this could break things for anyone else. code review would be appreciated either way.
Comment 1 Anthony Basile gentoo-dev 2015-05-13 16:49:36 UTC
sorry for the delay in pushing this one.  i just noticed it becuase it wasn't blocking musl-porting.  anyhow its on the overlay now.