[SCM] mpg123/master: Add patch to avoid failure when built with hardened flags.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Mar 28 07:51:10 UTC 2012


The following commit has been merged in the master branch:
commit e3cd1203558b0d381a922e4c0c20ff7b875dd3e1
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Mar 28 09:41:49 2012 +0200

    Add patch to avoid failure when built with hardened flags.

diff --git a/debian/patches/0002-hardening.patch b/debian/patches/0002-hardening.patch
new file mode 100644
index 0000000..d6897b5
--- /dev/null
+++ b/debian/patches/0002-hardening.patch
@@ -0,0 +1,26 @@
+Description: Avoid failure when built with hardened flags.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: no
+---
+ configure.ac |   10 ----------
+ 1 file changed, 10 deletions(-)
+
+--- mpg123.orig/configure.ac
++++ mpg123/configure.ac
+@@ -32,16 +32,6 @@ AM_CONFIG_HEADER(src/config.h)
+ # You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
+ # In that case, the test failed because -Werror, not because no const there...
+ # After looking again, there are possibly more tests being obscured by false failures.
+-AC_MSG_CHECKING([for -Werror in CFLAGS (It breaks tests)])
+-if echo "$CFLAGS" | grep Werror; then
+-	AC_MSG_RESULT([yes])
+-	AC_MSG_ERROR([I refuse to run with -Werror in CFLAGS. That breaks tests and makes this configure bogus.
+-If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
+-Also note that you shall not run make distcheck after configuring with --enable-nagging.
+-distcheck uses the generated CFLAGS...])
+-else
+-	AC_MSG_RESULT([no])
+-fi
+ 
+ buffer=enabled # try to build with buffer by default
+ 
diff --git a/debian/patches/series b/debian/patches/series
index bd674ca..7d929a3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-disable_not_public_funcs.patch
+0002-hardening.patch

-- 
mpg123 packaging



More information about the pkg-multimedia-commits mailing list