diff options
author | Matt Turner <mattst88@gentoo.org> | 2024-02-13 15:37:16 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2024-02-13 15:37:16 -0500 |
commit | fbc1f31bc03c190eb69994887903d4c8d313a8f4 (patch) | |
tree | 39a6bd0b35e8bc8ed4511c515c8fa7c77f6c1339 /sys-auth/oath-toolkit | |
parent | x11-misc/xkeyboard-config: Version bump to 2.41 (diff) | |
download | gentoo-fbc1f31bc03c190eb69994887903d4c8d313a8f4.tar.gz gentoo-fbc1f31bc03c190eb69994887903d4c8d313a8f4.tar.bz2 gentoo-fbc1f31bc03c190eb69994887903d4c8d313a8f4.zip |
sys-auth/oath-toolkit: Add patch to avoid implicit definitions
Closes: https://bugs.gentoo.org/924395
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'sys-auth/oath-toolkit')
-rw-r--r-- | sys-auth/oath-toolkit/files/oath-toolkit-2.6.9-Fix-build-failure-noticed-on-ArchLinux-xmlsec.patch | 40 | ||||
-rw-r--r-- | sys-auth/oath-toolkit/oath-toolkit-2.6.9.ebuild | 4 |
2 files changed, 44 insertions, 0 deletions
diff --git a/sys-auth/oath-toolkit/files/oath-toolkit-2.6.9-Fix-build-failure-noticed-on-ArchLinux-xmlsec.patch b/sys-auth/oath-toolkit/files/oath-toolkit-2.6.9-Fix-build-failure-noticed-on-ArchLinux-xmlsec.patch new file mode 100644 index 000000000000..8b0cbacc51f7 --- /dev/null +++ b/sys-auth/oath-toolkit/files/oath-toolkit-2.6.9-Fix-build-failure-noticed-on-ArchLinux-xmlsec.patch @@ -0,0 +1,40 @@ +https://bugs.gentoo.org/924395 + +From 9f2bc8d4278421e2a05598c89f22cdf34929ec66 Mon Sep 17 00:00:00 2001 +From: Simon Josefsson <simon@josefsson.org> +Date: Sun, 31 Dec 2023 15:42:00 +0100 +Subject: [PATCH] Fix build failure noticed on ArchLinux-xmlsec. + +--- + NEWS | 2 ++ + libpskc/container.c | 1 + + libpskc/parser.c | 1 + + 3 files changed, 4 insertions(+) + +diff --git a/libpskc/container.c b/libpskc/container.c +index 639babc..bda2266 100644 +--- a/libpskc/container.c ++++ b/libpskc/container.c +@@ -24,6 +24,7 @@ + #include <pskc/pskc.h> + + #include <string.h> /* memset */ ++#include <stdlib.h> /* realloc */ + + #define INTERNAL_NEED_PSKC_STRUCT + #define INTERNAL_NEED_PSKC_KEY_STRUCT +diff --git a/libpskc/parser.c b/libpskc/parser.c +index b1f3245..9a1e925 100644 +--- a/libpskc/parser.c ++++ b/libpskc/parser.c +@@ -28,6 +28,7 @@ + #include "internal.h" + + #include <string.h> ++#include <stdlib.h> /* malloc, strtoul */ + #include "base64.h" + + static void +-- +2.43.0 + diff --git a/sys-auth/oath-toolkit/oath-toolkit-2.6.9.ebuild b/sys-auth/oath-toolkit/oath-toolkit-2.6.9.ebuild index 9ddeb896163e..d7c6b3404ba0 100644 --- a/sys-auth/oath-toolkit/oath-toolkit-2.6.9.ebuild +++ b/sys-auth/oath-toolkit/oath-toolkit-2.6.9.ebuild @@ -31,6 +31,10 @@ QA_CONFIG_IMPL_DECL_SKIP=( MIN # glibc fp ) +PATCHES=( + "${FILESDIR}"/${P}-Fix-build-failure-noticed-on-ArchLinux-xmlsec.patch +) + src_configure() { local myeconfargs=( --cache-file="${S}"/config.cache |