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 3DA0F158087 for ; Thu, 13 Jan 2022 06:03:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DD84C2BC020; Thu, 13 Jan 2022 06:02:58 +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 9611E2BC01A for ; Thu, 13 Jan 2022 06:02:58 +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 4ACD7343418 for ; Thu, 13 Jan 2022 06:02:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A8AF296 for ; Thu, 13 Jan 2022 06:02:54 +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: <1642053748.832c88a650fc794fd5105723656f8dee55488cf8.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/phat/, media-libs/phat/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/phat/files/phat-0.4.1-libm-underlinking.patch media-libs/phat/phat-0.4.1-r2.ebuild X-VCS-Directories: media-libs/phat/files/ media-libs/phat/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 832c88a650fc794fd5105723656f8dee55488cf8 X-VCS-Branch: master Date: Thu, 13 Jan 2022 06:02:54 +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: f49b1e1a-46a5-4ad2-b173-c240bdcdcdcc X-Archives-Hash: 51edc0fffff56390362ef50091a26ae2 commit: 832c88a650fc794fd5105723656f8dee55488cf8 Author: Sam James gentoo org> AuthorDate: Thu Jan 13 06:02:22 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 13 06:02:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=832c88a6 media-libs/phat: update EAPI 6 -> 8, build with lld Was underlinking libm for e.g. exp(). Closes: https://bugs.gentoo.org/740162 Signed-off-by: Sam James gentoo.org> .../phat/files/phat-0.4.1-libm-underlinking.patch | 16 ++++++++ media-libs/phat/phat-0.4.1-r2.ebuild | 43 ++++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch b/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch new file mode 100644 index 000000000000..f6e55b9fa18b --- /dev/null +++ b/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch @@ -0,0 +1,16 @@ +From: Sam James +Date: Thu, 13 Jan 2022 06:00:11 +0000 +Subject: [PATCH] Fix underlinking against libm + +Bug: https://bugs.gentoo.org/740162 +--- a/configure.ac ++++ b/configure.ac +@@ -47,6 +47,8 @@ GTK_DOC_CHECK(1.0) + # misc checks + PKG_CHECK_MODULES(MISC, libgnomecanvas-2.0 x11) + ++AC_SEARCH_LIBS(exp, m) ++ + # set compilation flags + CFLAGS="$CFLAGS $GTK_CFLAGS $MISC_CFLAGS -Wall" + LIBS="$LIBS $GTK_LIBS $MISC_LIBS" diff --git a/media-libs/phat/phat-0.4.1-r2.ebuild b/media-libs/phat/phat-0.4.1-r2.ebuild new file mode 100644 index 000000000000..206b47e5d396 --- /dev/null +++ b/media-libs/phat/phat-0.4.1-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="PHAT is a collection of GTK+ widgets geared toward pro-audio apps" +HOMEPAGE="https://sourceforge.net/projects/phat.berlios/" +SRC_URI="mirror://sourceforge/phat.berlios/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug" + +RDEPEND="gnome-base/libgnomecanvas + x11-libs/gtk+:2 + x11-libs/libX11" +DEPEND="${RDEPEND}" +BDEPEND="dev-util/gtk-doc + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-underlinking.patch" + "${FILESDIR}/${P}-libm-underlinking.patch" +) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + econf $(use_enable debug) +} + +src_install() { + default + + find "${ED}" -name '*.la' -delete || die +}