sci-libs/cifparse-obj: Allow for compiling with GCC 6
authorDavid Seifert <soap@gentoo.org>
Sat, 17 Sep 2016 14:09:24 +0000 (16:09 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 17 Sep 2016 14:11:39 +0000 (16:11 +0200)
Gentoo-bug: 594054
* Remove broken declarations of the 'strcasecmp'
  and 'strncasecmp' functions.

Package-Manager: portage-2.3.0

sci-libs/cifparse-obj/cifparse-obj-7.025-r1.ebuild
sci-libs/cifparse-obj/files/cifparse-obj-7.025-strncasecmp-declaration.patch [new file with mode: 0644]

index a30d3b402d53035df0930c78426200f4654942a8..39d176203c73ff7c1fe0fc965e8869f807b6d165 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -29,7 +29,8 @@ src_prepare() {
                "${FILESDIR}"/${P}-makefile.patch \
                "${FILESDIR}"/${P}-gcc4.3.patch \
                "${FILESDIR}"/${P}-gcc4.7.patch \
-               "${FILESDIR}"/${P}-gcc5.patch
+               "${FILESDIR}"/${P}-gcc5.patch \
+               "${FILESDIR}"/${PN}-7.025-strncasecmp-declaration.patch
 
        sed \
                -e "s:^\(CC=\).*:\1$(tc-getCC):g" \
diff --git a/sci-libs/cifparse-obj/files/cifparse-obj-7.025-strncasecmp-declaration.patch b/sci-libs/cifparse-obj/files/cifparse-obj-7.025-strncasecmp-declaration.patch
new file mode 100644 (file)
index 0000000..9222ff2
--- /dev/null
@@ -0,0 +1,16 @@
+Remove incorrect prototypes of the 'strcasecmp' and 'strncasecmp' functions.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594054
+
+--- a/misclib-v2.2/include/ndb_misclib.h
++++ b/misclib-v2.2/include/ndb_misclib.h
+@@ -167,10 +167,6 @@
+ #define NDB_MSG_BUFFER_LEN    200000
+ 
+ 
+-#if !defined(HAVE_STRCASECMP)
+-int strcasecmp (const char *s1, const char *s2);
+-int strncasecmp (const char *s1, const char *s2, unsigned int n);
+-#endif 
+ /*
+  *   ndb_misclib.c prototypes
+  */