Bug 128467

Summary: [patch] databases/php4-dba: change Berkeley DB detection to USE_BDB.
Product: Ports & Packages Reporter: Scot Hetzel <swhetzel>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Scot Hetzel 2008-10-29 23:20:00 UTC
Currently, the lang/php4/Makefile.ext file is not able to detect the installed version of Berkeley DB.  Instead it depends on the user to set WITH_DB4_VER to the current version installed or letting the databases/php4-dba install databases/db44.

Fix: The attached patch changes lang/php4/Makefile.ext to use USE_BDB for detection of the installed Berkeley DB version, as well as patching ${WRKSRC}/config.m4 with the correct values obtained from BDB_LIB_NAME and BDB_INCLUDE_DIR.

Changed files:

lang/php4/Makefile.ext
databases/php4-dba/files/patch-config.m4

Patch attached with submission follows:
How-To-Repeat: install any of the db4* ports except db44, and then build databases/php4-dba, selecting DB4 from the options menu, and without setting WITH_DB4_VER.

The port will install databases/db44, even though there is an existing version of Berkley DB installed.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-10-29 23:20:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2011-03-18 04:33:35 UTC
State Changed
From-To: open->closed

php4 is EOL and should be removed soon