bug-guix
[Top][All Lists]
Advanced

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

Re: libxml2-python


From: Andreas Enge
Subject: Re: libxml2-python
Date: Fri, 8 Mar 2013 13:13:03 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Am Freitag, 8. März 2013 schrieb Ludovic Courtès:
> Glibc is automatically added as an input, under the name “glibc” (see
> build-system/gnu.scm).
> 
> So you can just do something like:
> 
>   (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 
"/include")))
            (system* "python" "setup.py" "install" (string-append "--
prefix=" out))))
        %standard-phases)))

yields
...
In unknown file:
   ?: 1 [string-append #f "/include"]
In ice-9/boot-9.scm:
 106: 0 [#<procedure 2347b40 at ice-9/boot-9.scm:97:6 (thrown-k . args)> 
wrong-type-arg ...]

Indeed, the key of the hash table is "libc" and not "glibc". I think it 
would be better to change it to "glibc" (which is what both of us thought 
naturally that it was already). I think this occurrence needs to be 
changed:
  ./gnu/packages/base.scm:1091:      ("libc" ,glibc-final))))
in %final-inputs, and probably other places to be coherent.

Andreas



reply via email to

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