commit: 876ac8a9e4b171108f6f0a55161bcf1ab9034339 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Mon Mar 10 11:40:46 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Mon Mar 10 11:59:31 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=876ac8a9
dev-lang/luau: add cstdint include Bug: https://github.com/luau-lang/luau/pull/1720 Closes: https://bugs.gentoo.org/938122 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> .../luau/files/luau-0.653-TypedAllocator-cpp.patch | 28 ++++++++++++++++++++++ dev-lang/luau/luau-0.653.ebuild | 1 + dev-lang/luau/luau-0.662.ebuild | 1 + 3 files changed, 30 insertions(+) diff --git a/dev-lang/luau/files/luau-0.653-TypedAllocator-cpp.patch b/dev-lang/luau/files/luau-0.653-TypedAllocator-cpp.patch new file mode 100644 index 000000000000..8c94d1f40731 --- /dev/null +++ b/dev-lang/luau/files/luau-0.653-TypedAllocator-cpp.patch @@ -0,0 +1,28 @@ +From 0d7ce033b5b4bc33cc02e85a8c56e23e68694211 Mon Sep 17 00:00:00 2001 +From: Kostadin Shishmanov <[email protected]> +Date: Mon, 10 Mar 2025 01:35:36 +0200 +Subject: [PATCH] Add #include <cstdint> to fix building with gcc 15 + +With gcc 15, the C++ Standard Library no longer includes other headers +that were internally used by the library. In luau's case the missing +header is <cstdint> + +Downstream Gentoo bug: https://bugs.gentoo.org/938122 +Signed-off-by: Kostadin Shishmanov <[email protected]> +--- + Analysis/src/TypedAllocator.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Analysis/src/TypedAllocator.cpp b/Analysis/src/TypedAllocator.cpp +index a2f49afbd..16c844e8d 100644 +--- a/Analysis/src/TypedAllocator.cpp ++++ b/Analysis/src/TypedAllocator.cpp +@@ -26,6 +26,8 @@ const size_t kPageSize = sysconf(_SC_PAGESIZE); + + #include <stdlib.h> + ++#include <cstdint> ++ + LUAU_FASTFLAG(DebugLuauFreezeArena) + + namespace Luau diff --git a/dev-lang/luau/luau-0.653.ebuild b/dev-lang/luau/luau-0.653.ebuild index dc166cc33eba..43a9a655af4f 100644 --- a/dev-lang/luau/luau-0.653.ebuild +++ b/dev-lang/luau/luau-0.653.ebuild @@ -25,6 +25,7 @@ SLOT="0" IUSE="static-libs test" RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch" ) DOCS=( CONTRIBUTING.md README.md SECURITY.md ) src_configure() { diff --git a/dev-lang/luau/luau-0.662.ebuild b/dev-lang/luau/luau-0.662.ebuild index 4e0e683860eb..4ff0bda23a21 100644 --- a/dev-lang/luau/luau-0.662.ebuild +++ b/dev-lang/luau/luau-0.662.ebuild @@ -25,6 +25,7 @@ SLOT="0" IUSE="static-libs test" RESTRICT="!test? ( test )" +PATCHES=( "${FILESDIR}/luau-0.653-TypedAllocator-cpp.patch" ) DOCS=( CONTRIBUTING.md README.md SECURITY.md ) src_configure() {
