summaryrefslogtreecommitdiff
path: root/app-text/barcode
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/barcode')
-rw-r--r--app-text/barcode/Manifest3
-rw-r--r--app-text/barcode/barcode-0.99-r1.ebuild3
-rw-r--r--app-text/barcode/files/barcode-0.99-not-a-literal-string.patch19
3 files changed, 23 insertions, 2 deletions
diff --git a/app-text/barcode/Manifest b/app-text/barcode/Manifest
index b36618db5f88..6117c9b76d13 100644
--- a/app-text/barcode/Manifest
+++ b/app-text/barcode/Manifest
@@ -1,5 +1,6 @@
AUX barcode-0.99-fno-common.patch 650 BLAKE2B 27fce20565dfa526b4240c5817ab45735bba98a7445160ba5f7ff368f0befa2332e423f31732ea27a104b3f5f7db0fa8a954d465116a38fd445cd1ebc1209242 SHA512 1cacd446234f9b0d841803f3627a7b0775da22cc74fcf09ee45ee95317ed6816bc545e61555707f7c7a5cee743b33b241088182b01d6cdcd49e047f050d29c68
AUX barcode-0.99-install-static-lib.patch 331 BLAKE2B 72b6a5a31ce3c450587ae7603f802bdd9e8c467f9095538fb819f2742703be1abe749af7faf340f908ee8e5979277f7fc65cc8230685f060253c08e31a5641f8 SHA512 2033f6edcdf98efcb17296845be76d1c2cfc3504fcee965d68536e209f949d26d6ef2326858fe673492e36a5c3aebd14eb3e0ef96355ca43d25a23f19b612d01
+AUX barcode-0.99-not-a-literal-string.patch 672 BLAKE2B 8a93d8791e875b5b0134a6ad4ee951d6ffda4dbad71a1ae67ad59d6b7dab9726fe37f2c0607e03b2be86eecd6aba4865eab7565bf20f7ae105abb6fceb5bcef8 SHA512 779a05faa1db79dede4fe38a2443a74c7f1dec0f4fdf8b62c4331cab1ac135a22d89d28f2e263ea36b942d548cb9cb57d8ab7e0943513bee4509c620308f89de
DIST barcode-0.99.tar.xz 586028 BLAKE2B a6ef5a4f0061bd0f0cb65a791516383259f317801e9f5ea02c626735cd3ed5f00e0a92502b9b5e3dcb8ea95c313e10f5abf9c172e1094111dea7f3cfb45ec032 SHA512 1f3015ee9cb2e57e38e56fa48fa3a38fa355821801bad3132d3e87b5b88db4f167986c33dc044317cbf18bb62062af36e946daab98235ff7015a00937c8dd41e
-EBUILD barcode-0.99-r1.ebuild 753 BLAKE2B c25d230a2d70cafdaf9394f20d7901ac41a5249a0a41edd202c1079258ab06e703823fbc61112414d3f0fa5fef8b44dadfa88dd8e4d23f0c2529f3872f28c972 SHA512 3e3486d9d952dc92818a2cbb6ea420c5da299716dd97d3c134e2dacfd8f591bb84760996853e21ed41a4893196ebf44d39cd86b6bbc79df6f04236d16dc6d0c0
+EBUILD barcode-0.99-r1.ebuild 800 BLAKE2B 50a545b2f2e31c21d2b90593db37579458409d7ec32eb94e4b5dc77fe4573ed326897d7fb25375d44a058eeb65ace4b42cf6d269b13405bff7e22d587fe3a8bc SHA512 367ed264de52f10299e82b9ebeb05e52080297cc1aa161277e52e51ef7237f33d3d26a8e0884eaaf06977bf3a6875b5dd28b0af62f4ae73edb744907ea94fd41
MISC metadata.xml 332 BLAKE2B cbd827ae4db4f4230f7ce483ada7e58d976fd4fa5a508e35725ce97dac038416fdb73969f0bdbfe313ae85ddcc8fc9e43bbd5959af3105de8b162abce1267fd3 SHA512 2268bd4b0e057e8a1bddb53e1bb1d82f69d28f62cd02f297b55fe1403c1ded3294912009464ef3b21a3831ccede5c496f24a2c60a11fbfb4586d20fe527fa34a
diff --git a/app-text/barcode/barcode-0.99-r1.ebuild b/app-text/barcode/barcode-0.99-r1.ebuild
index 7afa62168be7..e0ddd7693b65 100644
--- a/app-text/barcode/barcode-0.99-r1.ebuild
+++ b/app-text/barcode/barcode-0.99-r1.ebuild
@@ -9,7 +9,7 @@ DESCRIPTION="barcode generator"
HOMEPAGE="https://www.gnu.org/software/barcode/"
SRC_URI="mirror://gnu/barcode/${P}.tar.xz"
-LICENSE="GPL-2"
+LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
@@ -19,6 +19,7 @@ DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-fno-common.patch
"${FILESDIR}"/${P}-install-static-lib.patch
+ "${FILESDIR}"/${P}-not-a-literal-string.patch
)
src_prepare() {
diff --git a/app-text/barcode/files/barcode-0.99-not-a-literal-string.patch b/app-text/barcode/files/barcode-0.99-not-a-literal-string.patch
new file mode 100644
index 000000000000..63b49d25c058
--- /dev/null
+++ b/app-text/barcode/files/barcode-0.99-not-a-literal-string.patch
@@ -0,0 +1,19 @@
+Taken from: https://lists.gnu.org/archive/html/bug-barcode/2021-09/msg00000.html
+Author: https://lists.gnu.org/archive/html/bug-barcode/2021-09/msg00000.html
+---
+ plessey.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/plessey.c b/plessey.c
+index 2f59e39..3089a3c 100644
+--- a/plessey.c
++++ b/plessey.c
+@@ -149,7 +149,7 @@ int Barcode_pls_encode(struct Barcode_Item *bc)
+ 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: "));