summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-05-20 04:14:58 +0000
committersbd <sbd@pkgsrc.org>2012-05-20 04:14:58 +0000
commit4830e06918bfd78457a307d3a98bb082e5fc3b24 (patch)
treed62547a5ab631a3616d667ea511a2c52ffadbe2d /pkgtools
parent5fb8b56041f79af1f52ad825d4bb5e7f73c43188 (diff)
downloadpkgsrc-4830e06918bfd78457a307d3a98bb082e5fc3b24.tar.gz
Omit the SQLite load extension and insure that sqlite3.o is compiled
with it's extra CPPFLAGS. (Fixes the build on Linux.)
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkgin/distinfo3
-rw-r--r--pkgtools/pkgin/patches/patch-Makefile.in26
2 files changed, 28 insertions, 1 deletions
diff --git a/pkgtools/pkgin/distinfo b/pkgtools/pkgin/distinfo
index 76289c3c9aa..9affc20d6a4 100644
--- a/pkgtools/pkgin/distinfo
+++ b/pkgtools/pkgin/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.17 2012/04/09 08:58:19 imil Exp $
+$NetBSD: distinfo,v 1.18 2012/05/20 04:14:58 sbd Exp $
SHA1 (pkgin-0.5.2.3.tar.gz) = c0915229913adb94ff608d2412ddcfd19fd9269d
RMD160 (pkgin-0.5.2.3.tar.gz) = b3ff60f8065e2d45b330f9a8d70b2adb01f4171b
Size (pkgin-0.5.2.3.tar.gz) = 1458840 bytes
+SHA1 (patch-Makefile.in) = 37fc6a02b17fc06b733ae0f1c64a89e3417b336d
diff --git a/pkgtools/pkgin/patches/patch-Makefile.in b/pkgtools/pkgin/patches/patch-Makefile.in
new file mode 100644
index 00000000000..535c6171f63
--- /dev/null
+++ b/pkgtools/pkgin/patches/patch-Makefile.in
@@ -0,0 +1,26 @@
+$NetBSD: patch-Makefile.in,v 1.1 2012/05/20 04:14:58 sbd Exp $
+
+Omit the SQLite load extension and insure that sqlite3.o is compiled
+with it's extra CPPFLAGS.
+
+--- Makefile.in.orig 2011-10-01 18:06:44.000000000 +0000
++++ Makefile.in
+@@ -37,7 +37,7 @@ CPPFLAGS+= -D_POSIX_SOURCE -D_MINIX
+ LDADD+= -lsqlite3
+ .else
+ SRCS+= sqlite3.c
+-CPPFLAGS.sqlite3.c+= -DUSE_PREAD
++CPPFLAGS.sqlite3.c+= -DUSE_PREAD -DSQLITE_OMIT_LOAD_EXTENSION
+ .endif
+
+ LOCALBASE?= @prefix@
+@@ -92,6 +92,9 @@ CLEANFILES+= ${DPSRCS}
+ pkgindb_create.h:
+ @SEDCMD=@SED@ ./mkpkgindb.sh > pkgindb_create.h
+
++sqlite3.o: sqlite3.c
++ ${COMPILE.c} ${.IMPSRC} ${CPPFLAGS.sqlite3.c}
++
+ afterinstall: configinstall
+
+ beforeinstall: