commit: 9b2d57478d976e76b25b9dd71effd0cb1f0b6f77 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> AuthorDate: Thu Jul 1 05:40:14 2021 +0000 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> CommitDate: Thu Jul 1 05:40:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b2d5747
media-radio/fldigi: Fix GCC-11 compilation problems (use C++14) Closes: https://bugs.gentoo.org/789627 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> media-radio/fldigi/files/fldigi-c++11.patch | 41 ----------------------------- media-radio/fldigi/fldigi-4.1.18.ebuild | 5 ++-- media-radio/fldigi/fldigi-4.1.19.ebuild | 5 ++-- 3 files changed, 6 insertions(+), 45 deletions(-) diff --git a/media-radio/fldigi/files/fldigi-c++11.patch b/media-radio/fldigi/files/fldigi-c++11.patch deleted file mode 100644 index 0ca08c484a5..00000000000 --- a/media-radio/fldigi/files/fldigi-c++11.patch +++ /dev/null @@ -1,41 +0,0 @@ -#fix -Werror=terminate ---- /src/soundcard/sound.cxx.orig 2017-06-28 12:58:41.682698479 +0000 -+++ /src/soundcard/sound.cxx 2017-06-28 13:02:44.862055549 +0000 -@@ -143,7 +143,7 @@ - #endif - } - --SoundBase::~SoundBase() -+SoundBase::~SoundBase() throw (SndException) - { - delete [] wrt_buffer; - -@@ -1091,7 +1091,7 @@ - memset(fbuf, 0, 2 * SND_BUF_LEN * sizeof(*fbuf)); - } - --SoundPort::~SoundPort() -+SoundPort::~SoundPort() throw (SndException) - { - Close(); - ---- /src/include/sound.h.orig 2017-06-28 12:59:04.670899172 +0000 -+++ /src/include/sound.h 2017-06-28 13:00:41.253335034 +0000 -@@ -119,7 +119,7 @@ - - public: - SoundBase(); -- virtual ~SoundBase(); -+ virtual ~SoundBase() throw (SndException); - virtual int Open(int mode, int freq = 8000) = 0; - virtual void Close(unsigned dir = UINT_MAX) = 0; - virtual void Abort(unsigned dir = UINT_MAX) = 0; -@@ -213,7 +213,7 @@ - - public: - SoundPort(const char *in_dev, const char *out_dev); -- ~SoundPort(); -+ ~SoundPort() throw (SndException); - int Open(int mode, int freq = 8000); - void Close(unsigned dir = UINT_MAX); - void Abort(unsigned dir = UINT_MAX); diff --git a/media-radio/fldigi/fldigi-4.1.18.ebuild b/media-radio/fldigi/fldigi-4.1.18.ebuild index 816703cc962..904b1023173 100644 --- a/media-radio/fldigi/fldigi-4.1.18.ebuild +++ b/media-radio/fldigi/fldigi-4.1.18.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit flag-o-matic + DESCRIPTION="Sound card based multimode software modem for Amateur Radio use" HOMEPAGE="http://www.w1hkj.com" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" @@ -33,9 +35,8 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS ChangeLog NEWS README ) -PATCHES=( "${FILESDIR}"/${PN}-c++11.patch ) - src_configure() { + append-cxxflags $(test-flags-CXX -std=c++14) local myconf="" use cpu_flags_x86_sse && myconf="${myconf} --enable-optimizations=sse" diff --git a/media-radio/fldigi/fldigi-4.1.19.ebuild b/media-radio/fldigi/fldigi-4.1.19.ebuild index 179a9c3176a..d58de298fbf 100644 --- a/media-radio/fldigi/fldigi-4.1.19.ebuild +++ b/media-radio/fldigi/fldigi-4.1.19.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit flag-o-matic + DESCRIPTION="Sound card based multimode software modem for Amateur Radio use" HOMEPAGE="http://www.w1hkj.com" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" @@ -33,9 +35,8 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS ChangeLog NEWS README ) -PATCHES=( "${FILESDIR}"/${PN}-c++11.patch ) - src_configure() { + append-cxxflags $(test-flags-CXX -std=c++14) local myconf="" use cpu_flags_x86_sse && myconf="${myconf} --enable-optimizations=sse"