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 662404 - Trouble when doing jhbuild sysdeps --install
Trouble when doing jhbuild sysdeps --install
Status: RESOLVED OBSOLETE
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks: 685205
 
 
Reported: 2011-10-21 16:57 UTC by Laura Lazzati
Modified: 2021-05-17 15:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PackageKit APT backend broken in < 0.7.4. Don't use (1.13 KB, patch)
2012-10-17 12:12 UTC, Craig Keogh
none Details | Review

Description Laura Lazzati 2011-10-21 16:57:49 UTC
When I run jhbuild sysdeps --install, some packages remain uninstalled and I get this traceback:

Traceback (most recent call last):
  • File "/home/laura/.local/bin/jhbuild", line 32 in <module>
    jhbuild.main.main(sys.argv[1:])
  • File "/home/laura/.local/lib/python2.6/site-packages/jhbuild/main.py", line 147 in main
    rc = jhbuild.commands.run(command, config, args, help=lambda: print_help(parser))
  • File "/home/laura/.local/lib/python2.6/site-packages/jhbuild/commands/__init__.py", line 129 in run
    return cmd.execute(config, args, help)
  • File "/home/laura/.local/lib/python2.6/site-packages/jhbuild/commands/__init__.py", line 52 in execute
    return self.run(config, options, args, help)
  • File "/home/laura/.local/lib/python2.6/site-packages/jhbuild/commands/sysdeps.py", line 100 in run
    installer.install(uninstalled)
  • File "/home/laura/.local/lib/python2.6/site-packages/jhbuild/utils/systeminstall.py", line 103 in install
    txn_tx.WhatProvides("arch;newest;~installed", "any", map(lambda x: 'pkgconfig(%s)' % (x, ), pkgconfig_ids))
  • File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68 in __call__
    return self._proxy_method(*args, **keywords)
  • File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140 in __call__
    **keywords)
  • File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 610 in call_blocking
    message.append(signature=signature, *args)
TypeError: Expected a string or unicode object
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
Comment 1 Frederic Peters 2011-10-21 17:09:35 UTC
Which distribution are you using?
Comment 2 Laura Lazzati 2011-10-21 18:01:51 UTC
Ubuntu 10.04 LTS
Comment 3 Craig Keogh 2012-10-15 04:44:30 UTC
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
Comment 4 Craig Keogh 2012-10-17 11:32:42 UTC
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().
Comment 5 Craig Keogh 2012-10-17 12:12:04 UTC
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.
Comment 6 Magdalen Berns (irc magpie) 2014-03-26 09:32:59 UTC
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
Comment 7 GNOME Infrastructure Team 2021-05-17 15:52:01 UTC
-- 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.