[packages/ghc] - updated pkgdir patch

baggins baggins at pld-linux.org
Sat May 23 00:38:15 CEST 2020


commit 5800ef0cc404770c2c3f473b8088d1999e3d62ab
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat May 23 00:38:00 2020 +0200

    - updated pkgdir patch

 ghc-pkgdir.patch | 30 ++++++++++++++++++++++--------
 ghc.spec         |  2 +-
 2 files changed, 23 insertions(+), 9 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index f54c837..c5941d7 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -293,7 +293,7 @@ cd ..
 %endif
 
 %patch0 -p1
-#%patch1 -p1
+%patch1 -p1
 #%patch2 -p1
 %patch3 -p1
 %patch4 -p1
diff --git a/ghc-pkgdir.patch b/ghc-pkgdir.patch
index ed415e7..eb836a9 100644
--- a/ghc-pkgdir.patch
+++ b/ghc-pkgdir.patch
@@ -4,17 +4,31 @@
  -- users to be able to configure @--libdir=\/usr\/lib64@ for example but
  -- because by default we want to support installing multiple versions of
  -- packages and building the same package for multiple compilers we append the
---- libsubdir to get: @\/usr\/lib64\/$pkgid\/$compiler at .
-+-- libsubdir to get: @\/usr\/lib64\/$compiler\/$pkgid at .
+--- libsubdir to get: @\/usr\/lib64\/$libname\/$compiler at .
++-- libsubdir to get: @\/usr\/lib64\/$compiler\/$libname at .
  --
  -- An additional complication is the need to support relocatable packages on
  -- systems which support such things, like Windows.
-@@ -236,7 +236,7 @@
-            JHC    -> "$compiler"
-            LHC    -> "$compiler"
+@@ -204,11 +204,11 @@
+       libdir       = installLibDir,
+       libsubdir    = case comp of
             UHC    -> "$pkgid"
--           _other -> "$pkgid" </> "$compiler",
+-           _other -> "$abi" </> "$libname",
 +           _other -> "$compiler" </> "$pkgid",
-       dynlibdir    = "$libdir",
+       dynlibdir    = "$libdir" </> case comp of
+            UHC    -> "$pkgid"
+            _other -> "$abi",
+-      libexecsubdir= "$abi" </> "$pkgid",
++      libexecsubdir= "$pkgid",
+       flibdir      = "$libdir",
        libexecdir   = case buildOS of
-         Windows   -> "$prefix" </> "$pkgid"
+         Windows   -> "$prefix" </> "$libname"
+@@ -217,7 +217,7 @@
+       datadir      = case buildOS of
+         Windows   -> "$prefix"
+         _other    -> "$prefix" </> "share",
+-      datasubdir   = "$abi" </> "$pkgid",
++      datasubdir   = "$pkgid",
+       docdir       = "$datadir" </> "doc" </> "$abi" </> "$pkgid",
+       mandir       = "$datadir" </> "man",
+       htmldir      = "$docdir"  </> "html",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc.git/commitdiff/5800ef0cc404770c2c3f473b8088d1999e3d62ab



More information about the pld-cvs-commit mailing list