Bug#646487: slsqlite: diff for NMU version 0.4.0-3.1

2011-12-04 Thread Mònica Ramírez Arceda
tags 646487 + patch
thanks

Dear maintainer,

I've prepared an NMU for slsqlite (versioned as 0.4.0-3.1) to
fix this bug.

Thanks for your work!
diff -u slsqlite-0.4.0/debian/changelog slsqlite-0.4.0/debian/changelog
--- slsqlite-0.4.0/debian/changelog
+++ slsqlite-0.4.0/debian/changelog
@@ -1,3 +1,11 @@
+slsqlite (0.4.0-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * 01-add-format-argument.patch: add format argument to avoid format-security 
+error while building. (Closes: #646487)
+
+ -- Mònica Ramírez Arceda mon...@probeta.net  Sun, 04 Dec 2011 13:24:33 +0100
+
 slsqlite (0.4.0-3) unstable; urgency=low
 
   * debian/control:
only in patch2:
unchanged:
--- slsqlite-0.4.0.orig/debian/patches/series
+++ slsqlite-0.4.0/debian/patches/series
@@ -0,0 +1 @@
+01-add-format-argument.patch
only in patch2:
unchanged:
--- slsqlite-0.4.0.orig/debian/patches/01-add-format-argument.patch
+++ slsqlite-0.4.0/debian/patches/01-add-format-argument.patch
@@ -0,0 +1,11 @@
+--- a/sqlite-module.c
 b/sqlite-module.c
+@@ -114,7 +114,7 @@
+  }
+if (b-errcode_ptr == NULL) error = Sqlite_Error;
+else error = *(b-errcode_ptr);
+-   SLang_verror (error, (char *) sqlite3_errmsg(db));
++   SLang_verror (error, %s, (char *) sqlite3_errmsg(db));
+return 1;
+ }
+ 


Bug#646487: slsqlite: diff for NMU version 0.4.0-3.1

2011-12-04 Thread Mònica Ramírez Arceda
Dear maintainer,

The previous patch is not complete. This new one should work :-)
diff -u slsqlite-0.4.0/debian/control slsqlite-0.4.0/debian/control
--- slsqlite-0.4.0/debian/control
+++ slsqlite-0.4.0/debian/control
@@ -4,7 +4,7 @@
 Maintainer: Debian JED Group pkg-jed-sl-modu...@lists.alioth.debian.org
 Uploaders: Rafael Laboissiere raf...@debian.org
 Build-Depends: debhelper (= 7), libslang2-dev (= 2.0.4-6),
- libsqlite3-dev, cdbs
+ libsqlite3-dev, cdbs, quilt
 Standards-Version: 3.8.1
 Homepage: http://www.cheesit.com/downloads/slang/slsqlite.html
 Vcs-Git: git://git.debian.org/git/pkg-jed/slsqlite.git
diff -u slsqlite-0.4.0/debian/rules slsqlite-0.4.0/debian/rules
--- slsqlite-0.4.0/debian/rules
+++ slsqlite-0.4.0/debian/rules
@@ -3,4 +3,5 @@
 include /usr/share/cdbs/1/class/makefile.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk 
 
 DEB_MAKE_INSTALL_TARGET := install prefix=/usr DESTDIR=$(DEB_DESTDIR)
diff -u slsqlite-0.4.0/debian/changelog slsqlite-0.4.0/debian/changelog
--- slsqlite-0.4.0/debian/changelog
+++ slsqlite-0.4.0/debian/changelog
@@ -1,3 +1,12 @@
+slsqlite (0.4.0-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * 01-add-format-argument.patch: add format argument to avoid format-security 
+error while building. (Closes: #646487)
+  * debian/control, debian/rules: Add quilt system to apply patches.
+
+ -- Mònica Ramírez Arceda mon...@probeta.net  Sun, 04 Dec 2011 13:24:33 +0100
+
 slsqlite (0.4.0-3) unstable; urgency=low
 
   * debian/control:
only in patch2:
unchanged:
--- slsqlite-0.4.0.orig/debian/patches/series
+++ slsqlite-0.4.0/debian/patches/series
@@ -0,0 +1 @@
+01-add-format-argument.patch
only in patch2:
unchanged:
--- slsqlite-0.4.0.orig/debian/patches/01-add-format-argument.patch
+++ slsqlite-0.4.0/debian/patches/01-add-format-argument.patch
@@ -0,0 +1,11 @@
+--- a/sqlite-module.c
 b/sqlite-module.c
+@@ -114,7 +114,7 @@
+  }
+if (b-errcode_ptr == NULL) error = Sqlite_Error;
+else error = *(b-errcode_ptr);
+-   SLang_verror (error, (char *) sqlite3_errmsg(db));
++   SLang_verror (error, %s, (char *) sqlite3_errmsg(db));
+return 1;
+ }
+