From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9CF9815808E for ; Tue, 26 Apr 2022 04:13:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D048CE076B; Tue, 26 Apr 2022 04:13:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85FCBE076B for ; Tue, 26 Apr 2022 04:13:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 600A1341A89 for ; Tue, 26 Apr 2022 04:13:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D3A64177 for ; Tue, 26 Apr 2022 04:13:11 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1650946381.b17a1ad38a204f915a59f2df1fb63b3029d8fc43.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-fps/yamagi-quake2/, games-fps/yamagi-quake2/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-fps/yamagi-quake2/files/yamagi-quake2-8.01-execinfo.patch games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild X-VCS-Directories: games-fps/yamagi-quake2/ games-fps/yamagi-quake2/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b17a1ad38a204f915a59f2df1fb63b3029d8fc43 X-VCS-Branch: master Date: Tue, 26 Apr 2022 04:13:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 065e20f9-6209-4070-80dd-ab1bbabc20c7 X-Archives-Hash: a5dcc4eecbead8dfee9b7b6960c7ad2e commit: b17a1ad38a204f915a59f2df1fb63b3029d8fc43 Author: Alexander Tsoy tsoy me> AuthorDate: Mon Apr 25 22:04:00 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Apr 26 04:13:01 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b17a1ad3 games-fps/yamagi-quake2: fix musl build Closes: https://bugs.gentoo.org/831793 Signed-off-by: Alexander Tsoy tsoy.me> Closes: https://github.com/gentoo/gentoo/pull/25204 Signed-off-by: Sam James gentoo.org> .../files/yamagi-quake2-8.01-execinfo.patch | 49 ++++++++++++++++++++++ games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild | 3 ++ 2 files changed, 52 insertions(+) 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 new file mode 100644 index 000000000000..40de2342fa8e --- /dev/null +++ b/games-fps/yamagi-quake2/files/yamagi-quake2-8.01-execinfo.patch @@ -0,0 +1,49 @@ +From e4a23de95ac1b1333a8f349a1ead82999bca3862 Mon Sep 17 00:00:00 2001 +From: Alexander Tsoy +Date: Sun, 17 Apr 2022 17:07:28 +0300 +Subject: [PATCH] build: Make execinfo optional + +--- + Makefile | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Makefile b/Makefile +index 3f9d72ce..99048a82 100644 +--- a/Makefile ++++ b/Makefile +@@ -62,6 +62,8 @@ WITH_SYSTEMWIDE:=no + # MUST NOT be surrounded by quotation marks! + WITH_SYSTEMDIR:="" + ++WITH_EXECINFO:=yes ++ + # This will set the build options to create an MacOS .app-bundle. + # The app-bundle itself will not be created, but the runtime paths + # will be set to expect the game-data in *.app/ +@@ -406,6 +408,7 @@ config: + @echo "WITH_RPATH = $(WITH_RPATH)" + @echo "WITH_SYSTEMWIDE = $(WITH_SYSTEMWIDE)" + @echo "WITH_SYSTEMDIR = $(WITH_SYSTEMDIR)" ++ @echo "WITH_EXECINFO = $(WITH_EXECINFO)" + @echo "============================" + @echo "" + +@@ -492,6 +495,7 @@ release/quake2 : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"libopenal.so.1 + endif + endif + ++ifeq ($(WITH_EXECINFO),yes) + ifeq ($(YQ2_OSTYPE), Linux) + release/quake2 : CFLAGS += -DHAVE_EXECINFO + endif +@@ -523,6 +527,7 @@ ifeq ($(YQ2_OSTYPE), Haiku) + release/quake2 : CFLAGS += -DHAVE_EXECINFO + release/quake2 : LDLIBS += -lexecinfo + endif ++endif + + ifeq ($(WITH_RPATH),yes) + ifeq ($(YQ2_OSTYPE), Darwin) +-- +2.35.1 + diff --git a/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild b/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild index 2b7bbeeab057..12f94411a485 100644 --- a/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild +++ b/games-fps/yamagi-quake2/yamagi-quake2-8.01.ebuild @@ -43,6 +43,8 @@ DEPEND="${RDEPEND} client? ( vulkan? ( dev-util/vulkan-headers ) ) " +PATCHES=( "${FILESDIR}"/${PN}-8.01-execinfo.patch ) + DOCS=( CHANGELOG README.md doc ) src_compile() { @@ -51,6 +53,7 @@ src_compile() { local targets=( game ) local emakeargs=( VERBOSE=1 + WITH_EXECINFO=$(usex elibc_musl no yes) WITH_SYSTEMWIDE=yes WITH_SYSTEMDIR="${EPREFIX}"/usr/share/quake2 WITH_OPENAL=$(usex openal)