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 BC25B158094 for ; Tue, 21 Jun 2022 04:33:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97856E0794; Tue, 21 Jun 2022 04:33:56 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 48613E0794 for ; Tue, 21 Jun 2022 04:33:56 +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 65201341606 for ; Tue, 21 Jun 2022 04:33:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD3A44C3 for ; Tue, 21 Jun 2022 04:33:53 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1655786014.cfbf63b4f3849bd447d93415f2b760d779fa9f16.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/chuck/, media-sound/chuck/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/chuck/chuck-1.4.1.1.ebuild media-sound/chuck/files/chuck-1.4.1.1-makefile.patch X-VCS-Directories: media-sound/chuck/ media-sound/chuck/files/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: cfbf63b4f3849bd447d93415f2b760d779fa9f16 X-VCS-Branch: master Date: Tue, 21 Jun 2022 04:33:53 +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: 23253277-1a18-47b2-ba02-422ea85a99ea X-Archives-Hash: 4cde6cd28c776906ec2e7c350b2384fe commit: cfbf63b4f3849bd447d93415f2b760d779fa9f16 Author: Miroslav Šulc gentoo org> AuthorDate: Tue Jun 21 04:33:34 2022 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Tue Jun 21 04:33:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfbf63b4 media-sound/chuck: fixed hardcoded toolchain Closes: https://bugs.gentoo.org/724756 Signed-off-by: Miroslav Šulc gentoo.org> media-sound/chuck/chuck-1.4.1.1.ebuild | 4 +- .../chuck/files/chuck-1.4.1.1-makefile.patch | 50 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/media-sound/chuck/chuck-1.4.1.1.ebuild b/media-sound/chuck/chuck-1.4.1.1.ebuild index 67ca0bc1a185..7f3e4f502a22 100644 --- a/media-sound/chuck/chuck-1.4.1.1.ebuild +++ b/media-sound/chuck/chuck-1.4.1.1.ebuild @@ -25,14 +25,14 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-1.4.0.0-hid-smc.patch - "${FILESDIR}"/${PN}-1.4.0.0-makefile.patch + "${FILESDIR}"/${P}-makefile.patch ) compile_backend() { backend=$1 pushd "${S}/src" &>/dev/null || die einfo "Compiling against ${backend}" - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" linux-${backend} + emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getCXX)" linux-${backend} mv chuck{,-${backend}} || die emake clean popd &>/dev/null || die diff --git a/media-sound/chuck/files/chuck-1.4.1.1-makefile.patch b/media-sound/chuck/files/chuck-1.4.1.1-makefile.patch new file mode 100644 index 000000000000..98147cf9a81f --- /dev/null +++ b/media-sound/chuck/files/chuck-1.4.1.1-makefile.patch @@ -0,0 +1,50 @@ +diff --git a/src/core/makefile.x/makefile.alsa b/src/core/makefile.x/makefile.alsa +index 5694257..577dd91 100644 +--- a/src/core/makefile.x/makefile.alsa ++++ b/src/core/makefile.x/makefile.alsa +@@ -1,4 +1,4 @@ + +-CFLAGS+= -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ ++CFLAGS+= -D__LINUX_ALSA__ -D__PLATFORM_LINUX__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -fPIC + LDFLAGS+= -lasound -lstdc++ -ldl -lm -lsndfile -lpthread + +diff --git a/src/core/makefile.x/makefile.jack b/src/core/makefile.x/makefile.jack +index 86b2511..442708b 100644 +--- a/src/core/makefile.x/makefile.jack ++++ b/src/core/makefile.x/makefile.jack +@@ -1,4 +1,4 @@ + +-CFLAGS+= -D__UNIX_JACK__ -D__PLATFORM_LINUX__ -O3 -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ ++CFLAGS+= -D__UNIX_JACK__ -D__PLATFORM_LINUX__ -fno-strict-aliasing -D__CK_SNDFILE_NATIVE__ -fPIC + LDFLAGS+= -lasound -ljack -lstdc++ -ldl -lm -lsndfile -lpthread + +diff --git a/src/makefile b/src/makefile +index f52f0c2..310991a 100644 +--- a/src/makefile ++++ b/src/makefile +@@ -76,11 +76,11 @@ CK_VERSION=1.4.1.1 + + + ########################### COMPILATION TOOLS ################################## +-LEX=flex +-YACC=bison +-CC=gcc +-CXX=g++ +-LD=g++ ++LEX?=flex ++YACC?=bison ++CC?=gcc ++CXX?=g++ ++LD?=g++ + + + ############################# COMPILER FLAGS ################################### +@@ -92,8 +92,6 @@ endif + + ifneq ($(CHUCK_DEBUG),) + CFLAGS+= -g +-else +-CFLAGS+= -O3 + endif + + ifneq ($(USE_64_BIT_SAMPLE),)