guix-commits
[Top][All Lists]
Advanced

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

01/01: packages: Use packages from '%final-inputs' as the default patch


From: Ludovic Courtès
Subject: 01/01: packages: Use packages from '%final-inputs' as the default patch inputs.
Date: Tue, 05 May 2015 16:10:48 +0000

civodul pushed a commit to branch wip-hurd
in repository guix.

commit 05dd3496796bbb5a59314c60ebd2d4656155e4ee
Author: Ludovic Courtès <address@hidden>
Date:   Tue May 5 18:10:30 2015 +0200

    packages: Use packages from '%final-inputs' as the default patch inputs.
    
    Reported by Manolis Ragkousis <address@hidden>
    at <http://lists.gnu.org/archive/html/guix-devel/2015-05/msg00059.html>.
    
    * guix/packages.scm (%standard-patch-inputs): Add 'canonical', and use
      it in 'ref'.
---
 guix/packages.scm |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/guix/packages.scm b/guix/packages.scm
index c955b35..247791f 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -315,8 +315,11 @@ representation."
   (string-append (package-name package) "-" (package-version package)))
 
 (define (%standard-patch-inputs)
-  (let ((ref (lambda (module var)
-               (module-ref (resolve-interface module) var))))
+  (let* ((canonical (module-ref (resolve-interface '(gnu packages base))
+                                'canonical-package))
+         (ref       (lambda (module var)
+                      (canonical
+                       (module-ref (resolve-interface module) var)))))
     `(("tar"   ,(ref '(gnu packages base) 'tar))
       ("xz"    ,(ref '(gnu packages compression) 'xz))
       ("bzip2" ,(ref '(gnu packages compression) 'bzip2))
@@ -324,8 +327,7 @@ representation."
       ("lzip"  ,(ref '(gnu packages compression) 'lzip))
       ("unzip" ,(ref '(gnu packages zip) 'unzip))
       ("patch" ,(ref '(gnu packages base) 'patch))
-      ("locales" ,(ref '(gnu packages commencement)
-                       'glibc-utf8-locales-final)))))
+      ("locales" ,(ref '(gnu packages base) 'glibc-utf8-locales)))))
 
 (define (default-guile)
   "Return the default Guile package used to run the build code of



reply via email to

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