mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
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 <eschwartz@gentoo.org>
This commit is contained in:
+5
-1
@@ -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
|
||||
Reference in New Issue
Block a user