-
Notifications
You must be signed in to change notification settings - Fork 0
julia: remove leftover RPATH from pcre shared libraries #92
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nb: A good example for using the postinstall feature. |
@@ -66,6 +66,11 @@ mee_install() { | |||
} | |||
# by default this may be 'make install DESTDIR="${D}"' | |||
|
|||
mee_install_post() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the URL of the GitHub Julia issue here as a comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did so.
The alternative would be to package libpcre2 ourselves, and tell Julia to take the system one. Currently, Mariux does not ship that library.
|
https://github.com/JuliaLang/julia/issues/18106 Without this change the julia build system installed the two pcre shared libraries /usr/lib/julia/libpcre2-8.so.0.2.0 and /usr/lib/julia/libpcre2-posix.so.0.0.0 with an RPATH to a build directory (eg. /dev/shm/bee-root/julia/julia-0.4.6-0/source/usr/lib) which is a security problem if the build directory is in a public writable temp space as is the case here. The patch --- a/deps/Makefile +++ b/deps/Makefile @@ -788,9 +788,6 @@ PCRE_OBJ_TARGET = $(build_shlibdir)/libpcre2-8.$(SHLIB_EXT) # Force optimization for PCRE flags (Issue #11668) PCRE_CFLAGS = -O3 -ifneq ($(OS),WINNT) -PCRE_LDFLAGS = "-Wl,-rpath,'$(build_libdir)'" -endif pcre2-$(PCRE_VER).tar.bz2: $(JLDOWNLOAD) $@ https://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-$(PCRE_VER).tar.bz2 -- fixed the problem only for one of the two libraries, as the RPATH of the other one is also set by the pcre build system.
I think we better leave it as self-contained as possible, so we don't end up with deviant behavior of the julia language, because of an unusual version of the pcre library. |
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Without this change the julia build system installed the
two pcre shared libraries /usr/lib/julia/libpcre2-8.so.0.2.0
and /usr/lib/julia/libpcre2-posix.so.0.0.0 with an RPATH
to a build directory (eg.
/dev/shm/bee-root/julia/julia-0.4.6-0/source/usr/lib) which is
a security problem if the build directory is in a public
writable temp space as is the case here.
The patch
fixed the problem only for one of the two libraries, as the RPATH of
the other one is also set by the pcre build system.