svn commit: r480170 - head/databases/sqlite3/files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Thu Sep 20 13:42:11 UTC 2018


Author: sunpoet
Date: Thu Sep 20 13:42:10 2018
New Revision: 480170
URL: https://svnweb.freebsd.org/changeset/ports/480170

Log:
  Fix configure error when SESSION is enabled
  
  In file included from <built-in>:318:
  <command line>:39:28: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
  #define SQLITE_ENABLE_RTREE-DSQLITE_ENABLE_SESSION 1
                             ^
  sqlite3.c:308:5: error: token is not a valid binary operator in a preprocessor subexpression
  #if SQLITE_ENABLE_RTREE
      ^~~~~~~~~~~~~~~~~~~
  <command line>:39:52: note: expanded from here
  #define SQLITE_ENABLE_RTREE-DSQLITE_ENABLE_SESSION 1
                             ~~~~~~~~~~~~~~~~~~~~~~~ ^
  1 warning and 1 error generated.
  *** Error code 1
  
  Approved by:	portmgr (blanket)

Added:
  head/databases/sqlite3/files/
  head/databases/sqlite3/files/patch-configure   (contents, props changed)

Added: head/databases/sqlite3/files/patch-configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/sqlite3/files/patch-configure	Thu Sep 20 13:42:10 2018	(r480170)
@@ -0,0 +1,11 @@
+--- configure.orig	2018-09-18 20:36:42 UTC
++++ configure
+@@ -13638,7 +13638,7 @@ if test "${enable_session+set}" = set; t
+ fi
+ 
+ if test x"$enable_session" = "xyes"; then
+-  BUILD_CFLAGS="$BUILD_CFLAGS-DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
++  BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
+ fi
+ #-----------------------------------------------------------------------
+ 


More information about the svn-ports-head mailing list