summaryrefslogtreecommitdiff
path: root/media-radio/tlf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /media-radio/tlf
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'media-radio/tlf')
-rw-r--r--media-radio/tlf/Manifest3
-rw-r--r--media-radio/tlf/files/tlf-1.4.1-zone_nr.patch20
-rw-r--r--media-radio/tlf/tlf-1.4.1.ebuild2
3 files changed, 24 insertions, 1 deletions
diff --git a/media-radio/tlf/Manifest b/media-radio/tlf/Manifest
index f90baed31c09..52e452c0eeeb 100644
--- a/media-radio/tlf/Manifest
+++ b/media-radio/tlf/Manifest
@@ -1,3 +1,4 @@
+AUX tlf-1.4.1-zone_nr.patch 468 BLAKE2B b9dc26ba4f2775dbdf2f2aacb763a70acbe4c6331a862f9db43774d0bbdeef9214c48f4cf30b0f52de5ab65b9ac157d160b52a19777a640f3a6d53c22187e74d SHA512 e415d62ed1bbb50bf6eedbe5bc93e06c02152bbb7f4a096f9229b3314a21125eec765255a7ddfbd07a478088a5097daaab5f8702d27c04babd5a29a5db7b4e29
DIST tlf-1.4.1.tar.gz 708105 BLAKE2B 18cd617a8780293bbfec87875491935d16022e104eed128ab69cbc3824aa5f8ab77dd07728d952e9b932ea74ee1c258522c26b5458b715320d452d58a65cfd3c SHA512 89076ba3b870f65b1469d64a223a9d35f1afd3edc6801446990d7ce197b04dacf141efc40382c69c78935a16f386385df0c7b48a040072cecc311cda56d479b5
-EBUILD tlf-1.4.1.ebuild 631 BLAKE2B 0164a96547dff1b494eeb3793787025eaa52acbc91582d26beb2e361ac3eebde8959eb3811ad9b59cdf304e132a680d3ae39efe8a8976c3bf1f45fec60e193e2 SHA512 740d86aa0ea795321fc9c3c987cf0c9959d8f046ddbc492a32e9b2450e7350a2656df8fb6fe53d8d7df46db7d855c84b2b218f977f52ad00ada9b30624b5bbf7
+EBUILD tlf-1.4.1.ebuild 677 BLAKE2B 8f970b1886111ace7ca4d8ba2582b602a2239c60f64cf423ef1f9f54935bbd4e4bc994927d37615ef2d89a9cc2b97d0e55bef79cd7f99a1cfc6fc81fa073eaa8 SHA512 92662a2c44cb6bb7c74e76bb791bc4d1901e406b0fcb316c4eaf8e376bd7db96f979ceea0b94981170f3d844587999c0ce5a4450da80a23963f6460d8d7f8d59
MISC metadata.xml 249 BLAKE2B d6fa8a349066f9684c68c3086f53e41ebf30b6e313e8e8e752a953c0eaa0853448fe17e5ed46836bc5e149a282a33c7408c675d3b39eb3d59ddc1c1ad86bf716 SHA512 965ae00fa198dd8f5869c4c14ff3e28c7d76be7182be6ba4bedbb68d7138da5be3c8bb993689db2c73ac328456015ebdf018ee1b308d6988067810d1156bd179
diff --git a/media-radio/tlf/files/tlf-1.4.1-zone_nr.patch b/media-radio/tlf/files/tlf-1.4.1-zone_nr.patch
new file mode 100644
index 000000000000..cc5cf3775920
--- /dev/null
+++ b/media-radio/tlf/files/tlf-1.4.1-zone_nr.patch
@@ -0,0 +1,20 @@
+diff --git a/src/zone_nr.c b/src/zone_nr.c
+index c7e2a33..805bd4e 100644
+--- a/src/zone_nr.c
++++ b/src/zone_nr.c
+@@ -20,11 +20,14 @@
+ * get zone number
+ *
+ *--------------------------------------------------------------*/
+-
++#include "string.h"
+
+ int zone_nr(char *comment) {
+ int z = 0;
+
++ if (strlen(comment) < 2)
++ return z;
++
+ if (comment[0] <= 57 && comment[0] >= 48)
+ z = (comment[0] - 48) * 10;
+ if (comment[1] <= 57 && comment[1] >= 48)
diff --git a/media-radio/tlf/tlf-1.4.1.ebuild b/media-radio/tlf/tlf-1.4.1.ebuild
index 23bc6b749b8e..8da29357b285 100644
--- a/media-radio/tlf/tlf-1.4.1.ebuild
+++ b/media-radio/tlf/tlf-1.4.1.ebuild
@@ -25,6 +25,8 @@ DEPEND="
${RDEPEND}
test? ( dev-util/cmocka )"
+PATCHES=( "${FILESDIR}"/${P}-zone_nr.patch )
+
src_configure() {
append-ldflags -L/usr/$(get_libdir)/hamlib
econf --enable-fldigi-xmlrpc