-
Notifications
You must be signed in to change notification settings - Fork 711
Cabal disagrees on the datadir
in the Path_
module, and where it ends up installing data files.
#5862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could this be the patch I'm looking for? diff --git a/Cabal/Distribution/Simple/Build/PathsModule.hs b/Cabal/Distribution/Simple/Build/PathsModule.hs
index f6a203874..2aa406f74 100644
--- a/Cabal/Distribution/Simple/Build/PathsModule.hs
+++ b/Cabal/Distribution/Simple/Build/PathsModule.hs
@@ -192,10 +192,14 @@ generate pkg_descr lbi clbi =
bindir = flat_bindir,
libdir = flat_libdir,
dynlibdir = flat_dynlibdir,
- datadir = flat_datadir,
libexecdir = flat_libexecdir,
sysconfdir = flat_sysconfdir
} = absoluteComponentInstallDirs pkg_descr lbi cid NoCopyDest
+
+ InstallDirs {
+ datadir = flat_datadir
+ } = absoluteInstallDirs pkg_descr lbi NoCopyDest
+
InstallDirs {
bindir = flat_bindirrel,
libdir = flat_libdirrel, |
There is a note in
|
4 tasks
Is this fixed by #6055? |
This was referenced Jul 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue seems to be the handling of components. If we explicitly ask for the component, we end up with a fully qualified
$pkgid
, if we don't we get the plain pkg name. This can be illustrated on thealex
packaged quite neatly:vs.
Now this wouldn't be an issue, if
runghc Setup.hs install
installed the data files into/usr/local/share/x86_64-osx-ghc-8.6.3/alex-3.2.4-BnUEMKTG1CcF5xN1sTDkoW-alex
for the component configured case, but instead it will install them in/usr/local/share/x86_64-osx-ghc-8.6.3/alex-3.2.4
, which then gives rise to amazing errors at runtime :(This seems mildly related to #5543, but I'm not sure it's the identical situation.
The text was updated successfully, but these errors were encountered: