diff options
author | Sam James <sam@gentoo.org> | 2021-08-27 03:55:26 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-27 04:02:45 +0100 |
commit | f36a27d75b9d3f82b98f63624202cf3624387ec6 (patch) | |
tree | 5e717d424aff63020724de17a2acc706eb2c3152 /dev-scheme | |
parent | media-libs/openal: fix automagic sndio dependency (diff) | |
download | gentoo-f36a27d75b9d3f82b98f63624202cf3624387ec6.tar.gz gentoo-f36a27d75b9d3f82b98f63624202cf3624387ec6.tar.bz2 gentoo-f36a27d75b9d3f82b98f63624202cf3624387ec6.zip |
dev-scheme/ypsilon: fix build with GCC 11, un-last-rite
Thanks-to: Watcom <hodge@dornbeast.com>
Bug: https://bugs.gentoo.org/730692
Closes: https://bugs.gentoo.org/787866
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r-- | dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch | 4 | ||||
-rw-r--r-- | dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild (renamed from dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild) | 28 |
2 files changed, 20 insertions, 12 deletions
diff --git a/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch b/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch index 4769fce6c25c..9ea4256de937 100644 --- a/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch +++ b/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch @@ -1,5 +1,5 @@ ---- ypsilon-0.9.6.update3.orig/Makefile 2008-12-23 09:56:02.000000000 +0100 -+++ ypsilon-0.9.6.update3/Makefile 2009-10-21 18:14:37.613881129 +0200 +--- a/Makefile ++++ b/Makefile @@ -126,7 +126,7 @@ @mkdir -p -m755 $(HOME)/.ypsilon diff --git a/dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild b/dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild index 3b4f21c6ca6b..399bd7866afb 100644 --- a/dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild +++ b/dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild @@ -1,14 +1,15 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 -inherit epatch flag-o-matic toolchain-funcs +inherit flag-o-matic toolchain-funcs MY_P="${P/_p/.update}" DESCRIPTION="R6RS-compliant Scheme implementation for real-time applications" HOMEPAGE="https://code.google.com/p/ypsilon/" SRC_URI="https://ypsilon.googlecode.com/files/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="BSD" SLOT="0" @@ -18,21 +19,28 @@ IUSE="examples threads" DEPEND="app-arch/cpio" RDEPEND="${DEPEND}" -S="${WORKDIR}/${MY_P}" - -src_prepare() { - epatch "${FILESDIR}"/${P}-asneeded.patch -} +PATCHES=( + "${FILESDIR}"/${P}-asneeded.patch +) src_compile() { use threads && append-flags "-pthread" - emake PREFIX="/usr" CXX="$(tc-getCXX)" \ - CXXFLAGS="${CXXFLAGS}" LDFLAGS="$LDFLAGS" + # Fix build failure with GCC 11 + # bug #787866 + append-cppflags -DNO_TLS + + emake \ + PREFIX="${EPREFIX}/usr" \ + CXX="$(tc-getCXX)" \ + CPPFLAGS="${CPPFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" } src_install() { - emake PREFIX="/usr" DESTDIR="${D}" install + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install + if use examples; then insinto /usr/share/doc/${PF}/examples doins example/* |