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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AD9DE158042 for ; Thu, 7 Nov 2024 23:44:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3F18E0940; Thu, 7 Nov 2024 23:44:23 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 84A5EE0940 for ; Thu, 7 Nov 2024 23:44:23 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A4B3342FEC for ; Thu, 7 Nov 2024 23:44:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AE7341F7A for ; Thu, 7 Nov 2024 23:44:19 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1730987574.94a997bfbee0ba9ebb39f4fc8a9837ee5fbacb95.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: games-fps/assaultcube/files/, games-fps/assaultcube/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-fps/assaultcube/assaultcube-1.3.0.2-r1.ebuild games-fps/assaultcube/assaultcube-1.3.0.2.ebuild games-fps/assaultcube/files/assaultcube-1.3.0.2-unset-variables.patch X-VCS-Directories: games-fps/assaultcube/files/ games-fps/assaultcube/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 94a997bfbee0ba9ebb39f4fc8a9837ee5fbacb95 X-VCS-Branch: master Date: Thu, 7 Nov 2024 23:44:19 +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: 650b42bc-e2c7-48ad-a798-89b0c3f064c4 X-Archives-Hash: b993d839c155cc687ef4244082bccbdf commit: 94a997bfbee0ba9ebb39f4fc8a9837ee5fbacb95 Author: Takuya Wakazono gmail com> AuthorDate: Thu Nov 7 13:52:54 2024 +0000 Commit: David Roman gmail com> CommitDate: Thu Nov 7 13:52:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=94a997bf games-fps/assaultcube: fix compile failure with clang Closes: https://bugs.gentoo.org/921915 Signed-off-by: Takuya Wakazono gmail.com> ....3.0.2.ebuild => assaultcube-1.3.0.2-r1.ebuild} | 6 ++-- .../assaultcube-1.3.0.2-unset-variables.patch | 32 ++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2-r1.ebuild similarity index 94% rename from games-fps/assaultcube/assaultcube-1.3.0.2.ebuild rename to games-fps/assaultcube/assaultcube-1.3.0.2-r1.ebuild index 25001c061..0301e81c0 100644 --- a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild +++ b/games-fps/assaultcube/assaultcube-1.3.0.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -20,16 +20,18 @@ RDEPEND=" media-libs/libsdl2[opengl] media-libs/sdl2-image[jpeg,png] x11-libs/libX11 + media-libs/libglvnd[X] media-libs/libogg media-libs/libvorbis media-libs/openal " DEPEND="${RDEPEND}" -BDEPEND="sys-devel/clang" PATCHES=( "${FILESDIR}/${PN}-1.3.0.2-respect-ldflags.patch" # a script which checks for required libs and certain parts of the game "${FILESDIR}/${PN}-1.3.0.2-fix-checkinstall.patch" + # bug #921915 + "${FILESDIR}/${PN}-1.3.0.2-unset-variables.patch" "${FILESDIR}/0001-Fix-unnecessary-rebuild-on-make-install.patch" "${FILESDIR}/0002-Don-t-configure-libenet-in-Makefile.patch" ) diff --git a/games-fps/assaultcube/files/assaultcube-1.3.0.2-unset-variables.patch b/games-fps/assaultcube/files/assaultcube-1.3.0.2-unset-variables.patch new file mode 100644 index 000000000..1bc54b38c --- /dev/null +++ b/games-fps/assaultcube/files/assaultcube-1.3.0.2-unset-variables.patch @@ -0,0 +1,32 @@ +Respect user preferences during the build and fix the Clang build by +disabling PCH. +https://bugs.gentoo.org/921915 +--- a/source/src/Makefile ++++ b/source/src/Makefile +@@ -6,7 +6,6 @@ + # found to have been caused by the g++ compiler in the past. This seems to have + # been fixed now by relaxing the optimization that g++ does, so although we'll + # continue using clang++ (just in case), you can use g++ if you prefer. +-CXX=clang++ + + # call like 'DEBUGBUILD=1 make' to compile a debug version of AssaultCube. + ifdef DEBUGBUILD +@@ -34,10 +33,8 @@ ifeq ($(ACDEBUG),yes) + endif + + ifneq (,$(findstring clang,$(CXX))) +- CXXFLAGS= -O3 -fomit-frame-pointer + override CXXFLAGS+= -Wall -fsigned-char + else +- CXXFLAGS= -O3 -fomit-frame-pointer + override CXXFLAGS+= -Wall -fsigned-char -ffast-math -rdynamic -Wno-format-zero-length + ifeq "$(shell expr 'gcc -dumpversion' \>= 8)" "1" + override CXXFLAGS+= -Wno-stringop-truncation +@@ -182,7 +179,6 @@ rendermodel.o: rendermodel.cpp + $(CXX) $(CXXFLAGS) -c -o $@ $(subst -standalone.o,.cpp,$@) + + $(CLIENT_OBJS): CXXFLAGS += $(CLIENT_INCLUDES) +-$(CLIENT_OBJS): $(CLIENT_PCH) + $(SERVER_OBJS): CXXFLAGS += $(SERVER_INCLUDES) + $(filter-out $(SERVER_OBJS),$(MASTER_OBJS)): CXXFLAGS += $(SERVER_INCLUDES) +