Date: Thu, 28 Jan 2010 22:41:00 GMT From: Greg Larkin <glarkin@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/143329: [PATCH] Add option to enable loadable extensions in databases/sqlite3 Message-ID: <201001282241.o0SMf0bR074153@www.freebsd.org> Resent-Message-ID: <201001282250.o0SMoBnt035665@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001282241.o0SMf0bR074153>