[ghc-rpm-macros] version ghc-pkg in %ghc_pkg_recache

Jens Petersen petersen at fedoraproject.org
Sun Mar 8 13:28:06 UTC 2015


commit d1251119aa404eae99c6b88237047c44dce90a1a
Author: Jens Petersen <petersen at fedoraproject.org>
Date:   Sun Mar 8 14:41:30 2015 +0900

    version ghc-pkg in %ghc_pkg_recache
    
    this will work for ghc784 where ghc_override is defined but not ghc784-PKG

 macros.ghc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/macros.ghc b/macros.ghc
index 88d0450..01eb1f3 100644
--- a/macros.ghc
+++ b/macros.ghc
@@ -168,7 +168,7 @@ done\
 %endif\
 %{nil}
 
-%ghc_pkg_recache %{_bindir}/ghc-pkg recache --no-user-package-db || :
+%ghc_pkg_recache %{_bindir}/ghc-pkg-%{ghc_version} recache --no-user-package-db || :
 
 # - without_hscolour, without_testsuite, and ghc_bootstrapping
 #   need to be set locally in the spec file


More information about the scm-commits mailing list