Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/firebird/, dev-db/firebird/files/
Date: Fri, 10 Nov 2017 20:34:29
Message-Id: 1510346043.e82963f83a9027ae6da34734a5bb7c21e152c58a.asturm@gentoo
1 commit: e82963f83a9027ae6da34734a5bb7c21e152c58a
2 Author: Peter Levine <plevine457 <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 26 02:27:16 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 10 20:34:03 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e82963f8
7
8 dev-db/firebird: Fix building with GCC-6
9
10 Closes: https://bugs.gentoo.org/608294
11 Closes: https://github.com/gentoo/gentoo/pull/5212
12 Package-Manager: Portage-2.3.6, Repoman-2.3.2
13
14 .../files/firebird-2.5.7.27050.0-gcc6.patch | 35 ++++++++++++++++++++++
15 dev-db/firebird/firebird-2.5.7.27050.0.ebuild | 5 +++-
16 2 files changed, 39 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-db/firebird/files/firebird-2.5.7.27050.0-gcc6.patch b/dev-db/firebird/files/firebird-2.5.7.27050.0-gcc6.patch
19 new file mode 100644
20 index 00000000000..f051ea02b4c
21 --- /dev/null
22 +++ b/dev-db/firebird/files/firebird-2.5.7.27050.0-gcc6.patch
23 @@ -0,0 +1,35 @@
24 +Bug: https://bugs.gentoo.org/608294
25 +PR: https://github.com/FirebirdSQL/firebird/pull/104
26 +
27 +--- a/src/common/classes/alloc.h
28 ++++ b/src/common/classes/alloc.h
29 +@@ -498,10 +498,14 @@ using Firebird::MemoryPool;
30 +
31 + inline static MemoryPool* getDefaultMemoryPool() { return Firebird::MemoryPool::processMemoryPool; }
32 +
33 ++#if (( ! __GNUC__ ) || ( __GNUC__ < 6 ))
34 ++
35 + // Global versions of operators new and delete
36 + void* operator new(size_t s) THROW_BAD_ALLOC;
37 + void* operator new[](size_t s) THROW_BAD_ALLOC;
38 +
39 ++#endif
40 ++
41 + void operator delete(void* mem) throw();
42 + void operator delete[](void* mem) throw();
43 +
44 +--- a/src/dudley/exe.epp
45 ++++ b/src/dudley/exe.epp
46 +@@ -2884,9 +2884,9 @@ static USHORT get_prot_mask( const TEXT * relation, TEXT * field)
47 + blr_parameter, 0, 0, 0,
48 + blr_parameter, 0, 1, 0,
49 + blr_parameter, 1, 0, 0,
50 +- blr_end,
51 +- blr_end,
52 +- blr_end,
53 ++ static_cast<SCHAR>(blr_end),
54 ++ static_cast<SCHAR>(blr_end),
55 ++ static_cast<SCHAR>(blr_end),
56 + blr_eoc
57 + };
58 + static FB_API_HANDLE req_handle;
59 \ No newline at end of file
60
61 diff --git a/dev-db/firebird/firebird-2.5.7.27050.0.ebuild b/dev-db/firebird/firebird-2.5.7.27050.0.ebuild
62 index b118e34f5f2..b6e56990fd8 100644
63 --- a/dev-db/firebird/firebird-2.5.7.27050.0.ebuild
64 +++ b/dev-db/firebird/firebird-2.5.7.27050.0.ebuild
65 @@ -35,7 +35,10 @@ RDEPEND="${CDEPEND}
66
67 RESTRICT="userpriv"
68
69 -PATCHES=( "${FILESDIR}"/${PN}-2.5.3.26780.0-deps-flags.patch )
70 +PATCHES=(
71 + "${FILESDIR}"/${PN}-2.5.3.26780.0-deps-flags.patch
72 + "${FILESDIR}"/${P}-gcc6.patch
73 +)
74
75 S="${WORKDIR}/${MY_P}"