From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: libxml2-python Date: Fri, 8 Mar 2013 13:13:03 +0100 Message-ID: <201303081313.03952.andreas@enge.fr> References: <201303062343.03155.andreas@enge.fr> <201303072338.13585.andreas@enge.fr> <87d2vakd22.fsf@gnu.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]:33585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDwAl-0001dU-7o for bug-guix@gnu.org; Fri, 08 Mar 2013 07:13:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDwAe-0000kX-2P for bug-guix@gnu.org; Fri, 08 Mar 2013 07:13:15 -0500 In-Reply-To: <87d2vakd22.fsf@gnu.org> 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: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: bug-guix@gnu.org Am Freitag, 8. M=C3=A4rz 2013 schrieb Ludovic Court=C3=A8s: > Glibc is automatically added as an input, under the name =E2=80=9Cglibc= =E2=80=9D (see > build-system/gnu.scm). >=20 > So you can just do something like: >=20 > (lambda* (#:key inputs #:allow-other-keys) > (substitute* "setup.py" > (("/usr/include") > (string-append (assoc-ref inputs "glibc") "/include")))) That is what I tried first, but it does not work: (arguments `(#:phases (alist-replace 'install (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) (let ((install (assoc-ref %standard-phases 'install)) (glibc (assoc-ref inputs "glibc")) (out (assoc-ref outputs "out"))) (apply install args) (chdir "python") (substitute* "setup.py" (("/opt/include") (string-append glibc= =20 "/include"))) (system* "python" "setup.py" "install" (string-append "-- prefix=3D" out)))) %standard-phases))) yields =2E.. In unknown file: ?: 1 [string-append #f "/include"] In ice-9/boot-9.scm: 106: 0 [#=20 wrong-type-arg ...] Indeed, the key of the hash table is "libc" and not "glibc". I think it=20 would be better to change it to "glibc" (which is what both of us thought=20 naturally that it was already). I think this occurrence needs to be=20 changed: ./gnu/packages/base.scm:1091: ("libc" ,glibc-final)))) in %final-inputs, and probably other places to be coherent. Andreas