summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Savchenko <bircoph@gentoo.org>2016-09-29 20:19:12 +0300
committerAndrew Savchenko <bircoph@gentoo.org>2016-09-29 20:20:38 +0300
commitcf692903c9fe1c6a15f97f97c77e45227ee4f3de (patch)
tree691b8460f2a4811ee04c2fbb1a57cccd0afb2173 /dev-util/duma
parentdev-util/duma: bump to EAPI 6 (diff)
downloadgentoo-cf692903c9fe1c6a15f97f97c77e45227ee4f3de.tar.gz
gentoo-cf692903c9fe1c6a15f97f97c77e45227ee4f3de.tar.bz2
gentoo-cf692903c9fe1c6a15f97f97c77e45227ee4f3de.zip
dev-util/duma: fix bug 593930
Add gcc-6 love. Patch by Peter Levine plevine457/gmail.com Package-Manager: portage-2.3.1 Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'dev-util/duma')
-rw-r--r--dev-util/duma/duma-2.5.15-r2.ebuild1
-rw-r--r--dev-util/duma/files/duma-2.5.15-gcc6.patch22
2 files changed, 23 insertions, 0 deletions
diff --git a/dev-util/duma/duma-2.5.15-r2.ebuild b/dev-util/duma/duma-2.5.15-r2.ebuild
index f789883bdb3b..9d70cc039fa3 100644
--- a/dev-util/duma/duma-2.5.15-r2.ebuild
+++ b/dev-util/duma/duma-2.5.15-r2.ebuild
@@ -21,6 +21,7 @@ S=${WORKDIR}/${MY_P}
PATCHES=(
"${WORKDIR}"/${P}-GNUmakefile.patch
+ "${FILESDIR}"/${P}-gcc6.patch
)
src_configure() {
diff --git a/dev-util/duma/files/duma-2.5.15-gcc6.patch b/dev-util/duma/files/duma-2.5.15-gcc6.patch
new file mode 100644
index 000000000000..7cffef2b4e2c
--- /dev/null
+++ b/dev-util/duma/files/duma-2.5.15-gcc6.patch
@@ -0,0 +1,22 @@
+--- duma_2_5_15/dumapp.cpp.old 2016-09-21 19:28:01.286332961 -0400
++++ duma_2_5_15/dumapp.cpp 2016-09-21 19:28:06.722907238 -0400
+@@ -190,7 +190,9 @@
+ * (11) = (a) ; ASW
+ */
+ void * DUMA_CDECL operator new( DUMA_SIZE_T size )
++#if __cplusplus < 201103L
+ throw(std::bad_alloc)
++#endif
+ {
+ return duma_new_operator(size, EFA_NEW_ELEM, true DUMA_PARAMS_UK);
+ }
+@@ -254,7 +256,9 @@
+ * (21) = (a) ; AAW
+ */
+ void * DUMA_CDECL operator new[]( DUMA_SIZE_T size )
++#if __cplusplus < 201103L
+ throw(std::bad_alloc)
++#endif
+ {
+ return duma_new_operator(size, EFA_NEW_ARRAY, true DUMA_PARAMS_UK);
+ }