Skip to content

Always setup (DY)LD_LIBRARY_PATH for testsuite #2289

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

Merged
merged 1 commit into from
Dec 19, 2014

Conversation

christiaanb
Copy link
Collaborator

Now that Cabal is in charge of RPATH handling on certain OS',
we must always setup a correct (DY)LD_LIBRARY_PATH when
running the testsuite. Not just when we are building relocatable
packages.

The "problem" is, is that Cabal now adds an RPATH pointing
to the installation location of the library. However, during
testing, the library won't be there yet. We much hence setup
a (DY)LD_LIBRARY_PATH that includes the dist/build dir.

Now that Cabal is in charge of RPATH handling on certain OS',
we must always setup a correct (DY)LD_LIBRARY_PATH when
running the testsuite. Not just when we are building relocatable
packages.

The "problem" is, is that Cabal now adds an RPATH pointing
to the installation location of the library. However, during
testing, the library won't be there yet. We much hence setup
a (DY)LD_LIBRARY_PATH that includes the dist/build dir.
@tibbe tibbe merged commit 2158e3c into haskell:master Dec 19, 2014
thomie added a commit to thomie/cabal that referenced this pull request Jul 8, 2016
…executable-dynamic

Since commit 18fcd9c, Cabal builds the stub
executable and the test library for a LibV09 (detailed-0.9) test in
different directories.

This is good, but when running the test with --enable-executable-dynamic, we
now have to add the test build directory to (DY)LD_LIBRARY_PATH, so that the
linker can find the test library when running the stub executable (see haskell#2289
for details).

This fixes haskell#2039. The GHC panic mentioned in that ticket must have been
resolved earlier already.
thomie added a commit to thomie/cabal that referenced this pull request Jul 8, 2016
Since commit 18fcd9c, Cabal builds the stub
executable and the test library for a LibV09 (detailed-0.9) test in
different directories.

This is good, but when running the test with --enable-executable-dynamic, we
now have to add the test build directory to (DY)LD_LIBRARY_PATH, so that the
linker can find the test library when running the stub executable (see haskell#2289
for details).

This fixes haskell#2039 (read: no parse). The GHC panic mentioned in that
ticket must have been resolved earlier already, perhaps also by commit
18fcd9c.
thomie added a commit to thomie/cabal that referenced this pull request Jul 8, 2016
Since commit 18fcd9c, Cabal builds the stub
executable and the test library for a LibV09 (detailed-0.9) test in
different directories.

This is good, but when running the test with --enable-executable-dynamic, we
now have to add the test build directory to (DY)LD_LIBRARY_PATH, so that the
linker can find the test library when running the stub executable (see haskell#2289
for details).

This fixes haskell#2039 (read: no parse). The GHC panic mentioned in that
ticket must have been resolved earlier already, perhaps also by commit
18fcd9c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants