[spatialite-tools] 07/09: Add patch to link sqlite3.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Jun 19 20:54:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch experimental
in repository spatialite-tools.

commit b331d797206388d22655b476c8abbb60420cb369
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jun 19 21:53:01 2015 +0200

    Add patch to link sqlite3.
---
 debian/changelog                     |  1 +
 debian/patches/01-link-sqlite3.patch | 24 ++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5a3781f..a3437ef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ spatialite-tools (4.3.0~rc0-1) UNRELEASED; urgency=medium
   * Update watch file to use lowercase rc in upstream version mangle.
   * New upstream release candidate.
   * Drop patches applied upstream, refresh remaining patches.
+  * Add patch to link sqlite3.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 19 Jun 2015 03:26:14 +0200
 
diff --git a/debian/patches/01-link-sqlite3.patch b/debian/patches/01-link-sqlite3.patch
new file mode 100644
index 0000000..bcc0416
--- /dev/null
+++ b/debian/patches/01-link-sqlite3.patch
@@ -0,0 +1,24 @@
+Description: Link sqlite3 to fix FTBFS.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -67,6 +67,8 @@ AC_CHECK_HEADERS(stddef.h,, [AC_MSG_ERRO
+ AC_CHECK_HEADERS(stdint.h,, [AC_MSG_ERROR([cannot find stdint.h, bailing out])])
+ AC_CHECK_HEADERS(sys/time.h,, [AC_MSG_ERROR([cannot find sys/time.h, bailing out])])
+ AC_CHECK_HEADERS(unistd.h,, [AC_MSG_ERROR([cannot find unistd.h, bailing out])])
++AC_CHECK_HEADERS(sqlite3.h,, [AC_MSG_ERROR([cannot find sqlite3.h, bailing out])])
++AC_CHECK_HEADERS(sqlite3ext.h,, [AC_MSG_ERROR([cannot find sqlite3ext.h, bailing out])])
+ 
+ # Checks for programs.
+ AC_PROG_CXX
+@@ -94,6 +96,9 @@ AC_FUNC_STAT
+ AC_FUNC_STRFTIME
+ AC_CHECK_FUNCS([memset sqrt strcasecmp strerror strncasecmp strstr fdatasync ftruncate getcwd gettimeofday localtime_r memmove strerror])
+ 
++# Checks for installed libraries
++AC_CHECK_LIB(sqlite3,sqlite3_prepare_v2,,AC_MSG_ERROR(['libsqlite3' is required but it doesn't seem to be installed on this system.]),-lm)
++
+ AC_CONFIG_FILES([Makefile])
+ 
+ #-----------------------------------------------------------------------
diff --git a/debian/patches/series b/debian/patches/series
index 50e897d..a9b095e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 00-add_automake_foreign.patch
+01-link-sqlite3.patch
 10-no-sqlite-check.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/spatialite-tools.git



More information about the Pkg-grass-devel mailing list