GNOME Bugzilla – Bug 683832
jhbuild crashes if there isn't an installed pkg-config
Last modified: 2012-09-30 12:30:23 UTC
Traceback (most recent call last):
+ Trace 230840
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)
module_state = module_set.get_module_state(full_module_list)
installed_pkgconfig = systeminstall.get_installed_pkgconfigs(self.config)
proc = subprocess.Popen(['pkg-config', '--list-all'], stdout=subprocess.PIPE, env=config.get_original_environment(), close_fds=True)
errread, errwrite)
raise child_exception
Not having an installed pkg-config is the starting condition for OSX and Win32, so it's not a reasonable dependency.
Created attachment 224059 [details] [review] Provide an empty installed_pkgconfig list in get_installed_pkgconfigs raises an exception
Review of attachment 224059 [details] [review]: Thank you for the patch. ::: jhbuild/moduleset.py @@ +189,3 @@ + try: + installed_pkgconfig = systeminstall.get_installed_pkgconfigs(self.config) + except: Catch all exception isn't a good idea because it catches Python syntax errors. @@ +233,3 @@ + (self.config) + except: + pass This repeated code can be avoided by making the required modifications one level up the call stack.
Thank you for the report and patch. I fixed this in a different way. http://git.gnome.org/browse/jhbuild/commit/?id=a34a0bfc063d028c34896115c6e63498e05627a3