Source: sharutils
Version: 1:4.11.1-1
Severity: normal
Tags: patch
User: debian-...@lists.debian.org
Usertags: port-x32 ftbfs-gnulib

When I try building sharutils with eglibc 2.16 from experimental installed, I 
get this build failure:

gcc -DHAVE_CONFIG_H -I. -I..  -I../intl -D_FORTIFY_SOURCE=2  -g -O2 -fstack-
protector --param=ssp-buffer-size=4 -c localcharset.c
In file included from localcharset.c:28:0:
./stdio.h:494:1: error: 'gets' undeclared here (not in a function)
make[5]: *** [localcharset.o] Error 1
make[5]: Leaving directory `/tmp/buildd/sharutils-4.11.1/lib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/buildd/sharutils-4.11.1/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/buildd/sharutils-4.11.1/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/sharutils-4.11.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/sharutils-4.11.1'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Attached is a debdiff with a temporary workaround until the package is updated 
from gnulib git.
-- 
Daniel Schepler
diff -Nru sharutils-4.11.1/debian/changelog sharutils-4.11.1/debian/changelog
--- sharutils-4.11.1/debian/changelog	2012-06-02 10:24:07.000000000 -0700
+++ sharutils-4.11.1/debian/changelog	2012-07-20 16:16:18.000000000 -0700
@@ -1,3 +1,10 @@
+sharutils (1:4.11.1-1+x32) UNRELEASED; urgency=low
+
+  * Add fix for gnulib compilation against glibc 2.16, which no longer
+    declares gets by default.
+
+ -- Daniel Schepler <schep...@debian.org>  Fri, 20 Jul 2012 16:15:53 -0700
+
 sharutils (1:4.11.1-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru sharutils-4.11.1/debian/patches/99-gnulib-glibc-2_16 sharutils-4.11.1/debian/patches/99-gnulib-glibc-2_16
--- sharutils-4.11.1/debian/patches/99-gnulib-glibc-2_16	1969-12-31 16:00:00.000000000 -0800
+++ sharutils-4.11.1/debian/patches/99-gnulib-glibc-2_16	2012-07-20 16:14:51.000000000 -0700
@@ -0,0 +1,14 @@
+Index: sharutils-4.11.1/lib/stdio.in.h
+===================================================================
+--- sharutils-4.11.1.orig/lib/stdio.in.h	2011-04-29 16:49:42.000000000 +0000
++++ sharutils-4.11.1/lib/stdio.in.h	2012-07-20 23:14:08.000000000 +0000
+@@ -179,7 +179,9 @@
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
+ #undef gets
++#if 0
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+ 
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
diff -Nru sharutils-4.11.1/debian/patches/series sharutils-4.11.1/debian/patches/series
--- sharutils-4.11.1/debian/patches/series	2012-06-02 10:10:19.000000000 -0700
+++ sharutils-4.11.1/debian/patches/series	2012-07-20 16:13:46.000000000 -0700
@@ -1,2 +1,3 @@
 01-no-usr-share-info-dir-gz
 99-config-guess-config-sub
+99-gnulib-glibc-2_16

Reply via email to