summaryrefslogtreecommitdiff
path: root/libraries/libfido2
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-25 15:47:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-25 15:47:29 +0700
commit1a0cb3ae51b10d53310f2d87f3f6a8678a93ed6d (patch)
treee925b8f4d2ca9ee502430a09c35abbe5fd789227 /libraries/libfido2
parent62efab8a6d8552ff62c0337e77b6291ea016fffe (diff)
downloadslackbuilds-1a0cb3ae51b10d53310f2d87f3f6a8678a93ed6d.tar.gz
libraries/libfido2: Updated for version 1.8.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libfido2')
-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 663ca267d6..0000000000
--- 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 bf6d88a96f..5e2327b97c 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 c651b9196f..a1b1b4ca82 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"