GNOME Bugzilla – Bug 662404
Trouble when doing jhbuild sysdeps --install
Last modified: 2021-05-17 15:52:01 UTC
When I run jhbuild sysdeps --install, some packages remain uninstalled and I get this traceback: Traceback (most recent call last):
+ Trace 228884
jhbuild.main.main(sys.argv[1:])
rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
return cmd.execute(config, args, help)
return self.run(config, options, args, help)
installer.install(uninstalled)
txn_tx.WhatProvides("arch;newest;~installed", "any", map(lambda x: 'pkgconfig(%s)' % (x, ), pkgconfig_ids))
return self._proxy_method(*args, **keywords)
**keywords)
message.append(signature=signature, *args)
laura@euclides:~$ ^C laura@euclides:~$ gedit /usr/lib/pymodules/python2.6/dbus/connection.py laura@euclides:~$ gedit /home/laura/.local/lib/python2.6/site-packages/jhbuild/utils/systeminstall.py Also, when I open my home/laura/.local/lib/python2.6/site-packages/jhbuild/utils/systeminstall.py on line it says: # NOTE: This class is unfinished
Which distribution are you using?
Ubuntu 10.04 LTS
This was fixed in PackageKit 27-Jan-2012 [1]. We could detect an older version of PackageKit, and adapt JHBuild, but the commit comment [1] says if a string is passed it crashes with a TypeError. So I don't know what to do. Maybe JHBuild could detect old PackageKit + apt backend, and disable the JHBuild's 'PKSystemInstall' and try 'AptSystemInstall'. Laura, in the meantime, you could install 'apt-file'. Then JHBuild will use apt install instead of PackageKit. [1] http://gitorious.org/packagekit/packagekit/commit/0568e873f3711027409eb8d4727f31fff79f4e55
Further to comment 3, could consider using PackageKit's SearchFiles() and searching for /usr/lib/pkgconfig/blah.pc. First check SearchFiles() isn't broken like WhatProvides().
Created attachment 226637 [details] [review] PackageKit APT backend broken in < 0.7.4. Don't use Note: Using 'pkcon' is problematic. This patch also changes it to '/usr/bin/pkgcon', see bug 686291.
Review of attachment 226637 [details] [review]: I am sure it is going to work, so I won't comment on that. However I think you should use $system_prefix instead of /usr. I am not certain of that, but it is already set here https://git.gnome.org/browse/jhbuild/tree/jhbuild/defaults.jhbuildrc#n225 and someone could take it upon themselves to change that (if they wanted) in their ~/.jhbuildrc
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/jhbuild/-/issues/119.