ports/115800: [patch] databases/php5-pdo_sqlite - knob to use shared sqlite3 library from ports

Maxim Khitrov mkhitrov at gmail.com
Fri Aug 24 22:30:02 UTC 2007


>Number:         115800
>Category:       ports
>Synopsis:       [patch] databases/php5-pdo_sqlite - knob to use shared sqlite3 library from ports
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 24 22:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Maxim Khitrov
>Release:        FreeBSD 6.2-RELEASE
>Organization:
>Environment:
>Description:
This patch adds a new knob when building databases/php5-pdo_sqlite called WITH_SQLITE_PORT. When set, instead of using the bundled version of the library, the extension will use shared one from databases/sqlite3. A suggestion was made to make this the default behavior, but I think that some people may prefer to use the bundled version. I have no preference one way or the other. Most should be fine with the default installation, since that was tested by PHP developers. I, however, want to use the more up to date version from ports, and this knob would allow me to do that.
>How-To-Repeat:
Install databases/php5-pdo_sqlite port. It will use the sqlite library that was distributed with the latest php5 version. You can't change CONFIGURE_ARGS manually because they get modified in lang/php5/Makefile.ext.
>Fix:
To apply the patch run `patch Makefile.ext Makefile.ext.patch` from lang/php5.

--- Makefile.ext.patch begins here ---
--- Makefile.ext.orig   Thu Aug 16 08:56:41 2007
+++ Makefile.ext        Thu Aug 16 09:00:20 2007
@@ -305,7 +305,12 @@
 .endif

 .if ${PHP_MODNAME} == "pdo_sqlite"
+.      if defined(WITH_SQLITE_PORT)
+USE_SQLITE=    yes
+CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE}
+.      else
 CONFIGURE_ARGS+=--with-pdo-sqlite
+.      endif

 USE_PHP=       pdo
 USE_PHP_BUILD= yes
--- Makefile.ext.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list