Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/duma/files/, dev-util/duma/
Date: Thu, 29 Sep 2016 17:20:49
Message-Id: 1475169638.cf692903c9fe1c6a15f97f97c77e45227ee4f3de.bircoph@gentoo
1 commit: cf692903c9fe1c6a15f97f97c77e45227ee4f3de
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 17:19:12 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 17:20:38 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf692903
7
8 dev-util/duma: fix bug 593930
9
10 Add gcc-6 love. Patch by Peter Levine plevine457/gmail.com
11
12 Package-Manager: portage-2.3.1
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 dev-util/duma/duma-2.5.15-r2.ebuild | 1 +
16 dev-util/duma/files/duma-2.5.15-gcc6.patch | 22 ++++++++++++++++++++++
17 2 files changed, 23 insertions(+)
18
19 diff --git a/dev-util/duma/duma-2.5.15-r2.ebuild b/dev-util/duma/duma-2.5.15-r2.ebuild
20 index f789883..9d70cc0 100644
21 --- a/dev-util/duma/duma-2.5.15-r2.ebuild
22 +++ b/dev-util/duma/duma-2.5.15-r2.ebuild
23 @@ -21,6 +21,7 @@ S=${WORKDIR}/${MY_P}
24
25 PATCHES=(
26 "${WORKDIR}"/${P}-GNUmakefile.patch
27 + "${FILESDIR}"/${P}-gcc6.patch
28 )
29
30 src_configure() {
31
32 diff --git a/dev-util/duma/files/duma-2.5.15-gcc6.patch b/dev-util/duma/files/duma-2.5.15-gcc6.patch
33 new file mode 100644
34 index 00000000..7cffef2
35 --- /dev/null
36 +++ b/dev-util/duma/files/duma-2.5.15-gcc6.patch
37 @@ -0,0 +1,22 @@
38 +--- duma_2_5_15/dumapp.cpp.old 2016-09-21 19:28:01.286332961 -0400
39 ++++ duma_2_5_15/dumapp.cpp 2016-09-21 19:28:06.722907238 -0400
40 +@@ -190,7 +190,9 @@
41 + * (11) = (a) ; ASW
42 + */
43 + void * DUMA_CDECL operator new( DUMA_SIZE_T size )
44 ++#if __cplusplus < 201103L
45 + throw(std::bad_alloc)
46 ++#endif
47 + {
48 + return duma_new_operator(size, EFA_NEW_ELEM, true DUMA_PARAMS_UK);
49 + }
50 +@@ -254,7 +256,9 @@
51 + * (21) = (a) ; AAW
52 + */
53 + void * DUMA_CDECL operator new[]( DUMA_SIZE_T size )
54 ++#if __cplusplus < 201103L
55 + throw(std::bad_alloc)
56 ++#endif
57 + {
58 + return duma_new_operator(size, EFA_NEW_ARRAY, true DUMA_PARAMS_UK);
59 + }