Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/yamagi-quake2/, games-fps/yamagi-quake2/files/
Date: Tue, 26 Apr 2022 04:13:17
Message-Id: 1650946381.b17a1ad38a204f915a59f2df1fb63b3029d8fc43.sam@gentoo
1 commit: b17a1ad38a204f915a59f2df1fb63b3029d8fc43
2 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
3 AuthorDate: Mon Apr 25 22:04:00 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 04:13:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b17a1ad3
7
8 games-fps/yamagi-quake2: fix musl build
9
10 Closes: https://bugs.gentoo.org/831793
11
12 Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
13 Closes: https://github.com/gentoo/gentoo/pull/25204
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 .../files/yamagi-quake2-8.01-execinfo.patch | 49 ++++++++++++++++++++++
17 games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild | 3 ++
18 2 files changed, 52 insertions(+)
19
20 diff --git a/games-fps/yamagi-quake2/files/yamagi-quake2-8.01-execinfo.patch b/games-fps/yamagi-quake2/files/yamagi-quake2-8.01-execinfo.patch
21 new file mode 100644
22 index 000000000000..40de2342fa8e
23 --- /dev/null
24 +++ b/games-fps/yamagi-quake2/files/yamagi-quake2-8.01-execinfo.patch
25 @@ -0,0 +1,49 @@
26 +From e4a23de95ac1b1333a8f349a1ead82999bca3862 Mon Sep 17 00:00:00 2001
27 +From: Alexander Tsoy <alexander@××××.me>
28 +Date: Sun, 17 Apr 2022 17:07:28 +0300
29 +Subject: [PATCH] build: Make execinfo optional
30 +
31 +---
32 + Makefile | 5 +++++
33 + 1 file changed, 5 insertions(+)
34 +
35 +diff --git a/Makefile b/Makefile
36 +index 3f9d72ce..99048a82 100644
37 +--- a/Makefile
38 ++++ b/Makefile
39 +@@ -62,6 +62,8 @@ WITH_SYSTEMWIDE:=no
40 + # MUST NOT be surrounded by quotation marks!
41 + WITH_SYSTEMDIR:=""
42 +
43 ++WITH_EXECINFO:=yes
44 ++
45 + # This will set the build options to create an MacOS .app-bundle.
46 + # The app-bundle itself will not be created, but the runtime paths
47 + # will be set to expect the game-data in *.app/
48 +@@ -406,6 +408,7 @@ config:
49 + @echo "WITH_RPATH = $(WITH_RPATH)"
50 + @echo "WITH_SYSTEMWIDE = $(WITH_SYSTEMWIDE)"
51 + @echo "WITH_SYSTEMDIR = $(WITH_SYSTEMDIR)"
52 ++ @echo "WITH_EXECINFO = $(WITH_EXECINFO)"
53 + @echo "============================"
54 + @echo ""
55 +
56 +@@ -492,6 +495,7 @@ release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1
57 + endif
58 + endif
59 +
60 ++ifeq ($(WITH_EXECINFO),yes)
61 + ifeq ($(YQ2_OSTYPE), Linux)
62 + release/quake2 : CFLAGS += -DHAVE_EXECINFO
63 + endif
64 +@@ -523,6 +527,7 @@ ifeq ($(YQ2_OSTYPE), Haiku)
65 + release/quake2 : CFLAGS += -DHAVE_EXECINFO
66 + release/quake2 : LDLIBS += -lexecinfo
67 + endif
68 ++endif
69 +
70 + ifeq ($(WITH_RPATH),yes)
71 + ifeq ($(YQ2_OSTYPE), Darwin)
72 +--
73 +2.35.1
74 +
75
76 diff --git a/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild b/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild
77 index 2b7bbeeab057..12f94411a485 100644
78 --- a/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild
79 +++ b/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild
80 @@ -43,6 +43,8 @@ DEPEND="${RDEPEND}
81 client? ( vulkan? ( dev-util/vulkan-headers ) )
82 "
83
84 +PATCHES=( "${FILESDIR}"/${PN}-8.01-execinfo.patch )
85 +
86 DOCS=( CHANGELOG README.md doc )
87
88 src_compile() {
89 @@ -51,6 +53,7 @@ src_compile() {
90 local targets=( game )
91 local emakeargs=(
92 VERBOSE=1
93 + WITH_EXECINFO=$(usex elibc_musl no yes)
94 WITH_SYSTEMWIDE=yes
95 WITH_SYSTEMDIR="${EPREFIX}"/usr/share/quake2
96 WITH_OPENAL=$(usex openal)