[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to accomodate test files that move after installation?



Hi Everyone,

I have one last question related to packaging and installation. (I
hope it is the last question).

Crypto++ has test files. When they are run from $PWD, them they work
fine. After installation into, say, /usr/share/, they break because
the location is an implicit dependency. So the two requirements are
self test must always run from: (1) the build directory, and (2) the
installation directory.

We have a patch that resolves the issue at
https://cryptopp.com/wiki/DataDir. Effectively, the patch looks in
PWD, then in a directory specified when building the library. The make
variable of interest is 'datarootdir', which we write as
`$(prefix)/share`.

Is this the correct approach to resolve the problem? If not, then what
does a distribution need?

Thanks in advance.
Jeff


Reply to: