| Summary: | support Berkeley DB 4.1 in ports/lang/php4 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Sunpoet Po-Chuan Hsieh <sunpoet> | ||||
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-ports-bugs->ale Over to maintainer State Changed From-To: open->closed Committed, thanks! |
1. Makefile In ports/lang/php4, original makefile depends on Berkeley DB 4.0 only. ( LIB_DEPENDS += db4.0:${PORTSDIR}/databases/db4 ) If Berkeley DB 4.1 is installed, it will be ignored. 2. configure Even though the configure in php4 will try to detect the directory of db4 or db41, it does not work correctly with ports/databases/db41. For Berkeley DB 4.1 users, they can't make build php4 depends on libdb41.a. (ports/databases/db41: ${LOCALBASE}/lib/libdb41.a) Fix: Add WITH_DB4_VER=41 for Berkeley DB 4.1 users and patch configure in lang/php4. % cd /usr/ports/lang/php4; diff -u Makefile.orig Makefile % cd /usr/ports/lang/php4/work/php-4.3.4; diff -u configure.orig configure Note that the configure.orig here is the patched configure file with ports/lang/php4/files/patch-configure. -- Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>--NB49snXTIqwtvMCrNc1eKcFFVWCOZ1yyXO58YXHHIu6DH6vs Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" --- Makefile.orig Tue Dec 23 03:02:16 2003 +++ Makefile Wed Dec 24 20:26:06 2003 @@ -246,7 +246,11 @@ .endif .if defined(WITH_DB4) +.if defined(WITH_DB4_VER) && ${WITH_DB4_VER} == "41" +LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41 +.else LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4 +.endif CONFIGURE_ARGS+=--with-db4=${LOCALBASE} .endif How-To-Repeat: cd /usr/ports/lang/php4; make -DWITH_DB4 all