bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'gobject-introspection': No such file or directory


From: Ludovic Courtès
Subject: Re: 'gobject-introspection': No such file or directory
Date: Mon, 04 Feb 2013 23:36:39 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

>> Isn’t there by any chance a /bin/sh behind this?

The build fails like this:

--8<---------------cut here---------------start------------->8---
  GICOMP gir/cairo-1.0.gir
Traceback (most recent call last):
  File "./g-ir-scanner", line 46, in <module>
    sys.exit(scanner_main(sys.argv))
  File "./giscanner/scannermain.py", line 413, in scanner_main
    ss = create_source_scanner(options, args)
  File "./giscanner/scannermain.py", line 335, in create_source_scanner
    ss.parse_files(filenames)
  File "./giscanner/sourcescanner.py", line 250, in parse_files
    self._parse(headers)
  File "./giscanner/sourcescanner.py", line 283, in _parse
    stdout=subprocess.PIPE)
  File 
"/nix/store/l99188aprsmzdkxkkmk2nibwwc0zz84c-python-2.7.3/lib/python2.7/subprocess.py",
 line 679, in __init__
    errread, errwrite)
  File 
"/nix/store/l99188aprsmzdkxkkmk2nibwwc0zz84c-python-2.7.3/lib/python2.7/subprocess.py",
 line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
--8<---------------cut here---------------end--------------->8---

Looking at subprocess.py above, I see this:

--8<---------------cut here---------------start------------->8---
            if shell:
                args = ["/bin/sh", "-c"] + args
                if executable:
                    args[0] = executable
--8<---------------cut here---------------end--------------->8---

The solution is to patch Python to refer to our ‘sh’ instead of /bin/sh
(as is done for Guile’s ice-9/popen.scm).

Can you do that?

TIA,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]