[ecl] fix configure check for end-of-line when using -Werror=format-security

Rex Dieter rdieter at fedoraproject.org
Sun May 18 20:27:24 UTC 2014


commit 8e04e2d553538e8a8453f5d072394ed3b1172871
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Sun May 18 15:27:21 2014 -0500

    fix configure check for end-of-line when using -Werror=format-security

 ecl-13.5.1-end_of_line.patch |   24 ++++++++++++++++++++++++
 ecl.spec                     |    8 +++++++-
 2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/ecl-13.5.1-end_of_line.patch b/ecl-13.5.1-end_of_line.patch
new file mode 100644
index 0000000..4360543
--- /dev/null
+++ b/ecl-13.5.1-end_of_line.patch
@@ -0,0 +1,24 @@
+diff -up ecl-13.5.1/src/aclocal.m4.end_of_line ecl-13.5.1/src/aclocal.m4
+--- ecl-13.5.1/src/aclocal.m4.end_of_line	2014-05-18 15:11:30.019929425 -0500
++++ ecl-13.5.1/src/aclocal.m4	2014-05-18 15:12:54.630035302 -0500
+@@ -711,7 +711,7 @@ int main() {
+   fclose(f);
+   f = fopen("conftestval","w");
+   if (f == NULL) exit(1);
+-  fprintf(f, output);
++  fprintf(f, "%s", output);
+   fclose(f);
+   exit(0);
+ }
+diff -up ecl-13.5.1/src/configure.end_of_line ecl-13.5.1/src/configure
+--- ecl-13.5.1/src/configure.end_of_line	2014-05-18 15:11:30.022929393 -0500
++++ ecl-13.5.1/src/configure	2014-05-18 15:12:58.554993824 -0500
+@@ -7680,7 +7680,7 @@ int main() {
+   fclose(f);
+   f = fopen("conftestval","w");
+   if (f == NULL) exit(1);
+-  fprintf(f, output);
++  fprintf(f, "%s", output);
+   fclose(f);
+   exit(0);
+ }
diff --git a/ecl.spec b/ecl.spec
index 2cf9ede..7280f91 100644
--- a/ecl.spec
+++ b/ecl.spec
@@ -1,6 +1,6 @@
 Name:           ecl
 Version:        13.5.1
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Embeddable Common-Lisp
 
 Group:          Development/Languages
@@ -43,6 +43,8 @@ Patch7:         0026-Configuring-GMP-with-C-with-c-gmp-was-broken-due-to-.patch
 Patch8:         0041-Fixed-declaration-of-GC_start_call_back.patch
 Patch9:         0066-fixes-for-the-detection-of-GC_start_call_back.patch
 Patch10:        0069-Fix-declaration-that-was-activated-by-commit-285eb31.patch
+# fix when building with -Werror=format-security, upstreamable
+Patch11:         ecl-13.5.1-end_of_line.patch
 
 BuildRequires:  libX11-devel
 BuildRequires:  pkgconfig
@@ -89,6 +91,7 @@ Gray streams.
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 # Remove spurious executable bits
 chmod a-x src/CHANGELOG
@@ -171,6 +174,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null ||:
 
 
 %changelog
+* Sun May 18 2014 Rex Dieter <rdieter at fedoraproject.org> 13.5.1-5
+- fix configure check for end-of-line when using -Werror=format-security
+
 * Wed May 14 2014 Rex Dieter <rdieter at fedoraproject.org> 13.5.1-4
 - backport GC_start_call_back fixes
 


More information about the scm-commits mailing list