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 DBE44158086 for ; Wed, 22 Dec 2021 03:57:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 92A112BC028; Wed, 22 Dec 2021 03:57:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 pigeon.gentoo.org (Postfix) with ESMTPS id 69A002BC028 for ; Wed, 22 Dec 2021 03:57:18 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5C52E342ED3 for ; Wed, 22 Dec 2021 03:57:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C3AB262 for ; Wed, 22 Dec 2021 03:57:13 +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: <1640142059.b48871811b67831bb9657d653af8b338239adbda.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/timidity++/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/timidity++/timidity++-2.15.0-r2.ebuild X-VCS-Directories: media-sound/timidity++/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: b48871811b67831bb9657d653af8b338239adbda X-VCS-Branch: master Date: Wed, 22 Dec 2021 03:57:13 +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: c4111da7-0119-44cd-a999-41e9e20c9c84 X-Archives-Hash: 5e3eeb86005f651d3f209df1470080e4 commit: b48871811b67831bb9657d653af8b338239adbda Author: Sam James gentoo org> AuthorDate: Wed Dec 22 03:00:59 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Dec 22 03:00:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4887181 media-sound/timidity++: add configure workarounds - Rename configure.in -> configure.ac - Avoid dodgy configure tests (written for old autoconf, fragile) Closes: https://bugs.gentoo.org/665600 Signed-off-by: Sam James gentoo.org> media-sound/timidity++/timidity++-2.15.0-r2.ebuild | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/media-sound/timidity++/timidity++-2.15.0-r2.ebuild b/media-sound/timidity++/timidity++-2.15.0-r2.ebuild index b776c4681ac2..f0377e343868 100644 --- a/media-sound/timidity++/timidity++-2.15.0-r2.ebuild +++ b/media-sound/timidity++/timidity++-2.15.0-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools desktop elisp-common systemd toolchain-funcs xdg +inherit autotools desktop elisp-common flag-o-matic systemd toolchain-funcs xdg MY_PV="${PV/_/-}" MY_P="TiMidity++-${MY_PV}" @@ -69,6 +69,9 @@ PATCHES=( src_prepare() { default + + mv configure.{in,ac} || die + eautoreconf } @@ -79,6 +82,18 @@ src_configure() { # List by preference local xaw_provider=$(usex Xaw3d 'xaw3d' 'xaw') + # configure workarounds: configure.in here is written for an old version + # of autoconf and upstream seems quite dead. + # + # 1. Avoid janky configure test breaking + # ```checking for sys/wait.h that is POSIX.1 compatible... yes + # ./configure: 7995: test: =: unexpected operator``` + export ac_cv_header_sys_time_h=yes + # + # 2. And yes, we expect standard header locations (this configure test is flaky for us too) + # This avoids a bunch of implicit decl. errors which only happen with USE=-Xaw3d(?!) + append-cppflags -DSTDC_HEADERS + local myeconfargs=( --localstatedir=/var/state/${PN} --with-module-dir="${EPREFIX}/usr/share/timidity"