Skip to content

Commit

Permalink
games-roguelike/cataclysm-dda: fix for GCC 13.
Browse files Browse the repository at this point in the history
cf. CleverRaven/Cataclysm-DDA#66195

This packages a patch from the upstream PR, which simply includes the
`cstdint` library in a header file. Due to changes in the way C++
Standard Library headers are organized in GCC 13, the build fails
without this include.

Note that current live builds and future release builds already include
the fix. This commit should be reverted when release "0.G" is
superseded and this backporting patch is no longer required.
  • Loading branch information
nethershaw authored and leycec committed May 28, 2024
1 parent 64bc47d commit 364890b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions games-roguelike/cataclysm-dda/cataclysm-dda-9999-r9.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ else
KEYWORDS="~amd64 ~x86"

S="${WORKDIR}/Cataclysm-DDA-${MY_PV}"

# Fixed upstream for next release, but GCC13 still breaks in this one.
# cf. https://github.com/CleverRaven/Cataclysm-DDA/pull/66195
if [[ ${PV} == "0.9g" ]]; then
PATCHES=(
"${FILESDIR}/${PN}-0.9g-gcc13-compat.patch"
)
fi
fi

src_prepare() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/src/translation_document.h b/src/translation_document.h
index 1e20f6629a09e..71ebb499a9ab5 100644
--- a/src/translation_document.h
+++ b/src/translation_document.h
@@ -4,6 +4,7 @@

#if defined(LOCALIZE)

+#include <cstdint>
#include <memory>
#include <string>
#include <vector>

0 comments on commit 364890b

Please sign in to comment.