[OE-core] [PATCH 24/36] sysstat: refresh patches

Alexander Kanavin alexander.kanavin at linux.intel.com
Fri Mar 9 18:56:02 UTC 2018


From: Ross Burton <ross.burton at intel.com>

The patch tool will apply patches by default with "fuzz", which is where if the
hunk context isn't present but what is there is close enough, it will force the
patch in.

Whilst this is useful when there's just whitespace changes, when applied to
source it is possible for a patch applied with fuzz to produce broken code which
still compiles (see #10450).  This is obviously bad.

We'd like to eventually have do_patch() rejecting any fuzz on these grounds. For
that to be realistic the existing patches with fuzz need to be rebased and
reviewed.

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin at linux.intel.com>
---
 .../0001-Include-needed-headers-explicitly.patch     | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch b/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
index 5fc26fbc270..1b63299aaea 100644
--- a/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
+++ b/meta/recipes-extended/sysstat/sysstat/0001-Include-needed-headers-explicitly.patch
@@ -21,10 +21,10 @@ Upstream-Status: Pending
  sa_common.c | 1 +
  3 files changed, 3 insertions(+)
 
-Index: sysstat-11.5.7/common.c
+Index: sysstat-11.7.1/common.c
 ===================================================================
---- sysstat-11.5.7.orig/common.c
-+++ sysstat-11.5.7/common.c
+--- sysstat-11.7.1.orig/common.c
++++ sysstat-11.7.1/common.c
 @@ -20,6 +20,7 @@
   */
  
@@ -33,10 +33,10 @@ Index: sysstat-11.5.7/common.c
  #include <string.h>
  #include <stdlib.h>
  #include <stdarg.h>
-Index: sysstat-11.5.7/ioconf.c
+Index: sysstat-11.7.1/ioconf.c
 ===================================================================
---- sysstat-11.5.7.orig/ioconf.c
-+++ sysstat-11.5.7/ioconf.c
+--- sysstat-11.7.1.orig/ioconf.c
++++ sysstat-11.7.1/ioconf.c
 @@ -27,6 +27,7 @@
  #include <errno.h>
  #include <dirent.h>
@@ -45,10 +45,10 @@ Index: sysstat-11.5.7/ioconf.c
  
  #include "ioconf.h"
  #include "common.h"
-Index: sysstat-11.5.7/sa_common.c
+Index: sysstat-11.7.1/sa_common.c
 ===================================================================
---- sysstat-11.5.7.orig/sa_common.c
-+++ sysstat-11.5.7/sa_common.c
+--- sysstat-11.7.1.orig/sa_common.c
++++ sysstat-11.7.1/sa_common.c
 @@ -20,6 +20,7 @@
   */
  
@@ -56,4 +56,4 @@ Index: sysstat-11.5.7/sa_common.c
 +#include <limits.h>
  #include <string.h>
  #include <stdlib.h>
- #include <time.h>
+ #include <stdint.h>
-- 
2.16.1




More information about the Openembedded-core mailing list