diff options
author | Sam James <sam@gentoo.org> | 2021-12-22 03:00:59 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-22 03:00:59 +0000 |
commit | b48871811b67831bb9657d653af8b338239adbda (patch) | |
tree | 87b15b0650f263694f2f81782ac6bd0ddc5a20fe /media-sound/timidity++ | |
parent | media-sound/timidity++: add LTO workaround patch (diff) | |
download | gentoo-b48871811b67831bb9657d653af8b338239adbda.tar.gz gentoo-b48871811b67831bb9657d653af8b338239adbda.tar.bz2 gentoo-b48871811b67831bb9657d653af8b338239adbda.zip |
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 <sam@gentoo.org>
Diffstat (limited to 'media-sound/timidity++')
-rw-r--r-- | media-sound/timidity++/timidity++-2.15.0-r2.ebuild | 17 |
1 files changed, 16 insertions, 1 deletions
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" |