]> git.pld-linux.org Git - packages/ntp.git/commitdiff
- fix compile error auto/th/ntp-4.2.8p3-2
authorAdam Osuchowski <adwol@pld-linux.org>
Sat, 1 Aug 2015 21:17:58 +0000 (23:17 +0200)
committerAdam Osuchowski <adwol@pld-linux.org>
Sat, 1 Aug 2015 21:17:58 +0000 (23:17 +0200)
ntp-printf_format_string.patch [new file with mode: 0644]
ntp.spec

diff --git a/ntp-printf_format_string.patch b/ntp-printf_format_string.patch
new file mode 100644 (file)
index 0000000..c9de60e
--- /dev/null
@@ -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
index b3851dd1c5dc75e31fe0199342c44986d7e94fb0..da6d1e06c720ac1e1ee8f0b8041f4aa7385cc863 100644 (file)
--- 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
This page took 0.084124 seconds and 4 git commands to generate.