Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 06:33:06 +0400 (MSK)
From:      Pavel I Volkov <pavelivolkov@googlemail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        pavelivolkov@gmail.com
Subject:   ports/177388: [PATCH] databases/sqlite3: update to 3.7.16
Message-ID:  <201303260233.r2Q2X6oN001758@test.lan>
Resent-Message-ID: <201303260250.r2Q2o082093219@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177388
>Category:       ports
>Synopsis:       [PATCH] databases/sqlite3: update to 3.7.16
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 26 02:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Pavel I Volkov
>Release:        FreeBSD 9.1-RELEASE-p1 amd64
>Organization:
>Environment:
System: FreeBSD fb1.local 9.1-RELEASE-p1 FreeBSD 9.1-RELEASE-p1 #0 r248477: Tue Mar 19 17:35:01 MSK
>Description:
- Update to 3.7.16
- Add SQLITE_CONFIG_SQLLOG for nss-3.14.2 and other (see PR#175656)
- Add warning for i386 platform

Port maintainer (pavelivolkov@gmail.com) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: suffix)
>How-To-Repeat:
>Fix:

--- sqlite3-3.7.16.patch begins here ---
diff -ruN --exclude=CVS ../sqlite3.orig/Makefile ./Makefile
--- ../sqlite3.orig/Makefile	2013-03-25 09:47:47.000000000 +0400
+++ ./Makefile	2013-03-25 16:19:34.000000000 +0400
@@ -2,10 +2,10 @@
 # $FreeBSD: head/databases/sqlite3/Makefile 314924 2013-03-22 13:13:50Z bapt $
 
 PORTNAME=	sqlite3
-PORTVERSION=	3.7.14.1
+PORTVERSION=	3.7.16
 CATEGORIES=	databases
-MASTER_SITES=	http://www.sqlite.org/ http://www2.sqlite.org/ http://www3.sqlite.org/
-DISTNAME=	sqlite-autoconf-3071401
+MASTER_SITES=	http://www.sqlite.org/2013/ http://www2.sqlite.org/2013/ http://www3.sqlite.org/2013/
+DISTNAME=	sqlite-autoconf-3071600
 
 MAINTAINER=	pavelivolkov@gmail.com
 COMMENT=	An SQL database engine in a C library
@@ -15,7 +15,7 @@
 LICENSE_TEXT=	Description of the license can be obtained from the following URL: http://www.sqlite.org/copyright.html
 LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
 
-CONFLICTS=	sqlite34-[0-9]* sqlcipher-*
+CONFLICTS=	sqlite34-[0-9]* sqlcipher-[0-9]*
 
 USE_PKGCONFIG=	build
 USE_LDCONFIG=	YES
@@ -25,7 +25,7 @@
 
 # Compilation Options For SQLite http://www.sqlite.org/compile.html
 OPTIONS_DEFINE=	FTS3 ICU RTREE RAMTABLE UPD_DEL_LIMIT URI SOUNDEX METADATA \
-		STAT3 DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY THREADSAFE \
+		STAT3 DIRECT_READ MEMMAN SECURE_DELETE UNLOCK_NOTIFY SQLLOG THREADSAFE \
 		EXTENSION
 OPTIONS_DEFAULT=	FTS3 URI METADATA SECURE_DELETE UNLOCK_NOTIFY THREADSAFE EXTENSION
 FTS3_DESC=		Enable FTS3/4 (Full Text Search) module
@@ -41,6 +41,7 @@
 MEMMAN_DESC=		Allows it to release unused memory
 SECURE_DELETE_DESC=	Overwrite deleted information with zeros
 UNLOCK_NOTIFY_DESC=	Enable notification on unlocking
+SQLLOG_DESC=		Allow logging operations
 THREADSAFE_DESC=	Build thread-safe library
 EXTENSION_DESC=		Allow loadable extensions
 
@@ -136,6 +137,10 @@
 CPPFLAGS+=		-DSQLITE_ENABLE_UNLOCK_NOTIFY=1
 .endif
 
+.if ${PORT_OPTIONS:MSQLLOG}
+CPPFLAGS+=		-DSQLITE_ENABLE_SQLLOG=1
+.endif
+
 .if ${PORT_OPTIONS:MMETADATA}
 CPPFLAGS+=		-DSQLITE_ENABLE_COLUMN_METADATA=1
 .endif
@@ -153,6 +158,17 @@
 CONFIGURE_ARGS+=	--disable-dynamic-extensions
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} '/^pkgconf/s,$${libdir},$${prefix}/libdata,' ${WRKSRC}/Makefile.in
+.if ${PORT_OPTIONS:MSQLLOG}
+	@${ECHO_CMD} "void sqlite3_init_sqllog(void) { /* fake function */ }" >> ${WRKSRC}/shell.c
+.endif
+
+post-build:
+.if ${ARCH}=="i386"
+	@${ECHO_MSG} "===> WARNING: on ${ARCH} don't pass atof1-* tests"
+.endif
+
 post-install:
 .if !defined(NO_INSTALL_MANPAGES)
 	@${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${MANPREFIX}/man/man1
diff -ruN --exclude=CVS ../sqlite3.orig/distinfo ./distinfo
--- ../sqlite3.orig/distinfo	2013-03-25 09:47:47.000000000 +0400
+++ ./distinfo	2013-03-25 10:28:53.000000000 +0400
@@ -1,2 +1,2 @@
-SHA256 (sqlite-autoconf-3071401.tar.gz) = d46d302a63b23d9c3b80e519be12cb7d6a8d3da57bd9c119341a0aa8b3b28692
-SIZE (sqlite-autoconf-3071401.tar.gz) = 1832051
+SHA256 (sqlite-autoconf-3071600.tar.gz) = 3509c20fa2b1725734997b1dbb3dbfc825cfa7a09194cbac8f6fe33ed187ad34
+SIZE (sqlite-autoconf-3071600.tar.gz) = 1854055
--- sqlite3-3.7.16.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303260233.r2Q2X6oN001758>