Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 28/42] tcp-wrappers: refresh patches
Date: Thu,  8 Mar 2018 20:17:50 +0200	[thread overview]
Message-ID: <20180308181804.31261-28-alexander.kanavin@linux.intel.com> (raw)
In-Reply-To: <20180308181804.31261-1-alexander.kanavin@linux.intel.com>

From: Ross Burton <ross.burton@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@intel.com>
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
 .../tcp-wrappers-7.6/12_makefile_config.patch      | 24 ++++++++++++----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/12_makefile_config.patch b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/12_makefile_config.patch
index e8289e44d93..d473fb63429 100644
--- a/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/12_makefile_config.patch
+++ b/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/12_makefile_config.patch
@@ -1,9 +1,10 @@
 Upstream-Status: Backport
 
-diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
---- tcp_wrappers_7.6.orig/Makefile	2003-08-21 01:43:39.000000000 +0200
-+++ tcp_wrappers_7.6/Makefile	2003-08-21 01:43:35.000000000 +0200
-@@ -45,7 +45,7 @@
+Index: tcp_wrappers_7.6/Makefile
+===================================================================
+--- tcp_wrappers_7.6.orig/Makefile
++++ tcp_wrappers_7.6/Makefile
+@@ -45,7 +45,7 @@ what:
  #
  # SysV.4 Solaris 2.x OSF AIX
  #REAL_DAEMON_DIR=/usr/sbin
@@ -12,7 +13,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  # BSD 4.4
  #REAL_DAEMON_DIR=/usr/libexec
  #
-@@ -512,6 +519,7 @@
+@@ -513,6 +513,7 @@ VSYSLOG	= -Dvsyslog=myvsyslog
  # (examples: allow, deny, banners, twist and spawn).
  # 
  #STYLE	= -DPROCESS_OPTIONS	# Enable language extensions.
@@ -20,7 +21,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  
  ################################################################
  # Optional: Changing the default disposition of logfile records
-@@ -535,6 +543,7 @@
+@@ -536,6 +537,7 @@ VSYSLOG	= -Dvsyslog=myvsyslog
  # The LOG_XXX names below are taken from the /usr/include/syslog.h file.
  
  FACILITY= LOG_MAIL	# LOG_MAIL is what most sendmail daemons use
@@ -28,7 +29,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  
  # The syslog priority at which successful connections are logged.
  
-@@ -631,6 +640,7 @@
+@@ -632,6 +634,7 @@ TABLES	= -DHOSTS_DENY=\"/etc/hosts.deny\
  # lookups altogether, see the next section.
  
  PARANOID= -DPARANOID
@@ -36,7 +37,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  
  ########################################
  # Optional: turning off hostname lookups
-@@ -644,6 +654,7 @@
+@@ -645,6 +648,7 @@ PARANOID= -DPARANOID
  # mode (see previous section) and comment out the following definition.
  
  HOSTNAME= -DALWAYS_HOSTNAME
@@ -44,7 +45,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  
  #############################################
  # Optional: Turning on host ADDRESS checking
-@@ -670,6 +681,7 @@
+@@ -671,6 +675,7 @@ HOSTNAME= -DALWAYS_HOSTNAME
  # Solaris 2.x, and Linux. See your system documentation for details.
  #
  # KILL_OPT= -DKILL_IP_OPTIONS
@@ -52,7 +53,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  
  ## End configuration options
  ############################
-@@ -677,9 +689,10 @@
+@@ -678,9 +683,10 @@ HOSTNAME= -DALWAYS_HOSTNAME
  # Protection against weird shells or weird make programs.
  
  SHELL	= /bin/sh
@@ -65,7 +66,7 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
  	$(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) \
  	-DREAL_DAEMON_DIR=\"$(REAL_DAEMON_DIR)\" $(STYLE) $(KILL_OPT) \
  	-DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
-@@ -712,10 +725,11 @@
+@@ -713,11 +719,12 @@ all other: config-check tcpd tcpdmatch t
  
  config-check:
  	@set +e; test -n "$(REAL_DAEMON_DIR)" || { make; exit 1; }
@@ -81,3 +82,4 @@ diff -ruN tcp_wrappers_7.6.orig/Makefile tcp_wrappers_7.6/Makefile
 +	@if [ ! -d shared ]; then mkdir shared; fi
  
  $(LIB):	$(LIB_OBJ)
+ 	rm -f $(LIB)
-- 
2.16.1



  parent reply	other threads:[~2018-03-08 18:25 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-08 18:17 [PATCH 01/42] expat: refresh patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 02/42] grub: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 03/42] shared-mime-info: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 04/42] serf: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 05/42] nspr: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 06/42] libical: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 07/42] gmp: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 08/42] gnutls: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 09/42] libffi: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 10/42] libksba: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 11/42] libtiff: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 12/42] gstreamer: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 13/42] kmod: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 14/42] dtc: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 15/42] lttng: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 16/42] wayland: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 17/42] clutter: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 18/42] xset: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 19/42] at: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 20/42] bash: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 21/42] ethtool: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 22/42] ghostscript: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 23/42] ghostscript: drop incorrectly applied patch Alexander Kanavin
2018-03-08 18:17 ` [PATCH 24/42] libidn: refresh patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 25/42] mdadm: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 26/42] pam: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 27/42] parted: " Alexander Kanavin
2018-03-08 18:17 ` Alexander Kanavin [this message]
2018-03-08 18:17 ` [PATCH 29/42] iptables: drop unnecessary patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 30/42] apt: refresh patches Alexander Kanavin
2018-03-08 18:17 ` [PATCH 31/42] automake: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 32/42] intltool: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 33/42] mtd: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 34/42] syslinux: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 35/42] ppp: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 36/42] util-linux: " Alexander Kanavin
2018-03-08 18:17 ` [PATCH 37/42] zlib: " Alexander Kanavin
2018-03-08 18:18 ` [PATCH 38/42] irda-utils: " Alexander Kanavin
2018-03-08 18:18 ` [PATCH 39/42] python-numpy: update to 1.14.1 Alexander Kanavin
2018-03-08 18:18 ` [PATCH 40/42] python: refresh patches Alexander Kanavin
2018-03-08 18:18 ` [PATCH 41/42] perl: " Alexander Kanavin
2018-03-08 18:18 ` [PATCH 42/42] perl: remove perl-enable-gdbm.patch Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180308181804.31261-28-alexander.kanavin@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox