summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-17 22:10:59 +0100
committerSam James <sam@gentoo.org>2021-08-17 22:11:17 +0100
commitaffa9e263c66472d917f46bc2129054e0d6fdcee (patch)
tree8d447b888d202cbe5a991080f4b1347fff0791ab /sci-libs/coinor-os/coinor-os-2.10.1.ebuild
parentsys-devel/binutils: Enable new dtags via configure, not broken patch (diff)
downloadgentoo-affa9e263c66472d917f46bc2129054e0d6fdcee.tar.gz
gentoo-affa9e263c66472d917f46bc2129054e0d6fdcee.tar.bz2
gentoo-affa9e263c66472d917f46bc2129054e0d6fdcee.zip
sci-libs/coinor-os: workaround build failure with GCC 11
Not backporting the patches given they're large and awkward to rebase (they don't apply cleanly). Closes: https://bugs.gentoo.org/808793 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/coinor-os/coinor-os-2.10.1.ebuild')
-rw-r--r--sci-libs/coinor-os/coinor-os-2.10.1.ebuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/sci-libs/coinor-os/coinor-os-2.10.1.ebuild b/sci-libs/coinor-os/coinor-os-2.10.1.ebuild
index 2093e3961b62..792b443c5d97 100644
--- a/sci-libs/coinor-os/coinor-os-2.10.1.ebuild
+++ b/sci-libs/coinor-os/coinor-os-2.10.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -10,6 +10,7 @@ MY_PN=OS
DESCRIPTION="COIN-OR Optimization Services"
HOMEPAGE="https://projects.coin-or.org/OS/"
SRC_URI="http://www.coin-or.org/download/source/${MY_PN}/${MY_PN}-${PV}.tgz"
+S="${WORKDIR}/${MY_PN}-${PV}/${MY_PN}"
LICENSE="EPL-1.0"
SLOT="0/6"
@@ -32,9 +33,9 @@ DEPEND="${RDEPEND}
doc? ( app-doc/doxygen[dot] )
test? ( sci-libs/coinor-sample )"
-S="${WORKDIR}/${MY_PN}-${PV}/${MY_PN}"
-
-PATCHES=( "${FILESDIR}/${PN}-2.10.1-fix-c++14.patch" )
+PATCHES=(
+ "${FILESDIR}/${PN}-2.10.1-fix-c++14.patch"
+)
src_prepare() {
default
@@ -46,6 +47,11 @@ src_prepare() {
src_configure() {
append-cppflags -DNDEBUG
+ # Can be dropped > 2.10.3 as patches landed upstream but don't
+ # apply cleanly to 2.10.1.
+ # bug #808793
+ append-cxxflags -std=c++14
+
econf \
--enable-shared \
$(use_enable static-libs static) \