[packages/barcode] Rel 3

arekm arekm at pld-linux.org
Thu May 21 22:39:56 CEST 2026


commit c20da43e84f871bcb2f3a2d535cea9a6c7848eab
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 22:39:39 2026 +0200

    Rel 3

 barcode-fcommon.patch | 21 +++++++++++++++++++++
 barcode.spec          |  4 +++-
 format-security.patch |  8 ++++----
 3 files changed, 28 insertions(+), 5 deletions(-)
---
diff --git a/barcode.spec b/barcode.spec
index 55f84fa..1312f0c 100644
--- a/barcode.spec
+++ b/barcode.spec
@@ -2,7 +2,7 @@ Summary:	GNU barcode
 Summary(pl.UTF-8):	GNU barcode - narzędzie do kodów paskowych
 Name:		barcode
 Version:	0.99
-Release:	2
+Release:	3
 License:	GPL v3+
 Group:		Applications/Graphics
 Source0:	http://ftp.gnu.org/gnu/barcode/%{name}-%{version}.tar.xz
@@ -10,6 +10,7 @@ Source0:	http://ftp.gnu.org/gnu/barcode/%{name}-%{version}.tar.xz
 Patch0:		format-security.patch
 Patch1:		%{name}-info.patch
 Patch2:		%{name}-lib.patch
+Patch3:		%{name}-fcommon.patch
 URL:		http://www.gnu.org/software/barcode/
 BuildRequires:	autoconf >= 2.65
 BuildRequires:	automake >= 1.5
@@ -83,6 +84,7 @@ Biblioteka statyczna GNU barcode.
 %patch -P0 -p1
 %patch -P1 -p1
 %patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__libtoolize}
diff --git a/barcode-fcommon.patch b/barcode-fcommon.patch
new file mode 100644
index 0000000..93d44df
--- /dev/null
+++ b/barcode-fcommon.patch
@@ -0,0 +1,21 @@
+--- barcode-0.99/barcode.h.orig
++++ barcode-0.99/barcode.h
+@@ -120,6 +120,6 @@
+ }
+ #endif
+
+-int streaming;
++extern int streaming;
+
+ #endif /* _BARCODE_H_ */
+--- barcode-0.99/library.c.orig
++++ barcode-0.99/library.c
+@@ -30,6 +30,8 @@
+ #endif
+ #include <errno.h>
+
++int streaming;
++
+ /*
+  * This function allocates a barcode structure and strdup()s the
+  * text string. It returns NULL in case of error
diff --git a/format-security.patch b/format-security.patch
index 7fae99e..4758a76 100644
--- a/format-security.patch
+++ b/format-security.patch
@@ -1,6 +1,6 @@
---- barcode-0.98/plessey.c~	2000-11-07 17:43:18.000000000 +0000
-+++ barcode-0.98/plessey.c	2015-04-05 20:20:57.170658797 +0000
-@@ -148,7 +148,7 @@
+--- barcode-0.99/plessey.c.orig	2013-03-29 23:23:36.000000000 +0100
++++ barcode-0.99/plessey.c	2026-05-20 09:27:18.778919039 +0200
+@@ -149,7 +149,7 @@
                          checkptr[i+j] ^= check[j];
      }
      for (i = 0; i < 8; i++) {
@@ -8,4 +8,4 @@
 +        sprintf(ptr, "%s", patterns[checkptr[strlen(text) * 4 + i]]);
  	ptr += 2;
      }
-     fprintf(stderr, "CRC: ");
+     fprintf(stderr, _("CRC: "));
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/barcode.git/commitdiff/c20da43e84f871bcb2f3a2d535cea9a6c7848eab



More information about the pld-cvs-commit mailing list