tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: openssl choice for www/apache24
> Am 20.05.2023 um 11:33 schrieb Havard Eidnes:
>> So... What is the proper way to influence a source build of
>> apache24 to use the pkgsrc openssl as opposed to the in-tree
>> openssl?
>
> In mk.conf:
>
> PREFER_PKGSRC.openssl= yes
Thanks for the suggestion, it seems more "pkgsrc-ish".
Unfortunately, it doesn't actually seem to want to work:
# ldd work/httpd-2.4.56/modules/ssl/.libs/mod_ssl.so
work/httpd-2.4.56/modules/ssl/.libs/mod_ssl.so:
-lssl.14 => /usr/lib/libssl.so.14
-lcrypto.14 => /usr/lib/libcrypto.so.14
-lcrypt.1 => /usr/lib/libcrypt.so.1
-lc.12 => /usr/lib/libc.so.12
-lrt.1 => /usr/lib/librt.so.1
-lpthread.1 => /usr/lib/libpthread.so.1
#
That's after rebuilding with
# grep PREFER /etc/mk.conf
PREFER_PKGSRC.openssl= yes
#
whereas, with
USE_BUILTIN.openssl=no
(ok, put it in /etc/mk.conf) and rebuilding apache24, I get:
: {33} ldd ./work/httpd-2.4.56/modules/ssl/.libs/mod_ssl.so
./work/httpd-2.4.56/modules/ssl/.libs/mod_ssl.so:
-lssl.1.1 => /usr/pkg/lib/libssl.so.1.1
-lcrypto.1.1 => /usr/pkg/lib/libcrypto.so.1.1
-lpthread.1 => /usr/lib/libpthread.so.1
-lc.12 => /usr/lib/libc.so.12
-lrt.1 => /usr/lib/librt.so.1
-lcrypt.1 => /usr/lib/libcrypt.so.1
: {34}
> The pkgsrc guide documents this in the "developer part", which
> is wrong. It should rather be in the "user part", in the
> section about configuring pkgsrc.
>
> https://www.netbsd.org/docs/pkgsrc/pkgsrc.html#native-or-pkgsrc-preference
I'll just note that that section only talks about
PREFER_PKGSRC = yes
i.e. not the suggested packagename-suffixed variable name, so
reading that it's not immediately obvious that the packagename-
suffixed variable name is intended to make any difference, and to
me it seems it doesn't (ref. above).
I don't know if it matters, but apache24's Makefile includes
openssl's buildlink3.mk, but the latter doesn't include openssl's
builtin.mk file. I'll admit that I'm not sure how this is
supposed to work...
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index