Skip to content

polkit: backport a fix for musl compilation

Marta Rybczynska requested to merge mrybczyn/oniro:fix/polkit into kirkstone

Backport upstream fix. Without it it fails a build with musl with a message like:

| ../../../polkit-0.119/src/polkitbackend/polkitbackendduktapeauthority.c: In function 'js_polkit_user_is_in_netgroup': | ../../../polkit-0.119/src/polkitbackend/polkitbackendduktapeauthority.c:1039:7: warning: implicit declaration of function 'innetgr' [-Wimplicit-function-declaration] | 1039 | if (innetgr (netgroup, | | ^~~~~~~ ... | /tmp/workspace.s8oaEh28da/build/tmp/work/corei7-64-oniro-linux-musl/polkit/0.119-r0/recipe-sysroot-native/usr/bin/x86_64-oniro-linux-musl/../../libexec/x86_64-oniro-linux-musl/gcc/x86_64-oniro-linux-musl/11.3.0/ld: ./.libs/libpolkit-backend-1.a(libpolkit_backend_1_la-polkitbackendduktapeauthority.o): in function js_polkit_user_is_in_netgroup': | /usr/src/debug/polkit/0.119-r0/build/src/polkitbackend/../../../polkit-0.119/src/polkitbackend/polkitbackendduktapeauthority.c:1039: undefined reference to innetgr' | collect2: error: ld returned 1 exit status

Upstream-Status: Pending

Signed-off-by: Marta Rybczynska marta.rybczynska@huawei.com

Merge request reports

Loading