Browse Source

Revert upstream commit FILE5_17-62-gbeb312b: "add fmtcheck", several regressions

Christoph Biedl 10 years ago
parent
commit
9aa48875a4
4 changed files with 55 additions and 3 deletions
  1. 1 1
      debian/control
  2. 51 0
      debian/patches/revert.beb312b.add-fmtcheck.patch
  3. 1 0
      debian/patches/series
  4. 2 2
      debian/rules

+ 1 - 1
debian/control

@@ -3,7 +3,7 @@ Section: utils
 Priority: standard
 Maintainer: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
 Build-Depends: debhelper (>= 9.20140227~),
-    autotools-dev,
+    dh-autoreconf,
     python-all,
     python3-all,
     zlib1g-dev,

+ 51 - 0
debian/patches/revert.beb312b.add-fmtcheck.patch

@@ -0,0 +1,51 @@
+Upstream-Author: Christos Zoulas <christos@zoulas.com>
+Date: Sat Mar 15 21:47:40 2014 +0000
+Upstream-Commit: beb312b5bda6072dd9c609cd3cebd59212f93d2c
+Description:
+ Revert fmtcheck
+Comment: This introduces a lot of regressions, see
+ http://mx.gw.com/pipermail/file/2014/001439.html
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -136,10 +136,10 @@
+ fi])
+ 
+ dnl Checks for functions
+-AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof)
++AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof fmtcheck)
+ 
+ dnl Provide implementation of some required functions if necessary
+-AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r pread strcasestr fmtcheck)
++AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r pread strcasestr)
+ 
+ dnl Checks for libraries
+ AC_CHECK_LIB(z,gzopen)
+--- a/src/file.h
++++ b/src/file.h
+@@ -514,10 +514,6 @@
+ #ifndef HAVE_ASCTIME_R
+ char   *asctime_r(const struct tm *, char *);
+ #endif
+-#ifndef HAVE_FMTCHECK
+-const char *fmtcheck(const char *, const char *) 
+-     __attribute__((__format_arg__(2)));
+-#endif
+ 
+ #if defined(HAVE_MMAP) && defined(HAVE_SYS_MMAN_H) && !defined(QUICK)
+ #define QUICK
+--- a/src/softmagic.c
++++ b/src/softmagic.c
+@@ -36,7 +36,12 @@
+ #endif	/* lint */
+ 
+ #include "magic.h"
++#ifdef HAVE_FMTCHECK
++#include <stdio.h>
+ #define F(a, b) fmtcheck((a), (b))
++#else
++#define F(a, b) (a)
++#endif
+ #include <assert.h>
+ #include <string.h>
+ #include <ctype.h>

+ 1 - 0
debian/patches/series

@@ -10,3 +10,4 @@
 0011-btrfs.patch
 0012-lxt.patch
 extra.fix-8bit-in-cdf.patch
+revert.beb312b.add-fmtcheck.patch

+ 2 - 2
debian/rules

@@ -26,9 +26,9 @@ endif
 
 %:
 ifeq (,$(filter stage1,$(DEB_BUILD_PROFILES)))
-	dh ${@} --with autotools_dev,python2,python3
+	dh ${@} --with autoreconf,python2,python3
 else
-	dh ${@} --with autotools_dev
+	dh ${@} --with autoreconf
 endif
 
 override_dh_auto_clean: