ports/143329: [PATCH] Add option to enable loadable extensions in databases/sqlite3
Greg Larkin
glarkin at FreeBSD.org
Thu Jan 28 22:50:11 UTC 2010
>Number: 143329
>Category: ports
>Synopsis: [PATCH] Add option to enable loadable extensions in databases/sqlite3
>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: Thu Jan 28 22:50:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Greg Larkin
>Release: 7.0-RELEASE
>Organization:
The FreeBSD Project
>Environment:
FreeBSD fbsd70.entropy.prv 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:
52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
SQLite3 includes a configuration option "--enable-load-extension" (off by default) to allow external function library loading.
I have created a port for extension-functions.c (found on: http://www.sqlite.org/contrib/), and I would like this SQLite3 build option in order to use the new port.
>How-To-Repeat:
>Fix:
See attached patch
Patch attached with submission follows:
Index: databases/sqlite3/Makefile
===================================================================
RCS file: /home/pcvs/ports/databases/sqlite3/Makefile,v
retrieving revision 1.39
diff -u -r1.39 Makefile
--- databases/sqlite3/Makefile 2 Nov 2009 10:11:48 -0000 1.39
+++ databases/sqlite3/Makefile 28 Jan 2010 22:35:55 -0000
@@ -7,6 +7,7 @@
PORTNAME= sqlite3
PORTVERSION= 3.6.19
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://www.sqlite.org/
DISTNAME= sqlite-${PORTVERSION}
@@ -32,7 +33,8 @@
RAMTABLE "Store temporary tables in RAM" off \
TCLWRAPPER "Enable TCL wrapper" off \
METADATA "Enable column metadata" on \
- THREADSAFE "Build thread-safe library" on
+ THREADSAFE "Build thread-safe library" on \
+ EXTENSION "Allow loadable extensions" off
.include <bsd.port.pre.mk>
@@ -80,6 +82,12 @@
CONFIGURE_ARGS+= --disable-threadsafe
.endif
+.if !defined(WITHOUT_EXTENSION)
+CONFIGURE_ARGS+= --enable-load-extension
+.else
+CONFIGURE_ARGS+= --disable-load-extension
+.endif
+
.if defined(WITH_TCLWRAPPER)
post-install:
@${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list