When trying to emerge app-admin/packagekit-base I get the error that the linker cannot find -lpolkit-backend-1. I remerged sys-auth/polkit, with no difference. A pkg-config file (/usr/lib64/pkgconfig/polkit-backend-1.pc) is available, but not a corresponding library file. Reproducible: Always Steps to Reproduce: 1. make sure that policykit USE-flag is enable for app-admin/packagekit-base 2. emerge -1 packagekit-base Actual Results: Build failure: ... CC packagekitd-pk-transaction-list.o CCLD libpkplugins.la copying selected object files to avoid basename conflicts... GISCAN PackageKitPlugin-1.0.gir CCLD packagekitd /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpolkit-backend-1 collect2: ld returned 1 exit status make[4]: *** [packagekitd] Error 1 make[4]: *** Waiting for unfinished jobs.... /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lpolkit-backend-1 collect2: ld returned 1 exit status linking of temporary binary failed: Command '['/bin/sh', '../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/tmp/portage/app-admin/packagekit-base-0.7.4/work/PackageKit-0.7.4/src/tmp-introspectbcQATe/PackageKitPlugin-1.0', '-export-dynamic', '-march=native', '-O2', '-pipe', '/tmp/portage/app-admin/packagekit-base-0.7.4/work/PackageKit-0.7.4/src/tmp-introspectbcQATe/PackageKitPlugin-1.0.o', '-L.', 'libpkplugins.la', '-L../lib/packagekit-glib2', '-pthread', '-Wl,--export-dynamic', '-lgio-2.0', '-lgobject-2.0', '-lgthread-2.0', '-lgmodule-2.0', '-lrt', '-lglib-2.0']' returned non-zero exit status 1 make[4]: *** [PackageKitPlugin-1.0.gir] Error 1 make[4]: Leaving directory `/tmp/portage/app-admin/packagekit-base-0.7.4/work/PackageKit-0.7.4/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/portage/app-admin/packagekit-base-0.7.4/work/PackageKit-0.7.4/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/portage/app-admin/packagekit-base-0.7.4/work/PackageKit-0.7.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/app-admin/packagekit-base-0.7.4/work/PackageKit-0.7.4' make: *** [all] Error 2 emake failed Expected Results: app-admin/packagekit-base installs without any issues, like when build without policykit USE-flag enabled. Build log, 'emerge --info' output and 'equery files polkit' output will be attached.
Created attachment 316209 [details] emerge --info output
Created attachment 316211 [details] equery files polkit output
Created attachment 316213 [details] app-admin/packagekit-base build log
Looks like the .pc file is cruft and the library was punted in purpose: "Nuke polkitbackend library, localauthority backend and extension system": http://cgit.freedesktop.org/polkit/commit/src/polkitbackend/Makefile.am?id=0f830c76048229895164837f8ce01869d88a2616 Reported now here: https://bugs.freedesktop.org/show_bug.cgi?id=51466 Moving to packagekit-base maintainers since according to the upstream commit they should now implement their own JavaScript based version (?)
Removed the pkg-config file from polkit so it should bail out during ./configure phase like it should now: +*polkit-0.106-r4 (27 Jun 2012) + + 27 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> +polkit-0.106-r4.ebuild: + Stop installing polkit-backend-1.pc because upstream changed + libpolkit-backend-1.la to be noinst_LTLIBRARIES in + src/polkitbackend/Makefile.am wrt #423431 by Pim Vullers http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-auth/polkit/polkit-0.106-r4.ebuild?rev=1.1&content-type=text/plain + rm -f "${ED}"/usr/lib*/pkgconfig/polkit-backend-1.pc #423431
From... http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956 To... + 27 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> + packagekit-base-0.7.4.ebuild: + Remove check for polkit-backend-1 which is now marked as "noinst" in polkit + >= 0.106 wrt #423431 by Pim Vullers http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild?r1=1.2&r2=1.3
The change should have been propagated to packagekit-gtk and packagekit-qt4. Fixing...
+ 20 Jul 2012; Fabio Erculiani <lxnay@gentoo.org> packagekit-gtk-0.7.4.ebuild: + Remove check for polkit-backend-1 which is now marked as noinst in polkit >= + 0.106 wrt #423431 by Pim Vullers + + 20 Jul 2012; Fabio Erculiani <lxnay@gentoo.org> packagekit-qt4-0.7.4.ebuild: + Remove check for polkit-backend-1 which is now marked as noinst in polkit >= + 0.106 wrt #423431 by Pim Vullers + Done.