aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch31
-rw-r--r--libraries/libfido2/libfido2.SlackBuild4
-rw-r--r--libraries/libfido2/libfido2.info6
3 files changed, 4 insertions, 37 deletions
diff --git a/libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch b/libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch
deleted file mode 100644
index 663ca267d6b8e..0000000000000
--- a/libraries/libfido2/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 487924cda8c6c1a5360e15d4858432d676069f1b Mon Sep 17 00:00:00 2001
-From: pedro martelletto <pedro@yubico.com>
-Date: Sun, 4 Apr 2021 10:41:24 +0200
-Subject: [PATCH] log: explicit truncation to placate gcc; gh#318
-
----
- src/log.c | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/src/log.c b/src/log.c
-index 3d603c2a..ab18ae12 100644
---- a/src/log.c
-+++ b/src/log.c
-@@ -33,14 +33,14 @@ log_on_stderr(const char *str)
- static void
- do_log(const char *suffix, const char *fmt, va_list args)
- {
-- char line[LINELEN], body[LINELEN - 3];
-+ char line[LINELEN], body[LINELEN];
-
- vsnprintf(body, sizeof(body), fmt, args);
-
- if (suffix != NULL)
-- snprintf(line, sizeof(line), "%s: %s\n", body, suffix);
-+ snprintf(line, sizeof(line), "%.180s: %.70s\n", body, suffix);
- else
-- snprintf(line, sizeof(line), "%s\n", body);
-+ snprintf(line, sizeof(line), "%.180s\n", body);
-
- log_handler(line);
- }
diff --git a/libraries/libfido2/libfido2.SlackBuild b/libraries/libfido2/libfido2.SlackBuild
index bf6d88a96fe33..5e2327b97c1af 100644
--- a/libraries/libfido2/libfido2.SlackBuild
+++ b/libraries/libfido2/libfido2.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libfido2
-VERSION=${VERSION:-1.7.0}
+VERSION=${VERSION:-1.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,8 +76,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Thanks to Arch Linux
-patch -p1 < $CWD/0001-log-explicit-truncation-to-placate-gcc-gh-318.patch
mkdir -p build
cd build
cmake \
diff --git a/libraries/libfido2/libfido2.info b/libraries/libfido2/libfido2.info
index c651b9196fad4..a1b1b4ca82d80 100644
--- a/libraries/libfido2/libfido2.info
+++ b/libraries/libfido2/libfido2.info
@@ -1,8 +1,8 @@
PRGNAM="libfido2"
-VERSION="1.7.0"
+VERSION="1.8.0"
HOMEPAGE="https://github.com/Yubico/libfido2"
-DOWNLOAD="https://developers.yubico.com/libfido2/Releases/libfido2-1.7.0.tar.gz"
-MD5SUM="3af83bdfa3f0f80f8336fe2889d021ce"
+DOWNLOAD="https://developers.yubico.com/libfido2/Releases/libfido2-1.8.0.tar.gz"
+MD5SUM="5fe1670cb5a397183ddadb7eb7962b15"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libcbor"