-
Notifications
You must be signed in to change notification settings - Fork 685
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
Document Paths_ related stuff #5997
Comments
|
btw, do we already have a ticket for the changes needed to the |
|
@hvr, I remember only relocatable store related stuff. |
|
I found only #5543, which is somewhat related. |
|
I'm using cabal new-build to prepare packages of Haskell applications for FreeBSD. That means that the directory where cabal installs to and the directory where executable ends up on user system differs. This is a problem for pandoc, because it tries to find its data files in cabal installation dir:
I tried passing |
|
@arrowd see #4097 (comment) for a relevant related discussion |
I don't see how it is relevant. I don't want relocatable executable, I just want functions from |
|
@arrowd Perhaps you can run |
|
Thanks for the hint, but I don't need workarounds. In fact, I already found one - pandoc's |
This workaround is also insufficient. For instance, when running |
… real executable into /bin/, that sets some environment variables to workaround haskell/cabal#5997 While there, update bunch of Haskell ports, install their data files. PR: 237878 Reviewed by: tcberner Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D20556 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@504093 35697150-7ecd-e111-bb59-0022644237b5
… real executable into /bin/, that sets some environment variables to workaround haskell/cabal#5997 While there, update bunch of Haskell ports, install their data files. PR: 237878 Reviewed by: tcberner Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D20556
… real executable into /bin/, that sets some environment variables to workaround haskell/cabal#5997 While there, update bunch of Haskell ports, install their data files. PR: 237878 Reviewed by: tcberner Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D20556 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@504093 35697150-7ecd-e111-bb59-0022644237b5
- when `datadir` is not available, try using the XDG data directory This way the game can be installed as an executable and data files unpacked to `~/.local/share/swarm/data`. Notice that the XDG data folder is `~/.local/share/swarm`; inside it is the unpacked `data`. The alternative approach is to use the environment variable `swarm_datadir` and set that to the unpacked data folder. That works (even after this change) but is not very beginner friendly. Ideally, we would like to set this in Cabal when building executable, for example to `/usr/share/swarm/<version>`. Reading through haskell/cabal#5997, it looks like that is not supported.
… real executable into /bin/, that sets some environment variables to workaround haskell/cabal#5997 While there, update bunch of Haskell ports, install their data files. PR: 237878 Reviewed by: tcberner Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D20556
The text was updated successfully, but these errors were encountered: