From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 24 22:30:02 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE1F616A417 for ; Fri, 24 Aug 2007 22:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6851413C465 for ; Fri, 24 Aug 2007 22:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7OMU2hL009348 for ; Fri, 24 Aug 2007 22:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7OMU2LQ009347; Fri, 24 Aug 2007 22:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 24 Aug 2007 22:30:02 GMT Resent-Message-Id: <200708242230.l7OMU2LQ009347@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Maxim Khitrov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1F4B16A41B for ; Fri, 24 Aug 2007 22:26:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C285F13C4B4 for ; Fri, 24 Aug 2007 22:26:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l7OMQKX8004663 for ; Fri, 24 Aug 2007 22:26:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l7OMQKDl004634; Fri, 24 Aug 2007 22:26:20 GMT (envelope-from nobody) Message-Id: <200708242226.l7OMQKDl004634@www.freebsd.org> Date: Fri, 24 Aug 2007 22:26:20 GMT From: Maxim Khitrov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/115800: [patch] databases/php5-pdo_sqlite - knob to use shared sqlite3 library from ports X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 22:30:02 -0000 >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: