guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 3/5] gnu: tzdata: Added "source" as input.


From: Ludovic Courtès
Subject: Re: [PATCH 3/5] gnu: tzdata: Added "source" as input.
Date: Sat, 14 Dec 2013 19:24:58 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

John Darrington <address@hidden> skribis:

> --- a/gnu/packages/base.scm
> +++ b/gnu/packages/base.scm
> @@ -535,7 +535,8 @@ with the Linux kernel.")
>               (delete-file-recursively (string-append out 
> "/share/zoneinfo-posix"))
>               (delete-file-recursively (string-append out 
> "/share/zoneinfo-leaps"))))
>           (alist-delete 'configure %standard-phases)))))
> -    (inputs `(("tzcode" ,(origin
> +    (inputs `(("source" ,source)
> +              ("tzcode" ,(origin
>                            (method url-fetch)

Actually the problem was that “source” is in ‘native-inputs’ when
cross-compiling (see build-system/gnu.scm.)

I fixed it differently in commit c94d01b:

--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -520,8 +520,8 @@ with the Linux kernel.")
        #:phases
        (alist-replace
         'unpack
-        (lambda* (#:key inputs #:allow-other-keys)
-          (and (zero? (system* "tar" "xvf" (assoc-ref inputs "source")))
+        (lambda* (#:key source inputs #:allow-other-keys)
+          (and (zero? (system* "tar" "xvf" source))
                (zero? (system* "tar" "xvf" (assoc-ref inputs "tzcode")))))
         (alist-cons-after
          'install 'post-install
Thanks!

Ludo’.

reply via email to

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