[Top][All Lists]

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

02/02: packages: Disambiguate 'modules' and 'imported-modules' in <origi

From: Ludovic Courtès
Subject: 02/02: packages: Disambiguate 'modules' and 'imported-modules' in <origin>.
Date: Thu, 16 Jun 2016 12:35:07 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit a7db719f3dc16b6be7aaab45e718798902d82833
Author: Ludovic Courtès <address@hidden>
Date:   Thu Jun 16 14:31:52 2016 +0200

    packages: Disambiguate 'modules' and 'imported-modules' in <origin>.
    The two mistakes made here (confusion between 'modules' and
    'imported-modules') were canceling each other.
    * guix/packages.scm (patch-and-repack): Use IMPORTED-MODULES, not
    MODULES, as the base of the module list passed as #:modules to
    (origin->derivation): Pass IMPORTED-MODULES, not MODULES, as
    the #:imported-modules argument of 'patch-and-repack'.
    * gnu/packages/engineering.scm (fastcap)[source]: Add 'imported-modules'
 gnu/packages/engineering.scm |    1 +
 guix/packages.scm            |    5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 02b1c4e..7b21c11 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -232,6 +232,7 @@ optimizer; and it can produce photorealistic and design 
review images.")
               (modules '((guix build utils)
                          (guix build download)
                          (guix ftp-client)))
+              (imported-modules modules)
               (patches (search-patches "fastcap-mulSetup.patch"
     (build-system gnu-build-system)
diff --git a/guix/packages.scm b/guix/packages.scm
index 05a632c..acb8f34 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -544,7 +544,8 @@ IMPORTED-MODULES specify modules to use/import for use by 
     (let ((name    (tarxz-name original-file-name))
-          (modules (delete-duplicates (cons '(guix build utils) modules))))
+          (modules (delete-duplicates (cons '(guix build utils)
+                                            imported-modules))))
       (gexp->derivation name build
                         #:graft? #f
                         #:system system
@@ -1152,7 +1153,7 @@ cross-compilation target triplet."
                          #:flags flags
                          #:system system
                          #:modules modules
-                         #:imported-modules modules
+                         #:imported-modules imported-modules
                          #:guile-for-build guile)))))
 (define-gexp-compiler (origin-compiler (origin origin?) system target)

reply via email to

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