From 215e34899cda558a90f4163616d44e5d1c9aa1b3 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Jan 08 2014 21:04:54 +0000 Subject: Add -format patch to fix -Werror=format-security failure. --- diff --git a/polymake-format.patch b/polymake-format.patch new file mode 100644 index 0000000..d41113c --- /dev/null +++ b/polymake-format.patch @@ -0,0 +1,11 @@ +--- ./lib/core/src/perl/RefHash.xs.orig 2013-08-14 13:17:10.000000000 -0600 ++++ ./lib/core/src/perl/RefHash.xs 2014-01-08 13:50:43.368174796 -0700 +@@ -89,7 +89,7 @@ SV* ref2key(SV *keysv, tmp_keysv *tmp_ke + } \ + } STMT_END + +-static char err_ref[]="Reference as a key in a normal hash"; ++static const char err_ref[]="Reference as a key in a normal hash"; + + static inline + int ref_key_allowed(HV *class) diff --git a/polymake.spec b/polymake.spec index 46460e3..e40215f 100644 --- a/polymake.spec +++ b/polymake.spec @@ -35,6 +35,8 @@ Patch0: %{name}-fedora.patch # This patch was sent upstream 20 Mar 2013. Fix a call to an lrslib function # that segfaults when given a NULL argument. Patch1: %{name}-lrslib.patch +# Avoid -Werror=format-security failures. +Patch2: %{name}-format.patch BuildRequires: bliss-devel BuildRequires: boost-devel @@ -112,6 +114,7 @@ This package contains documentation for %{name}. %setup -q %patch0 %patch1 +%patch2 # Make sure we don't build against the bundled libraries. rm -fr external/{cdd,lrs} @@ -203,6 +206,7 @@ sed -i 's,%{buildroot},,' %{buildroot}%{polydir}/bundled/group/conf.make %changelog * Wed Jan 8 2014 Jerry James - 2.12-11.svn20130813 - Rebuild for perl 5.18.2 +- Add -format patch to fix -Werror=format-security failure * Wed Aug 14 2013 Jerry James - 2.12-10.svn20130813 - Update to latest "perpetual beta" for perl 5.18 compatibility (bz 992813)