Are ENGINESDIR and MODULESDIR incorrect in openssl@3 ? #4626
Replies: 2 comments 1 reply
-
As you can see one does symlink to the other. The only problem would be that anything in that directory is not persistent between updates but I don't know if it should be either. |
Beta Was this translation helpful? Give feedback.
-
In Homebrew, we only started linking OpenSSL recently, so The tricky thing is that Homebrew uses a symlink directory structure which is sometimes not supported by build scripts (i.e. separate directories for installing files and for reading/loading files from). For OpenSSL, this would require modifying generated Makefile:
One option would be to modify Makefile, maybe like: inreplace "Makefile" do |s|
enginesdir = s.get_make_var("ENGINESDIR").sub("$(libdir)", "#{HOMEBREW_PREFIX}/lib")
modulesdir = s.get_make_var("MODULESDIR").sub("$(libdir)", "#{HOMEBREW_PREFIX}/lib")
s.gsub! '-DENGINESDIR="\"$(ENGINESDIR)', "-DENGINESDIR=\"\\\"#{enginesdir}"
s.gsub! '-DMODULESDIR="\"$(MODULESDIR)', "-DMODULESDIR=\"\\\"#{modulesdir}"
s.gsub!(/(echo '(?:enginesdir|modulesdir)=)\$\$\{libdir\}/, "\\1#{HOMEBREW_PREFIX}/lib")
end I guess another option would be to run build step with different paths ( system "make", "ENGINESDIR=#{HOMEBREW_PREFIX}/lib/engines-#{version.major}",
"MODULESDIR=#{HOMEBREW_PREFIX}/lib/ossl-modules"
system "make", "install", "MANDIR=#{man}", "MANSUFFIX=ssl"
inreplace lib/"pkgconfig/libcrypto.pc", /^((?:enginesdir|modulesdir)=)\$\{libdir\}/, "\\1#{HOMEBREW_PREFIX}/lib"
system "make", "test" |
Beta Was this translation helpful? Give feedback.
-
Output of
brew config
Output of
brew doctor
Description of issue
hello all,
looking at the output below, shouldn't the
ENGINESDIR
point to some other directory like/opt/homebrew/lib/engines-3/
?to this one
instead of that one
probably the same issue is valid for
MODULESDIR
too,/opt/homebrew/lib/ossl-modules
vs/opt/homebrew/Cellar/openssl@3/3.1.1_1/lib/ossl-modules
I guess both could be fixed by providing
--enginesdir
and--modulesdir
at compilation-timehowever in the same time
Beta Was this translation helpful? Give feedback.
All reactions