Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make install.sh usable for distributions #66

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

agx
Copy link
Contributor

@agx agx commented Nov 28, 2024

We do 3 things:

  • Distributions that want to support multiarch need to be able to override the libdir, allow for that by introducing a LIBDIR variable.
  • Avoid sed -i because when it fails we still get a install.sh or .pc with borken content. The next make run will detect the newer time stamp and not update the file. Fix that by using a temp files and moving them into place atomically
  • Use relative symlinks for the libraries so they can be moved around easily

The first path is in use by Debian since 1.9.0 and the 2nd one is used for the 1.9.1 packaging (currently blocked by #65 )

agx added 2 commits November 28, 2024 15:41
Needed for multiarch installations
This is how other libraries do it and allows to move files around
without having to adjust the symlinks.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
@subins2000 subins2000 merged commit b0183b1 into varnamproject:master Dec 14, 2024
1 check failed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants