]> git.sur5r.net Git - glabels/commitdiff
Imported Debian patch 2.2.8-3 debian/2.2.8-3
authorgregor herrmann <gregoa@debian.org>
Mon, 19 Dec 2011 18:00:44 +0000 (19:00 +0100)
committerJakob Haufe <sur5r@sur5r.net>
Sun, 11 Mar 2012 22:50:09 +0000 (23:50 +0100)
debian/changelog
debian/patches/30_Werror-format-security.patch [new file with mode: 0644]
debian/patches/40_linker.patch [new file with mode: 0644]
debian/patches/series

index b9d3bf7bc50812d5d3971dbf2c18d24735027102..364e5ccb5202a41f372d1401f572f1893a9cf815 100644 (file)
@@ -1,3 +1,15 @@
+glabels (2.2.8-3) unstable; urgency=low
+
+  * QA upload.
+  * Fix "FTBFS: plessey.c:151:9: error: format not a string literal and
+    no format arguments [-Werror=format-security]": new patch
+    30_Werror-format-security.patch: add format argument to sprintf call.
+    (Closes: #643390)
+  * New patch 40_linker.patch: add '-lm' to linker arguments, otherwise the
+    build fails with binutils-gold or --no-add-needed.
+
+ -- gregor herrmann <gregoa@debian.org>  Mon, 19 Dec 2011 19:00:44 +0100
+
 glabels (2.2.8-2) unstable; urgency=low
 
   [ Olivier Berger ]
diff --git a/debian/patches/30_Werror-format-security.patch b/debian/patches/30_Werror-format-security.patch
new file mode 100644 (file)
index 0000000..2d99811
--- /dev/null
@@ -0,0 +1,18 @@
+Description: add format argument to sprintf call to prevent failure with -Werror=format-security
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/bug=643390
+Forwarded: no
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2011-12-19
+
+--- a/barcode-0.98/plessey.c
++++ b/barcode-0.98/plessey.c
+@@ -148,7 +148,7 @@
+                         checkptr[i+j] ^= check[j];
+     }
+     for (i = 0; i < 8; i++) {
+-        sprintf(ptr, patterns[checkptr[strlen(text) * 4 + i]]);
++        sprintf(ptr, "%s", patterns[checkptr[strlen(text) * 4 + i]]);
+       ptr += 2;
+     }
+     fprintf(stderr, "CRC: ");
diff --git a/debian/patches/40_linker.patch b/debian/patches/40_linker.patch
new file mode 100644 (file)
index 0000000..22f53c0
--- /dev/null
@@ -0,0 +1,49 @@
+Description: add '-lm' to linker arguments, otherwise the linking fails with binutils-golds or --no-add-needed
+Origin: vendor
+Forwarded: no
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2011-12-19
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -30,7 +30,8 @@
+       ../libglabels/libglabels.la             \
+       mygal/libmygal.la                       \
+       $(LIB_BARCODE_DIR)/libbarcode.la        \
+-      $(LIB_IEC16022_DIR)/libiec16022.la
++      $(LIB_IEC16022_DIR)/libiec16022.la      \
++      -lm
+ glabels_batch_LDFLAGS = -export-dynamic
+@@ -38,7 +39,8 @@
+       $(GLABELS_LIBS)                         \
+       ../libglabels/libglabels.la             \
+       $(LIB_BARCODE_DIR)/libbarcode.la        \
+-      $(LIB_IEC16022_DIR)/libiec16022.la
++      $(LIB_IEC16022_DIR)/libiec16022.la      \
++      -lm
+ BUILT_SOURCES =                       \
+       marshal.c                       \
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -365,14 +365,16 @@
+       ../libglabels/libglabels.la             \
+       mygal/libmygal.la                       \
+       $(LIB_BARCODE_DIR)/libbarcode.la        \
+-      $(LIB_IEC16022_DIR)/libiec16022.la
++      $(LIB_IEC16022_DIR)/libiec16022.la      \
++      -lm
+ glabels_batch_LDFLAGS = -export-dynamic
+ glabels_batch_LDADD = \
+       $(GLABELS_LIBS)                         \
+       ../libglabels/libglabels.la             \
+       $(LIB_BARCODE_DIR)/libbarcode.la        \
+-      $(LIB_IEC16022_DIR)/libiec16022.la
++      $(LIB_IEC16022_DIR)/libiec16022.la      \
++      -lm
+ BUILT_SOURCES = \
+       marshal.c                       \
index d2df0961025bb888f31000efd34211f10ee8c1b9..5b78de6a4d5516d8fb8eac2908fb201901f44445 100644 (file)
@@ -1,2 +1,4 @@
 20_menu.patch
 10_manpage.patch
+30_Werror-format-security.patch
+40_linker.patch