Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423431 - app-admin/packagekit-base shouldn't be using libpolkit-backend-1.so library anymore with >=sys-auth/polkit-0.106
Summary: app-admin/packagekit-base shouldn't be using libpolkit-backend-1.so library a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabio Erculiani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 06:20 UTC by Pim Vullers
Modified: 2012-07-20 13:40 UTC (History)
1 user (show)

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


Attachments
emerge --info output (emerge-info.txt,14.04 KB, text/plain)
2012-06-25 06:21 UTC, Pim Vullers
Details
equery files polkit output (polkit-files.txt,3.40 KB, text/plain)
2012-06-25 06:21 UTC, Pim Vullers
Details
app-admin/packagekit-base build log (file_423431.txt,28.96 KB, text/plain)
2012-06-25 06:24 UTC, Pim Vullers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pim Vullers 2012-06-25 06:20:39 UTC
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.
Comment 1 Pim Vullers 2012-06-25 06:21:15 UTC
Created attachment 316209 [details]
emerge --info output
Comment 2 Pim Vullers 2012-06-25 06:21:42 UTC
Created attachment 316211 [details]
equery files polkit output
Comment 3 Pim Vullers 2012-06-25 06:24:47 UTC
Created attachment 316213 [details]
app-admin/packagekit-base build log
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 07:07:02 UTC
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 (?)
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 10:07:39 UTC
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
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 18:50:17 UTC
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
Comment 7 Fabio Erculiani (RETIRED) gentoo-dev 2012-07-20 13:37:37 UTC
The change should have been propagated to packagekit-gtk and packagekit-qt4.
Fixing...
Comment 8 Fabio Erculiani (RETIRED) gentoo-dev 2012-07-20 13:40:27 UTC
+  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.