[libint] Fix printf arguments (BZ #1037165).
Susi Lehtola
jussilehtola at fedoraproject.org
Tue Dec 3 09:38:31 UTC 2013
commit b5d5f5d58b57c53862103305251547e730b5f637
Author: Susi Lehtola <jussilehtola at fedoraproject.org>
Date: Tue Dec 3 11:38:11 2013 +0200
Fix printf arguments (BZ #1037165).
libint-1.1.5-printf.patch | 36 ++++++++++++++++++++++++++++++++++++
libint.spec | 6 +++++-
2 files changed, 41 insertions(+), 1 deletions(-)
---
diff --git a/libint-1.1.5-printf.patch b/libint-1.1.5-printf.patch
new file mode 100644
index 0000000..14369e0
--- /dev/null
+++ b/libint-1.1.5-printf.patch
@@ -0,0 +1,36 @@
+diff -up libint-1.1.5/src/bin/libderiv/build_libderiv.c.printf libint-1.1.5/src/bin/libderiv/build_libderiv.c
+--- libint-1.1.5/src/bin/libderiv/build_libderiv.c.printf 2013-05-15 18:39:25.000000000 +0300
++++ libint-1.1.5/src/bin/libderiv/build_libderiv.c 2013-12-03 11:20:31.720733014 +0200
+@@ -289,7 +289,7 @@ int main()
+
+ void punt(char* str)
+ {
+- printf(str);
++ printf("%s",str);
+ exit(1);
+ }
+
+diff -up libint-1.1.5/src/bin/libint/build_libint.c.printf libint-1.1.5/src/bin/libint/build_libint.c
+--- libint-1.1.5/src/bin/libint/build_libint.c.printf 2013-05-15 18:39:25.000000000 +0300
++++ libint-1.1.5/src/bin/libint/build_libint.c 2013-12-03 11:19:07.145986395 +0200
+@@ -219,7 +219,7 @@ int main()
+
+ void punt(char* str)
+ {
+- printf(str);
++ printf("%s",str);
+ exit(1);
+ }
+
+diff -up libint-1.1.5/src/bin/libr12/build_libr12.c.printf libint-1.1.5/src/bin/libr12/build_libr12.c
+--- libint-1.1.5/src/bin/libr12/build_libr12.c.printf 2013-05-15 18:39:25.000000000 +0300
++++ libint-1.1.5/src/bin/libr12/build_libr12.c 2013-12-03 11:19:45.482965729 +0200
+@@ -195,7 +195,7 @@ int main()
+
+ void punt(char* str)
+ {
+- printf(str);
++ printf("%s",str);
+ exit(1);
+ }
+
diff --git a/libint.spec b/libint.spec
index aaea088..2f31b18 100644
--- a/libint.spec
+++ b/libint.spec
@@ -6,6 +6,9 @@ Group: System Environment/Libraries
License: GPLv2+
URL: http://sourceforge.net/p/libint
Source0: http://downloads.sourceforge.net/libint/v1-releases/libint-%{version}.tar.gz
+# Proper arguments for printf
+Patch0: libint-1.1.5-printf.patch
+
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# Required to build documentation
BuildRequires: tex(appendix.sty)
@@ -67,11 +70,12 @@ expressions. The derivatives are typically used in the calculation of forces.
%prep
%setup -q
+%patch0 -p1 -b .printf
%build
%configure --enable-shared --disable-static \
--with-libint-max-am=7 --with-libderiv-max-am1=5 --with-libderiv-max-am2=4 \
- --with-libr12-max-am=6
+ --with-libr12-max-am=6
make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %{?_smp_mflags}
More information about the scm-commits
mailing list