From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: 'gobject-introspection': No such file or directory Date: Tue, 05 Feb 2013 10:00:04 +0100 Message-ID: <87ehgvuodn.fsf@gnu.org> References: <87a9rtxt61.fsf@karetnikov.org> <87pq0p9rwq.fsf@gnu.org> <87lib7gahf.fsf@karetnikov.org> <87halrogeg.fsf@gnu.org> <877gmna8uq.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2eO0-0000Gz-Hv for bug-guix@gnu.org; Tue, 05 Feb 2013 04:00:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2eNv-0005FV-4o for bug-guix@gnu.org; Tue, 05 Feb 2013 04:00:16 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:59397) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2eNu-00056q-T4 for bug-guix@gnu.org; Tue, 05 Feb 2013 04:00:11 -0500 In-Reply-To: <877gmna8uq.fsf@karetnikov.org> (Nikita Karetnikov's message of "Mon, 04 Feb 2013 19:43:12 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: >> The solution is to patch Python to refer to our =E2=80=98sh=E2=80=99 ins= tead of /bin/sh >> (as is done for Guile=E2=80=99s ice-9/popen.scm). > >> Can you do that? > > I changed 'arguments', but 'gobject-introspection' failed with the same > error. > > python.scm: > > (arguments `(#:tests? #f ; XXX: some tests fail > #:phases (alist-cons-before > 'configure 'pre-configure > (lambda* (#:key inputs #:allow-other-keys) > (let ((bash (assoc-ref inputs "bash"))) > (substitute* "Lib/subprocess.py" > (("/bin/sh") > (string-append bash "/bin/bash"))))) > %standard-phases))) Good. You can already commit that one (but please make it (string-append bash "/bin/sh") rather.) > subprocess.py: > > if shell: > args =3D ["/nix/store/4mg8b8vvmava68y64qmm70gqfnhhjzmx-ba= sh-4.2/bin/bash", "-c"] + args > if executable: > args[0] =3D executable Are you looking at the subprocess.py that=E2=80=99s actually mentioned in t= he gobject-introspection backtrace? If yes, then it likely means that it=E2=80=99s the caller=E2=80=93i.e., som= e .py file in gobject-introspection=E2=80=93that=E2=80=99s passing /bin/sh somewhere. Ca= n you check the files mentioned in the backtrace? HTH, Ludo=E2=80=99.