Script /usr/local/etc/rc.d/apache22 installed by www/apache22 port doesn't
source /usr/local/sbin/envvars for commands 'graceful' and 'gracefulstop'.
For apache built against OpenSSL from ports (WITH_OPENSSL_PORT=yes) _and_
when OpenSSL in base system is too old (like 0.9.8e in 6.2-RELEASE), this
causes fatal error during these commands execution, e.g.:
httpd: Syntax error on line 86 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ssl.so into server: /usr/local/libexec/apache22/mod_ssl.so: Undefined symbol "SSL_get_servername"
The apparent cause of the problem is that /usr/local/sbin/envvars defines
LD_LIBRARY_PATH to contain /usr/local/lib in front of it, so mod_ssl.so
uses correct libraries (for OpenSSL build from ports). Without this step,
mod_ssl.so uses incorrect libraries (from the base system).
Fix: The accompanying patch sources /usr/local/sbin/envvars in the
apache22_requirepidfile function, which is common for graceful and
Patch attached with submission follows:
How-To-Repeat: Build www/apache22 in 6.2-RELEASE with WITH_OPENSSL_PORT=yes, start it,
then issue /usr/local/etc/rc.d/apache22 graceful or gracefulstop.
Fix synopsis and assign.
I'll take it.
Committed, with minor changes. Thanks!
pgollucci 2009-12-11 23:43:26 UTC
FreeBSD ports repository
- envvars needs to be sourced before _all_ commands if it exists
PR: ports/138466 (based on)
Submitted by: Dmitry Pryanishnikov <email@example.com>
Revision Changes Path
1.248 +1 -1 ports/www/apache22/Makefile
1.6 +3 -1 ports/www/apache22/files/apache22.in
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "email@example.com"