Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561672 - sys-auth/polkit : disable netgroup to support uclibc
Summary: sys-auth/polkit : disable netgroup to support uclibc
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Freedesktop bugs
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: musl-porting uclibc-porting
  Show dependency tree
 
Reported: 2015-09-28 01:23 UTC by René Rhéaume
Modified: 2022-02-20 00:43 UTC (History)
2 users (show)

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


Attachments
polkit-0.113-optional-netgroup-r2.patch (polkit-0.113-optional-netgroup-r2.patch,4.00 KB, patch)
2015-09-28 01:27 UTC, René Rhéaume
Details | Diff
polkit-0.113.ebuild.patch (polkit-0.113.ebuild.patch,998 bytes, patch)
2015-09-28 01:27 UTC, René Rhéaume
Details | Diff
polkit-0.113.ebuild.patch (polkit-0.113.ebuild.patch,710 bytes, patch)
2015-09-28 01:33 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2015-09-28 01:23:40 UTC
netgroup is a SunOS extension and is not supported by uclibc (to keep it small, it's also for microcontrolers). Whn applied, this patch checks for uclibc and replaces netgroup call by stubs returning that access cannot be granted by this method. 

Reproducible: Always

Steps to Reproduce:
1. Get Lilblue
2. emerge -1 polkit
3.
Actual Results:  
make failed

Expected Results:  
polkit installed on system
Comment 1 René Rhéaume 2015-09-28 01:27:24 UTC
Created attachment 413110 [details, diff]
polkit-0.113-optional-netgroup-r2.patch
Comment 2 René Rhéaume 2015-09-28 01:27:53 UTC
Created attachment 413112 [details, diff]
polkit-0.113.ebuild.patch
Comment 3 René Rhéaume 2015-09-28 01:33:00 UTC
Created attachment 413114 [details, diff]
polkit-0.113.ebuild.patch
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-10-07 10:41:36 UTC
The patch looks fine. Did you submit it to upstream ?
Comment 5 René Rhéaume 2015-10-08 07:56:52 UTC
(In reply to Gilles Dartiguelongue from comment #4)
> The patch looks fine. Did you submit it to upstream ?

Submitted the patch as an attachment to https://bugs.freedesktop.org/show_bug.cgi?id=50145 . Natanael Copa (who used to be on gentoo-embedded list before starting his Alpine distribution) hit the problem in early 2013 and sent a patch, but the bug is assigned to someone not reading emails from Bugzilla. What a shame.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-09-30 08:53:34 UTC
Looks like this would also be needed for musl support. http://lists.openembedded.org/pipermail/openembedded-devel/2016-January/105613.html
Comment 7 David Seifert gentoo-dev 2022-01-02 10:27:21 UTC
uclibc support in Gentoo has been removed.
Comment 8 Larry the Git Cow gentoo-dev 2022-02-20 00:43:27 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cca21561571e00e88f434ad94a9cde6851fab244

commit cca21561571e00e88f434ad94a9cde6851fab244
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-20 00:42:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-20 00:42:58 +0000

    sys-auth/polkit: add musl patch to 0.120_p20220127
    
    Pulled in from ::musl.
    
    Closes: https://bugs.gentoo.org/833753
    Bug: https://bugs.gentoo.org/561672
    Signed-off-by: Sam James <sam@gentoo.org>

 ...lkit-0.118-make-netgroup-support-optional.patch | 228 +++++++++++++++++++++
 sys-auth/polkit/polkit-0.120_p20220127.ebuild      |   3 +
 2 files changed, 231 insertions(+)