Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

games-roguelike/cataclysm-dda: fixes #111

Merged
merged 2 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions games-roguelike/cataclysm-dda/cataclysm-dda-9999-r9.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,11 @@ REQUIRED_USE="
pch? ( ^^ ( ncurses sdl ) )
sound? ( sdl )
"

# Note that, while GCC also supports LTO via the gold linker, Portage appears
# to provide no way of validating the current "gcc" to link with gold. *shrug*
IDEPEND="dev-util/desktop-file-utils"
BDEPEND="
clang? (
sys-devel/clang
debug? ( sys-devel/clang-runtime[sanitize] )
lto? ( sys-devel/llvm[gold] )
)
!clang? (
sys-devel/gcc[cxx]
Expand Down Expand Up @@ -98,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 Expand Up @@ -258,7 +262,10 @@ src_compile() {
use clang && CATACLYSM_EMAKE_NCURSES+=( CLANG=1 )

# If enabling link time optimization, do so.
use lto && CATACLYSM_EMAKE_NCURSES+=( LTO=1 )
# Use of the Gold linker is optional, but offers no improvement with LTO
# over BFD and is in bitrot; here we disable Makefile's preference for it.
# Alternate linkers can/should be controlled via /etc/portage/package.env.
use lto && CATACLYSM_EMAKE_NCURSES+=( LTO=1 GOLD=0 )

# If enabling debugging-specific facilities, do so. Specifically,
# * "RELEASE=0", disabling release-specific optimizations.
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>