commit: b8d0888f0c70069afc41163d0ad578fc620cddd7 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Feb 6 22:19:08 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Feb 6 22:19:08 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8d0888f
sci-misc/lttoolbox: fix build w/ gcc 13 (or musl) Closes: https://bugs.gentoo.org/889400 Signed-off-by: Sam James <sam <AT> gentoo.org> .../files/lttoolbox-3.7.1-cstdint-include.patch | 21 +++++++++++++++++++++ sci-misc/lttoolbox/lttoolbox-3.7.1.ebuild | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/sci-misc/lttoolbox/files/lttoolbox-3.7.1-cstdint-include.patch b/sci-misc/lttoolbox/files/lttoolbox-3.7.1-cstdint-include.patch new file mode 100644 index 000000000000..c9fa2fda3aca --- /dev/null +++ b/sci-misc/lttoolbox/files/lttoolbox-3.7.1-cstdint-include.patch @@ -0,0 +1,21 @@ +https://github.com/apertium/lttoolbox/pull/173 + +From 8873eb40827179c821c4979563063200e144d129 Mon Sep 17 00:00:00 2001 +From: Sam James <[email protected]> +Date: Mon, 6 Feb 2023 22:16:49 +0000 +Subject: [PATCH] acx: Add missing <cstdint> include + +Needed for int32_t. Fixes build w/ musl but also likely gcc 13. + +Bug: https://bugs.gentoo.org/889400 +--- a/lttoolbox/acx.h ++++ b/lttoolbox/acx.h +@@ -18,6 +18,7 @@ + #define _ACXPARSEUTIL_ + + #include <lttoolbox/sorted_vector.hpp> ++#include <cstdint> + #include <map> + + std::map<int32_t, sorted_vector<int32_t>> readACX(const char* file); + diff --git a/sci-misc/lttoolbox/lttoolbox-3.7.1.ebuild b/sci-misc/lttoolbox/lttoolbox-3.7.1.ebuild index f06d069fc3c1..93544468e10d 100644 --- a/sci-misc/lttoolbox/lttoolbox-3.7.1.ebuild +++ b/sci-misc/lttoolbox/lttoolbox-3.7.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -24,6 +24,7 @@ BDEPEND="virtual/pkgconfig" PATCHES=( "${FILESDIR}"/${PN}-3.7.1-bashism.patch + "${FILESDIR}"/${PN}-3.7.1-cstdint-include.patch ) src_prepare() {
