commit: f563dd8cfd28e976257ff7419600656859af238d Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Oct 24 18:55:29 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Oct 24 19:21:06 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f563dd8c
dev-util/sgb: fix build w/ Clang 16 Closes: https://bugs.gentoo.org/832835 Signed-off-by: Sam James <sam <AT> gentoo.org> .../sgb-20090810-Fix-build-with-Clang-16.patch | 46 ++++++++++++++++++++++ ...{sgb-20090810.ebuild => sgb-20090810-r1.ebuild} | 3 +- 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch b/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch new file mode 100644 index 000000000000..d26e26a42e1e --- /dev/null +++ b/dev-util/sgb/files/sgb-20090810-Fix-build-with-Clang-16.patch @@ -0,0 +1,46 @@ +From 5d0845e935d9b8d4174b9d98dbc123ec5d5a3460 Mon Sep 17 00:00:00 2001 +From: Sam James <s...@gentoo.org> +Date: Mon, 24 Oct 2022 19:54:02 +0100 +Subject: [PATCH] Fix build with Clang 16 + +Bug: https://bugs.gentoo.org/832835 +--- a/gb_graph.w ++++ b/gb_graph.w +@@ -40,11 +40,8 @@ programs at a higher level via the system loading routine. Here is + the general outline of \.{gb\_graph.c}: + + @p +-#ifdef SYSV + #include <string.h> +-#else + #include <strings.h> +-#endif + #include <stdio.h> + #include <stdlib.h> + @h@# +@@ -63,11 +60,8 @@ interfere with GraphBase use of a useful identifier. We scotch that. + @(gb_graph.h@>= + #include <stdio.h> + #include <stdlib.h> +-#ifdef SYSV + #include <string.h> +-#else + #include <strings.h> +-#endif + #undef min + @<Type declarations@>@; + +--- a/gb_io.w ++++ b/gb_io.w +@@ -92,11 +92,8 @@ occasion to use some of the standard string operations. + + @<Header...@>= + #include <stdio.h> +-#ifdef SYSV + #include <string.h> +-#else + #include <strings.h> +-#endif + + @* Inputting a line. The {\sc GB\_\,IO} routines get their input from + an array called |buffer|. This array is internal to {\sc diff --git a/dev-util/sgb/sgb-20090810.ebuild b/dev-util/sgb/sgb-20090810-r1.ebuild similarity index 92% rename from dev-util/sgb/sgb-20090810.ebuild rename to dev-util/sgb/sgb-20090810-r1.ebuild index 4f6d61def77b..8f0ddf30fd4d 100644 --- a/dev-util/sgb/sgb-20090810.ebuild +++ b/dev-util/sgb/sgb-20090810-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -19,6 +19,7 @@ S="${WORKDIR}" PATCHES=( "${FILESDIR}"/sgb-20030623-parallel-make-fix.patch "${FILESDIR}"/sgb-20030623-destdir.patch + "${FILESDIR}"/sgb-20090810-Fix-build-with-Clang-16.patch ) src_compile() {