[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: setting env vars for binary wrappers
From: |
Bob Friesenhahn |
Subject: |
Re: Feature request: setting env vars for binary wrappers |
Date: |
Thu, 17 Apr 2008 16:40:47 -0500 (CDT) |
On Thu, 17 Apr 2008, Behdad Esfahbod wrote:
If running uninstalled build is not a goal, why bother about
LD_LIBRARY_PATH'ing the uninstalled library path at all?
I feel your pain. As a workaround, for my own software I add a small
script which exports environment variables prior to running each test.
This is an extra shim layer that should not have to exist. The script
(attached) has substitutions applied to it prior to use. In the
future, I might include similar replicated code in each test script so
that the tests are completely stand-alone and run a bit faster.
An unfortunate thing is that not all software is configured the same.
For example, my own software supports independent configuration for
the location of different types of files. A single top "prefix"
environment variable would not directly work with my application while
it might work for others. A single top prefix would require that the
application know the structure of the build tree, which is likely a
bad thing since it may not match the install tree.
It seems to me that the proper place to fix this is at the Automake
level since Automake's weak support for tests is the true cause of the
problem.
Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
rungm.sh.in
Description: Text document
- Re: Feature request: setting env vars for binary wrappers, Behdad Esfahbod, 2008/04/17
- Re: Feature request: setting env vars for binary wrappers, Ralf Wildenhues, 2008/04/17
- Re: Feature request: setting env vars for binary wrappers, Roumen Petrov, 2008/04/17
- Re: Feature request: setting env vars for binary wrappers, Behdad Esfahbod, 2008/04/17
- Re: Feature request: setting env vars for binary wrappers, Roumen Petrov, 2008/04/17
- Re: Feature request: setting env vars for binary wrappers, Behdad Esfahbod, 2008/04/17
- Re: Feature request: setting env vars for binary wrappers, Roumen Petrov, 2008/04/18