Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544062 - sys-auth/polkit: fix compilation with musl
Summary: sys-auth/polkit: fix compilation with musl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2015-03-21 21:58 UTC by Travis Tilley
Modified: 2015-05-13 16:49 UTC (History)
1 user (show)

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


Attachments
fix compilation against musl (0001-sys-auth-polkit-fix-compilation-with-musl-by-making-.patch,8.85 KB, patch)
2015-03-21 21:58 UTC, Travis Tilley
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.