[packages/ntp] - fix compile error
adwol
adwol at pld-linux.org
Sat Aug 1 23:18:45 CEST 2015
commit 72596e3818b4fb3dcaabebc96aa481d299cfbd03
Author: Adam Osuchowski <adwol at pld-linux.org>
Date: Sat Aug 1 23:17:58 2015 +0200
- fix compile error
ntp-printf_format_string.patch | 12 ++++++++++++
ntp.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/ntp.spec b/ntp.spec
index b3851dd..da6d1e0 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -36,6 +36,7 @@ Patch1: %{name}-no_libelf.patch
Patch2: %{name}-ipv6.patch
Patch3: %{name}-nano.patch
Patch4: %{name}-no_avahi.patch
+Patch5: %{name}-printf_format_string.patch
# FC patches + 100
Patch101: %{name}-4.2.6p1-sleep.patch
Patch102: %{name}-4.2.6p1-droproot.patch
@@ -237,6 +238,7 @@ Este pacote contém documentação adicional sobre o NTP versão 4.
%patch2 -p1
%patch3 -p1
%{!?with_avahi:%patch4 -p1}
+%patch5 -p1
## FC patches
#%patch101 -p1
diff --git a/ntp-printf_format_string.patch b/ntp-printf_format_string.patch
new file mode 100644
index 0000000..c9de60e
--- /dev/null
+++ b/ntp-printf_format_string.patch
@@ -0,0 +1,12 @@
+diff -ruNp ntp-4.2.8p3.orig/sntp/unity/unity.c ntp-4.2.8p3/sntp/unity/unity.c
+--- ntp-4.2.8p3.orig/sntp/unity/unity.c 2015-06-24 16:45:12.000000000 +0200
++++ ntp-4.2.8p3/sntp/unity/unity.c 2015-08-01 23:09:13.789456521 +0200
+@@ -327,7 +327,7 @@ void UnityConcludeTest(void)
+ }
+
+ printf("| ");
+- printf(Unity.XFAILMessage);
++ printf("%s", Unity.XFAILMessage);
+ Unity.XFAILMessage = NULL;
+ }
+ else
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ntp.git/commitdiff/72596e3818b4fb3dcaabebc96aa481d299cfbd03
More information about the pld-cvs-commit
mailing list