Date: 5 Mar 2003 07:15:07 -0000 From: Oliver Lehmann <lehmann@ans-netz.de> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Oliver Lehmann <lehmann@ans-netz.de>, dirk@FreeBSD.org Subject: ports/48942: update-port: www/mod_php4 Message-ID: <20030305071507.68716.qmail@dill.salatschuessel.net>
next in thread | raw e-mail | index | archive | help
>Number: 48942 >Category: ports >Synopsis: update-port: www/mod_php4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Mar 04 23:20:09 PST 2003 >Closed-Date: >Last-Modified: >Originator: Oliver Lehmann >Release: FreeBSD 4.8-PRERELEASE alpha >Organization: >Environment: System: FreeBSD dill.salatschuessel.net 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #0: Sat Mar 1 22:53:57 CET 2003 olivleh1@dill.salatschuessel.net:/usr/obj/alpha/usr/src/sys/DILL alpha >Description: Don't compile php with OpenSSL support if SNMP is installed w/o OpenSSL support. patch tested with: net-snmp4 with Base OpenSSL 0.9.6i, 500043 i386 net-snmp4 with Base OpenSSL 0.9.7a, 470103, alpha net-snmp4 without OpenSSL, 470103, alpha >How-To-Repeat: >Fix: --- mod_php4.patch begins here --- diff -ruN mod_php4.old/scripts/configure.php mod_php4/scripts/configure.php --- mod_php4.old/scripts/configure.php Wed Mar 5 05:28:38 2003 +++ mod_php4/scripts/configure.php Wed Mar 5 07:23:18 2003 @@ -256,10 +256,18 @@ echo "CONFIGURE_ARGS+=--with-openssl=\${OPENSSLBASE}" ;; \"SNMP\") - echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp4" - echo "CONFIGURE_ARGS+=--with-snmp=\${LOCALBASE} --enable-ucd-snmp-hack --with-openssl=\${OPENSSLBASE}" - echo "USE_OPENSSL= yes" - LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl" + echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp4" + echo "CONFIGURE_ARGS+=--with-snmp=\${LOCALBASE} --enable-ucd-snmp-hack" + + # if .4 is compiled with OpenSSL, PHP depends on OpenSSL too. + # if .5 and not .4 installed, we are in need to install .4 (which compiles default with SSL) + # if .4 and .5 is present in the system, we can't be shure that sbin/snmp is from net-snmp4 + if ([ -r ${LOCALBASE}/lib/libsnmp.so.4 ] && /usr/bin/ldd ${LOCALBASE}/sbin/snmpd 2> /dev/null | /usr/bin/grep -q "libcrypto") || [ -r ${LOCALBASE}/lib/libnetsnmp.so ]; then + + echo "CONFIGURE_ARGS+= --with-openssl=\${OPENSSLBASE}" + echo "USE_OPENSSL= yes" + LIBS="${LIBS} -L\${OPENSSLBASE}/lib -lcrypto -lssl" + fi ;; \"XML\") if [ -z "$XML" ]; then --- mod_php4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030305071507.68716.qmail>