FreeBSD 11.1 i386
I have compiled and installed openssl from ports, so there are:
a) /usr/bin/openssl (OpenSSL 1.0.2k-freebsd 26 Jan 2017) with /lib/libcrypto.so.8, /usr/lib/libssl.so.8
and
b) /usr/local/bin/openssl (OpenSSL 1.0.2n 7 Dec 2017) with /usr/local/lib/libcrypto.so.9, /usr/local/lib/libssl.so.9
And I want to compile base system with new version of openssl (for use in another project)
As GELI is one of files in base currently requiring libcrypto, I try to make /usr/src/sbin/geom with options:
/etc/make.conf:
DEFAULT_VERSIONS+=ssl=openssl # yes, it's for ports, not base
WITH_OPENSSL_PORT=YES
OPENSSL_PORT=security/openssl
### WITHOUT_OPENSSL= # in this case, geli doesn't compile at all
but with no success.
Naturally, I can manually replace libcrypto.so.8 with libcrypto.so.9:
ln -sf /usr/local/bin/openssl /usr/bin/openssl
ln -sf /usr/local/lib/libcrypto.so.9 /lib
ln -sf /lib/libcrypto.so.9 /usr/lib/libcrypto.so
<and libssl, include files, ...>
But is there any legal opportunity to compile geli (base) with openssl (or libressl) from ports?
I have compiled and installed openssl from ports, so there are:
a) /usr/bin/openssl (OpenSSL 1.0.2k-freebsd 26 Jan 2017) with /lib/libcrypto.so.8, /usr/lib/libssl.so.8
and
b) /usr/local/bin/openssl (OpenSSL 1.0.2n 7 Dec 2017) with /usr/local/lib/libcrypto.so.9, /usr/local/lib/libssl.so.9
And I want to compile base system with new version of openssl (for use in another project)
As GELI is one of files in base currently requiring libcrypto, I try to make /usr/src/sbin/geom with options:
/etc/make.conf:
DEFAULT_VERSIONS+=ssl=openssl # yes, it's for ports, not base
WITH_OPENSSL_PORT=YES
OPENSSL_PORT=security/openssl
### WITHOUT_OPENSSL= # in this case, geli doesn't compile at all
but with no success.
Code:
ldd /usr/src/sbin/geom/class/eli/geom_eli.so:
libcrypto.so.8 => /lib/libcrypto.so.8 (0x2861b000)
ln -sf /usr/local/bin/openssl /usr/bin/openssl
ln -sf /usr/local/lib/libcrypto.so.9 /lib
ln -sf /lib/libcrypto.so.9 /usr/lib/libcrypto.so
<and libssl, include files, ...>
But is there any legal opportunity to compile geli (base) with openssl (or libressl) from ports?