[commit: ghc] master: Handle base et al. specially in foreachLibrary.mk (33e585d)

git at git.haskell.org git at git.haskell.org
Tue Apr 22 10:04:32 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/33e585d6eacae19e83862a05b650373b536095fa/ghc

>---------------------------------------------------------------

commit 33e585d6eacae19e83862a05b650373b536095fa
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Apr 22 12:01:00 2014 +0200

    Handle base et al. specially in foreachLibrary.mk
    
    This adapts the foreachLibrary rule to match the new situation of
    base.git, ghc-prim.git, integer-gmp.git, integer-simple.git, and
    template-haskell.git being folded into ghc.git (re #9016), and thus
    not being mentioned anymore in the `packages` file.
    
    One visible effect of this oversight was that the `clean_libraries`
    make target would fail to clean those packages.
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


>---------------------------------------------------------------

33e585d6eacae19e83862a05b650373b536095fa
 rules/foreachLibrary.mk |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/rules/foreachLibrary.mk b/rules/foreachLibrary.mk
index b2353a0..cdd5496 100644
--- a/rules/foreachLibrary.mk
+++ b/rules/foreachLibrary.mk
@@ -23,13 +23,26 @@
 # We use an FEL_ prefix for the variable names, to avoid trampling on
 # other variables, as make has no concept of local variables.
 
-# We need to handle bin-package-db specially, as it doesn't have an
-# entry in the packages file, as it isn't in its own repository.
+# We need to handle the following packages specially, as those don't
+# have an entry in the packages file, since they don't live in
+# repositories of their own:
+#
+#  - base
+#  - bin-package-db
+#  - ghc-prim
+#  - integer-gmp
+#  - integer-simple
+#  - template-haskell
 
 define foreachLibrary
 # $1 = function to call for each library
 # We will give it the package path and the tag as arguments
 $$(foreach hashline,libraries/bin-package-db#-#no-remote-repo#no-vcs        \
+                    libraries/base#-#no-remote-repo#no-vcs                  \
+                    libraries/ghc-prim#-#no-remote-repo#no-vcs              \
+                    libraries/integer-gmp#-#no-remote-repo#no-vcs           \
+                    libraries/integer-simple#-#no-remote-repo#no-vcs        \
+                    libraries/template-haskell#-#no-remote-repo#no-vcs      \
                     $$(shell grep '^libraries/' packages | sed 's/  */#/g'),\
     $$(eval FEL_line    := $$(subst #,$$(space),$$(hashline)))              \
     $$(eval FEL_libdir  := $$(word 1,$$(FEL_line)))                         \



More information about the ghc-commits mailing list