From 8d19a924405ee3acd4c560aa9d381facfcaa7ac4 Mon Sep 17 00:00:00 2001 From: "Hongzhi.Song" Date: Thu, 14 Mar 2019 06:15:53 -0400 Subject: glusterfs: uprev from v3.11.1 to v5.4 The latest stable release covers some CVEs and new features. Signed-off-by: Hongzhi.Song Signed-off-by: Bruce Ashfield --- ...python-work-around-host-and-target-python.patch | 56 ++++++++++++---------- 1 file changed, 30 insertions(+), 26 deletions(-) (limited to 'recipes-extended/glusterfs/files/python-work-around-host-and-target-python.patch') diff --git a/recipes-extended/glusterfs/files/python-work-around-host-and-target-python.patch b/recipes-extended/glusterfs/files/python-work-around-host-and-target-python.patch index d70a103..700b0ba 100644 --- a/recipes-extended/glusterfs/files/python-work-around-host-and-target-python.patch +++ b/recipes-extended/glusterfs/files/python-work-around-host-and-target-python.patch @@ -1,6 +1,6 @@ -From fbe4fdfddb096e4e6650908929c366dcc9556ade Mon Sep 17 00:00:00 2001 -From: Mark Asselstine -Date: Thu, 27 Feb 2014 21:50:40 -0500 +From 80c38519224635e9fe2a21542b7dbb14e4c16dcc Mon Sep 17 00:00:00 2001 +From: "Hongzhi.Song" +Date: Tue, 12 Mar 2019 19:46:27 -0700 Subject: [PATCH] python: work around host and target python In order to allow for the build system to make use of python but not @@ -18,7 +18,8 @@ Signed-off-by: Mark Asselstine Signed-off-by: Xulin Sun [Yi: minor adjust the code to apply the patch on 3.11.1] Signed-off-by: Yi Zhao - +[Hongzhi: minor adjust the code to apply on v5.4] +Signed-off-by: Hongzhi.Song --- configure.ac | 2 ++ geo-replication/src/Makefile.am | 3 ++- @@ -26,10 +27,10 @@ Signed-off-by: Yi Zhao 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac -index 8ce28f6..8e0652a 100644 +index bc4cf93..d55a7b2 100644 --- a/configure.ac +++ b/configure.ac -@@ -270,6 +270,8 @@ AC_CANONICAL_HOST +@@ -279,6 +279,8 @@ AC_CANONICAL_HOST AC_PROG_CC AC_DISABLE_STATIC AC_PROG_LIBTOOL @@ -53,27 +54,30 @@ index 9937a0b..07456fb 100644 AM_CFLAGS = -Wall $(GF_CFLAGS) diff --git a/geo-replication/src/gsyncd.c b/geo-replication/src/gsyncd.c -index 2c48ca5..b1d1126 100644 +index 77af662..8cd0551 100644 --- a/geo-replication/src/gsyncd.c +++ b/geo-replication/src/gsyncd.c -@@ -153,9 +153,9 @@ invoke_gsyncd (int argc, char **argv) - goto error; +@@ -118,9 +118,9 @@ invoke_gsyncd(int argc, char **argv) + goto error; - j = 0; -- python = getenv("PYTHON"); -+ python = getenv("TARGET_PYTHON"); - if(!python) -- python = PYTHON; -+ python = TARGET_PYTHON; - nargv[j++] = python; - nargv[j++] = GSYNCD_PREFIX"/python/syncdaemon/"GSYNCD_PY; - for (i = 1; i < argc; i++) -@@ -205,7 +205,7 @@ find_gsyncd (pid_t pid, pid_t ppid, char *name, void *data) - ret = 0; - switch (zeros) { + j = 0; +- python = getenv("PYTHON"); ++ python = getenv("TARGET_PYTHON"); + if (!python) +- python = PYTHON; ++ python = TARGET_PYTHON; + nargv[j++] = python; + nargv[j++] = GSYNCD_PREFIX "/python/syncdaemon/" GSYNCD_PY; + for (i = 1; i < argc; i++) +@@ -170,7 +170,7 @@ find_gsyncd(pid_t pid, pid_t ppid, char *name, void *data) + ret = 0; + switch (zeros) { case 2: -- if ((strcmp (basename (buf), basename (PYTHON)) || -+ if ((strcmp (basename (buf), basename (TARGET_PYTHON)) || - strcmp (basename (buf + strlen (buf) + 1), GSYNCD_PY)) == 0) { - ret = 1; - break; +- if ((strcmp(basename(buf), basename(PYTHON)) || ++ if ((strcmp (basename (buf), basename (TARGET_PYTHON)) || + strcmp(basename(buf + strlen(buf) + 1), GSYNCD_PY)) == 0) { + ret = 1; + break; +-- +2.17.1 + -- cgit v1.2.3-54-g00ecf