After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630460 - PackageKit integration is not working on all distros
PackageKit integration is not working on all distros
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: project-wizard
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Sébastien Granjoux
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-23 18:27 UTC by Vincent Untz
Modified: 2010-09-26 19:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to implement what Vincent suggested (2.10 KB, patch)
2010-09-25 09:24 UTC, Johannes Schmid
none Details | Review
Updated attachment (2.14 KB, patch)
2010-09-26 11:32 UTC, Johannes Schmid
accepted-commit_now Details | Review

Description Vincent Untz 2010-09-23 18:27:47 UTC
The code does this:

	g_list_foreach (missing_packages, (GFunc) strip_package_version_info,
					NULL);
	anjuta_util_glist_strings_prefix (missing_packages,
									  "/usr/lib/pkgconfig/");
	anjuta_util_glist_strings_sufix (missing_packages, ".pc");

	missing_files = g_list_concat (missing_programs, missing_packages);

However, at least in openSUSE, we don't have metadata with the complete list of files for all packages, so looking for /usr/lib/pkgconfig/gtkmm-2.4.pc won't work.

On the other hand, most if not all rpm-based distro will be able to find the package that provides pkgconfig(gtkmm-2.4). So maybe we should use this instead?
Comment 1 Johannes Schmid 2010-09-23 21:10:11 UTC
What do you exactly propose? I am quite sure the current code doesn't even work with Fedora but didn't have time to fix it yet. Do you mean the list of missing files should should include "pkgconfig(gtkmm-2.4)"?

Thanks
Comment 2 Vincent Untz 2010-09-23 22:04:29 UTC
Trying to install pkgconfig(gtkmm-2.4) instead of /usr/lib/pkgconfig/gtkmm-2.4.pc will work, yes. At least on Fedora and openSUSE (and probably Mandriva/Mageia too). No idea about .deb-based distros.
Comment 3 Johannes Schmid 2010-09-25 09:24:17 UTC
Created attachment 171080 [details] [review]
Patch to implement what Vincent suggested

The problem is that while trying to install the file you propose it doesn't work for me on Fedora 13. Could you check if it works for openSuSE or give me another suggestion what could be wrong?

Thanks!
Comment 4 Luis Medinas 2010-09-25 14:26:11 UTC
The attached patch works like a charm on openSUSE. Still you removed the addition of /usr/bin for binaries and i think it should be kept. 

What gpk-install-provide-file "pkgconfig(gtkmm-2.4)" does on fedora 13 ? Maybe this feature have only been implmented on fedora 14.
Comment 5 Johannes Schmid 2010-09-26 11:32:48 UTC
Created attachment 171125 [details] [review]
Updated attachment

Thanks for catching the "/usr/bin" issue!

This is the updated patch, it still doesn't work on f13 but if it works on OpenSuSE that's at least better than working nowhere. Would be nice if someone could try on f14.

Will ask for a freeze break as this is rather trivial but pretty much user-visible.
Comment 6 Luis Medinas 2010-09-26 12:35:48 UTC
This patch works on openSUSE. Thanks for the patch.
Comment 7 Johannes Schmid 2010-09-26 19:13:27 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.