Package: nip2
Version: 7.10.10-2
Tags: patch
Our automated buildd log filter[1] detected a problem that will cause
your package to segfault on architectures where the size of a pointer is
greater than the size of an integer, such as ia64.
nip2 uses strcasestr() without defining _GNU_SOURCE
[1]http://people.debian.org/~dannf/check-implicit-pointer-functions
diff -urN nip2-7.10.10.orig/debian/patches/include-gnu-source.patch
nip2-7.10.10/debian/patches/include-gnu-source.patch
--- nip2-7.10.10.orig/debian/patches/include-gnu-source.patch 1969-12-31
17:00:00.000000000 -0700
+++ nip2-7.10.10/debian/patches/include-gnu-source.patch 2005-07-16
16:17:13.436685308 -0600
@@ -0,0 +1,10 @@
+--- nip2-7.10.10/src/program.c.orig 2005-07-16 16:15:11.857585235 -0600
++++ nip2-7.10.10/src/program.c 2005-07-16 16:12:50.227704157 -0600
+@@ -32,6 +32,7 @@
+ #define DEBUG_TREE
+ */
+
++#define _GNU_SOURCE 1 /* Needed to use strcasestr() */
+ #include "ip.h"
+
+ /* Keep tools/kits in a treestore. Also pointers to managed objects.
diff -urN nip2-7.10.10.orig/debian/rules nip2-7.10.10/debian/rules
--- nip2-7.10.10.orig/debian/rules 2005-07-16 15:43:04.930851000 -0600
+++ nip2-7.10.10/debian/rules 2005-07-16 16:24:09.173008340 -0600
@@ -13,7 +13,7 @@
#### Include cdbs rules files.
include /usr/share/cdbs/1/rules/tarball.mk
-#include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
--
dann frazier <[EMAIL PROTECTED]>
--- Begin Message ---
Function `strcasestr' implicitly converted to pointer at program.c:491
--- End Message ---