X-Git-Url: https://git.tld-linux.org/?p=packages%2Fghc.git;a=blobdiff_plain;f=ghc-pkgdir.patch;fp=ghc-pkgdir.patch;h=6c9147845e9b0ffe4115ec1e98a33c35fc9046c1;hp=ed415e78ae1035f9beb51fd54958d0ba54821268;hb=9429bba41e65f6da4bac83ad70c061ef939f57e4;hpb=e16e56b007134db40e0590ba2306285cce8cb3cf diff --git a/ghc-pkgdir.patch b/ghc-pkgdir.patch index ed415e7..6c91478 100644 --- a/ghc-pkgdir.patch +++ b/ghc-pkgdir.patch @@ -1,20 +1,37 @@ ---- ghc-6.12.3/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs~ 2010-06-09 20:10:19.000000000 +0200 -+++ ghc-6.12.3/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs 2010-08-26 21:28:52.969002660 +0200 -@@ -205,7 +205,7 @@ +--- ghc-8.10.1/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs.orig 2019-12-30 03:32:20.000000000 +0100 ++++ ghc-8.10.1/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs 2020-05-23 10:10:45.902028639 +0200 +@@ -161,7 +161,7 @@ -- 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@. -+-- libsubdir to get: @\/usr\/lib64\/$compiler\/$pkgid@. +--- libsubdir to get: @\/usr\/lib64\/$libname\/$compiler@. ++-- libsubdir to get: @\/usr\/lib64\/$compiler\/$libname@. -- -- 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", ++ _other -> "$compiler" "$pkgid", ++ libexecsubdir= "$pkgid", + flibdir = "$libdir", libexecdir = case buildOS of - Windows -> "$prefix" "$pkgid" + Windows -> "$prefix" "$libname" +@@ -217,8 +217,8 @@ + datadir = case buildOS of + Windows -> "$prefix" + _other -> "$prefix" "share", +- datasubdir = "$abi" "$pkgid", +- docdir = "$datadir" "doc" "$abi" "$pkgid", ++ datasubdir = "$pkgid", ++ docdir = "$datadir" "doc" "$pkgid", + mandir = "$datadir" "man", + htmldir = "$docdir" "html", + haddockdir = "$htmldir",