Skip to content

Conversation

donald
Copy link
Contributor

@donald donald commented Dec 10, 2018

Sometimes old shared libraries are removed or updated from the system and
packages, which depend on it, might stop working. To easily recover from
that situation, we define, that the directory $PREFIX/.compatlibs should
be usable as a repository for required shared libraries which are no
more provided by the base system.

This directory is explicitly excluded from the requirement, that
everything inside the package should be build by the built script and be
read-only afterwards.

This directory can be created and populated in a package prefix
directory as required. The profiles should be prepared to look for such
a directory and add it to LD_LIBRARY_PATH if it exists.

Add this functionality to TEMPLATE.sh.

Sometime old shared libraries are removed or updated from the system and
packages, which depend on it, might stop working. To easily recover from
that situation, we define, that the directory $PREFIX/.compatlibs should
be usable as a repository for required shared libraries which are no
more provided by the base system.

This directory is explicitly excluded from the requirement, that
everything inside the package should be build by the build script and be
read-only afterwards.

This directory can be created and populated in a package prefix
directory as required. The profiles should be prepared to look for such
a directory and add it to LD_LIBRARY_PATH if it exists.

Add this functionality to TEMPLATE.sh
@@ -21,6 +21,7 @@ exec </dev/null
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use three lines two make it shorter?

@pmenzel pmenzel merged commit 6abedcc into master Dec 10, 2018
wwwutz added a commit that referenced this pull request Jun 29, 2022
- added GitPython
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants