From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id DA5E91581EE for ; Mon, 24 Mar 2025 07:34:48 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C2B6834344E for ; Mon, 24 Mar 2025 07:34:48 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id EDA821103B8; Mon, 24 Mar 2025 07:34:44 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E6F5E1104AD for ; Mon, 24 Mar 2025 07:34:44 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9523F34329F for ; Mon, 24 Mar 2025 07:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C88E91EEA for ; Mon, 24 Mar 2025 07:34:42 +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: <1742801652.8dc4c36d3c72ea61db29ba394a555be801893603.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/audacity/files/, media-sound/audacity/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/audacity/audacity-3.4.2-r1.ebuild media-sound/audacity/files/audacity-3.4.2-do-not-include-template-for-clang-compiler.patch X-VCS-Directories: media-sound/audacity/files/ media-sound/audacity/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8dc4c36d3c72ea61db29ba394a555be801893603 X-VCS-Branch: master Date: Mon, 24 Mar 2025 07:34:42 +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: 170e6e2f-06e9-4aef-826e-33926047b242 X-Archives-Hash: 2fe27a1ea33a03eb41f12a80d87851c6 commit: 8dc4c36d3c72ea61db29ba394a555be801893603 Author: Z. Liu gmail com> AuthorDate: Tue Jan 21 06:13:09 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 24 07:34:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc4c36d media-sound/audacity: fixed build w/ clang Closes: https://bugs.gentoo.org/915041 Signed-off-by: Z. Liu gmail.com> Closes: https://github.com/gentoo/gentoo/pull/40244 Signed-off-by: Sam James gentoo.org> media-sound/audacity/audacity-3.4.2-r1.ebuild | 5 ++++- ...o-not-include-template-for-clang-compiler.patch | 24 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/media-sound/audacity/audacity-3.4.2-r1.ebuild b/media-sound/audacity/audacity-3.4.2-r1.ebuild index 5e345770b011..2d182f4586b8 100644 --- a/media-sound/audacity/audacity-3.4.2-r1.ebuild +++ b/media-sound/audacity/audacity-3.4.2-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -138,6 +138,9 @@ PATCHES=( # Fix build with USE="-lv2" "${FILESDIR}/audacity-3.4.2-fix-build-with-use-lv2-off.patch" + + # Fix build with clang, undefined reference to `typeinfo for wxNavigationEnabled' + "${FILESDIR}/audacity-3.4.2-do-not-include-template-for-clang-compiler.patch" ) src_prepare() { diff --git a/media-sound/audacity/files/audacity-3.4.2-do-not-include-template-for-clang-compiler.patch b/media-sound/audacity/files/audacity-3.4.2-do-not-include-template-for-clang-compiler.patch new file mode 100644 index 000000000000..c0dc7ecf3a8d --- /dev/null +++ b/media-sound/audacity/files/audacity-3.4.2-do-not-include-template-for-clang-compiler.patch @@ -0,0 +1,24 @@ +https://github.com/audacity/audacity/issues/4614 + +When compile w/ clang, link failed with: + + ld.lld: error: undefined symbol: typeinfo for wxNavigationEnabled + +so disable "extern ..." if compiler is clang + +see also gentoo bug: https://bugs.gentoo.org/915041 + +diff --git a/src/ListNavigationPanel.h b/src/ListNavigationPanel.h +index 1618d78..e04cc23 100644 +--- a/src/ListNavigationPanel.h ++++ b/src/ListNavigationPanel.h +@@ -13,7 +13,9 @@ + #include + #include + ++#if !defined(__clang__) + extern template class WXDLLIMPEXP_CORE wxNavigationEnabled; ++#endif + + #include "ListNavigationEnabled.h" +