From 82da8d613add994e937b0eb28b5da93b5a5a7d46 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 19 Oct 2026 22:10:49 -0400 Subject: [PATCH] games-server/crossfire-server: fix automagic dependency on python2 There is a python plugin. Nominally, it supports either python2/python3, in practice Gentoo doesn't support python2 and upstream embeds python but this code predates python 3.8 and therefore python3-embed.pc Upstream is still active, the most recent commit is only from last week. It even supports python3-embed (and drops python2 support). They just haven't released a new version since January 2021. Fixes -Werror=strict-aliasing violations caused by the fact that python 2.7 is, in fact, that bad and /usr/include/python2.7/object.h is the who that dunnit. Closes: https://bugs.gentoo.org/955410 Signed-off-by: Eli Schwartz --- ...r-1.75.0-r1.ebuild => crossfire-server-1.75.0-r2.ebuild} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename games-server/crossfire-server/{crossfire-server-1.75.0-r1.ebuild => crossfire-server-1.75.0-r2.ebuild} (81%) diff --git a/games-server/crossfire-server/crossfire-server-1.75.0-r1.ebuild b/games-server/crossfire-server/crossfire-server-1.75.0-r2.ebuild similarity index 81% rename from games-server/crossfire-server/crossfire-server-1.75.0-r1.ebuild rename to games-server/crossfire-server/crossfire-server-1.75.0-r2.ebuild index b95322dd9d643..b195ddd948862 100644 --- a/games-server/crossfire-server/crossfire-server-1.75.0-r1.ebuild +++ b/games-server/crossfire-server/crossfire-server-1.75.0-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -31,6 +31,10 @@ PATCHES=( "${FILESDIR}/${P}-incompatible-func-pointers.patch" ) src_prepare() { default + # Automagically detects python2/python3. In the latter case, without + # python_setup it goes nowhere anyway. For modern python it needs python3-embed. + sed -i 's/python-2.7/notpython-do-not-find/' configure configure.ac || die + # bug #236205 rm -f "${WORKDIR}"/maps/Info/combine.pl || die # ln -s "${WORKDIR}"/arch "${S}"/lib || die