diff options
author | Sam James <sam@gentoo.org> | 2022-10-18 21:27:13 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-19 00:46:09 +0100 |
commit | 218bdc5f36d2a1408317ff7c61c5bbec48c60898 (patch) | |
tree | 5db161c8e3e28eec9d61d0dbec526b14f5a062b3 /dev-util/tinlink | |
parent | sys-apps/man-pages: add 6.01, drop 6.00 (diff) | |
download | gentoo-218bdc5f36d2a1408317ff7c61c5bbec48c60898.tar.gz gentoo-218bdc5f36d2a1408317ff7c61c5bbec48c60898.tar.bz2 gentoo-218bdc5f36d2a1408317ff7c61c5bbec48c60898.zip |
dev-util/tinlink: fix build w/ Clang 16
Closes: https://bugs.gentoo.org/875446
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/tinlink')
-rw-r--r-- | dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch | 15 | ||||
-rw-r--r-- | dev-util/tinlink/tinlink-1.0.0-r2.ebuild (renamed from dev-util/tinlink/tinlink-1.0.0-r1.ebuild) | 8 |
2 files changed, 21 insertions, 2 deletions
diff --git a/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch b/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch new file mode 100644 index 000000000000..6b4f8516b65a --- /dev/null +++ b/dev-util/tinlink/files/tinlink-1.0.0-Add-missing-include-for-strlen.patch @@ -0,0 +1,15 @@ +From 38a37394194794217371d1213424646a77674ce6 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Tue, 18 Oct 2022 21:26:25 +0100 +Subject: [PATCH] Add missing include for strlen + +--- a/tinlink.c ++++ b/tinlink.c +@@ -33,6 +33,7 @@ + #include <unistd.h> + #include <errno.h> + #include <stdlib.h> ++#include <string.h> + + #define DEFAULT_START (unsigned char *)(0x8000000+sizeof(Elf32_Ehdr)-8+sizeof(Elf32_Phdr)-2) + #define DEFAULT_OUTPUT "a.out" diff --git a/dev-util/tinlink/tinlink-1.0.0-r1.ebuild b/dev-util/tinlink/tinlink-1.0.0-r2.ebuild index 2a2612b009a4..5c78fd98757c 100644 --- a/dev-util/tinlink/tinlink-1.0.0-r1.ebuild +++ b/dev-util/tinlink/tinlink-1.0.0-r2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit toolchain-funcs @@ -13,6 +13,10 @@ LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" +PATCHES=( + "${FILESDIR}"/${PN}-1.0.0-Add-missing-include-for-strlen.patch +) + src_prepare() { default rm Makefile || die |