]> git.pld-linux.org Git - packages/ghc.git/blame - ghc-pkgdir.patch
- bring back sanity to package paths
[packages/ghc.git] / ghc-pkgdir.patch
CommitLineData
cdeecd2c
JR
1--- ghc-8.10.1/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs.orig 2019-12-30 03:32:20.000000000 +0100
2+++ ghc-8.10.1/libraries/Cabal/Cabal/Distribution/Simple/InstallDirs.hs 2020-05-23 10:10:45.902028639 +0200
3@@ -161,7 +161,7 @@
88469da7
JR
4 -- users to be able to configure @--libdir=\/usr\/lib64@ for example but
5 -- because by default we want to support installing multiple versions of
6 -- packages and building the same package for multiple compilers we append the
5800ef0c
JR
7--- libsubdir to get: @\/usr\/lib64\/$libname\/$compiler@.
8+-- libsubdir to get: @\/usr\/lib64\/$compiler\/$libname@.
88469da7
JR
9 --
10 -- An additional complication is the need to support relocatable packages on
11 -- systems which support such things, like Windows.
5800ef0c
JR
12@@ -204,11 +204,11 @@
13 libdir = installLibDir,
14 libsubdir = case comp of
8f69bcf4 15 UHC -> "$pkgid"
5800ef0c 16- _other -> "$abi" </> "$libname",
88469da7 17+ _other -> "$compiler" </> "$pkgid",
5800ef0c
JR
18 dynlibdir = "$libdir" </> case comp of
19 UHC -> "$pkgid"
cdeecd2c 20- _other -> "$abi",
5800ef0c 21- libexecsubdir= "$abi" </> "$pkgid",
cdeecd2c 22+ _other -> "$compiler" </> "$pkgid",
5800ef0c
JR
23+ libexecsubdir= "$pkgid",
24 flibdir = "$libdir",
88469da7 25 libexecdir = case buildOS of
5800ef0c 26 Windows -> "$prefix" </> "$libname"
cdeecd2c 27@@ -217,8 +217,8 @@
5800ef0c
JR
28 datadir = case buildOS of
29 Windows -> "$prefix"
30 _other -> "$prefix" </> "share",
31- datasubdir = "$abi" </> "$pkgid",
cdeecd2c 32- docdir = "$datadir" </> "doc" </> "$abi" </> "$pkgid",
5800ef0c 33+ datasubdir = "$pkgid",
cdeecd2c 34+ docdir = "$datadir" </> "doc" </> "$pkgid",
5800ef0c
JR
35 mandir = "$datadir" </> "man",
36 htmldir = "$docdir" </> "html",
cdeecd2c 37 haddockdir = "$htmldir",
This page took 0.092532 seconds and 4 git commands to generate.