[Slackbuilds-users] Setting LD_LIBRARY_PATH for zulu-openjdk11

Erich Ritz erich.public at protonmail.com
Fri Mar 4 17:32:24 UTC 2022


Hi Sébastien,

Would you consider adding the patches attached (and also at https://gitlab.com/ErichRitz/slackbuilds/-/commits/zulu-openjdk11) for zulu-openjdk11?

Currently this is the only thing I have setting LD_LIBRARY_PATH, and it prepends a ":", which in effect also adds "." to my LD_LIBRARY_PATH, which I don't want.  This patch first checks if LD_LIBRARY_PATH is empty before setting it to account for this.

The second patch is fancier and only adds ${JAVA_HOME}/lib/server to LD_LIBRARY_PATH if it doesn't already exist.  With my setup contents of /etc/profile.d end up getting sourced more than once.  If you don't want to take this patch that's fine.

The same argument goes for MANPATH as well (patches 3 and 4).

Erich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-development-zulu-openjdk11-Do-not-prepend-to-LD_LIBR.patch
Type: text/x-patch
Size: 1886 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220304/5b8750cc/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-development-zulu-openjdk11-Only-add-path-to-LD_LIBRA.patch
Type: text/x-patch
Size: 1174 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220304/5b8750cc/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-development-zulu-openjdk11-Only-add-patch-to-MANPATH.patch
Type: text/x-patch
Size: 1009 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220304/5b8750cc/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-development-zulu-openjdk11-Do-not-prepend-to-MANPATH.patch
Type: text/x-patch
Size: 1805 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20220304/5b8750cc/attachment-0007.bin>


More information about the SlackBuilds-users mailing list