commit: 2ea07b25e4bdcbf5af59008efddf89e0e7525711 Author: Lukas Schmelting <l3s8g <AT> posteo <DOT> eu> AuthorDate: Sat Nov 26 15:16:23 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 6 09:30:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea07b25
dev-util/gperf: clang-16 -Wregister fix Bug: https://bugs.gentoo.org/882787 Signed-off-by: Lukas Schmelting <l3s8g <AT> posteo.eu> Closes: https://github.com/gentoo/gentoo/pull/28441 Signed-off-by: Sam James <sam <AT> gentoo.org> .../gperf/files/gperf-3.1-clang-16-wregister.patch | 21 +++++++++++++++++++++ dev-util/gperf/gperf-3.1-r1.ebuild | 1 + 2 files changed, 22 insertions(+) diff --git a/dev-util/gperf/files/gperf-3.1-clang-16-wregister.patch b/dev-util/gperf/files/gperf-3.1-clang-16-wregister.patch new file mode 100644 index 000000000000..4bbcca6d57e0 --- /dev/null +++ b/dev-util/gperf/files/gperf-3.1-clang-16-wregister.patch @@ -0,0 +1,21 @@ +https://bugs.gentoo.org/882787 +https://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commit;h=a63b830554920476881837eeacd4a6b507632b19 + +From a63b830554920476881837eeacd4a6b507632b19 Mon Sep 17 00:00:00 2001 +From: Bruno Haible <[email protected]> +Date: Sun, 30 Aug 2020 12:36:15 +0200 +Subject: [PATCH] Make the code C++17 compliant. + +* lib/getline.cc (getstr): Don't use the 'register' keyword. + +--- a/lib/getline.cc ++++ b/lib/getline.cc +@@ -55,7 +55,7 @@ getstr (char **lineptr, size_t *n, FILE *stream, char terminator, size_t offset) + + for (;;) + { +- register int c = getc (stream); ++ int c = getc (stream); + + /* We always want at least one char left in the buffer, since we + always (unless we get an error while reading the first char) diff --git a/dev-util/gperf/gperf-3.1-r1.ebuild b/dev-util/gperf/gperf-3.1-r1.ebuild index bdabce4d841e..093d0f549a5e 100644 --- a/dev-util/gperf/gperf-3.1-r1.ebuild +++ b/dev-util/gperf/gperf-3.1-r1.ebuild @@ -13,6 +13,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~ PATCHES=( "${FILESDIR}"/${P}-strncmp-decl-mismatch.patch + "${FILESDIR}"/${P}-clang-16-wregister.patch ) src_prepare() {
