Accepting request 541709 from home:markkp:branches:Base:System
- Added s390-tools-sles12sp3-zdev-Use-correct-path-to-vmcp-binary.patch zdev: Use correct path to vmcp binary (bsc#1055909) OBS-URL: https://build.opensuse.org/request/show/541709 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=30
This commit is contained in:
parent
4c67ea0039
commit
abb5f3f721
67
s390-tools-sles15-zdev-Use-correct-path-to-vmcp-binary.patch
Normal file
67
s390-tools-sles15-zdev-Use-correct-path-to-vmcp-binary.patch
Normal file
@ -0,0 +1,67 @@
|
||||
From a060dc22db06fb14274b72984ae8db51f00a21cd Mon Sep 17 00:00:00 2001
|
||||
From: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
|
||||
Date: Mon, 13 Nov 2017 12:50:32 +0100
|
||||
Subject: [PATCH] zdev: Use correct path to vmcp binary
|
||||
|
||||
The zdev tools use a hard-coded path to locate the vmcp binary. Since
|
||||
this path may differ between distributions, the vmcp binary may not be
|
||||
successfully located in all cases. Fix this by using the BINDIR macro
|
||||
to determine the correct path. This macro is also used during
|
||||
installation of the vmcp binary itself.
|
||||
|
||||
Reviewed-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
|
||||
Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
|
||||
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
|
||||
---
|
||||
common.mak | 2 ++
|
||||
include/lib/zt_common.h | 1 +
|
||||
zdev/include/path.h | 2 +-
|
||||
3 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/common.mak b/common.mak
|
||||
index b9a9f54..bb6cdf0 100644
|
||||
--- a/common.mak
|
||||
+++ b/common.mak
|
||||
@@ -194,12 +194,14 @@ ALL_CFLAGS = -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
|
||||
-DS390_TOOLS_LIBDIR=$(TOOLS_LIBDIR) \
|
||||
-DS390_TOOLS_DATADIR=$(TOOLS_DATADIR) \
|
||||
-DS390_TOOLS_SYSCONFDIR=$(SYSCONFDIR) \
|
||||
+ -DS390_TOOLS_BINDIR=$(BINDIR) \
|
||||
$(CFLAGS)
|
||||
CXXFLAGS ?= $(DEFAULT_CFLAGS) $(OPT_FLAGS)
|
||||
ALL_CXXFLAGS = -DS390_TOOLS_RELEASE=$(S390_TOOLS_RELEASE) \
|
||||
-DS390_TOOLS_LIBDIR=$(TOOLS_LIBDIR) \
|
||||
-DS390_TOOLS_DATADIR=$(TOOLS_DATADIR) \
|
||||
-DS390_TOOLS_SYSCONFDIR=$(SYSCONFDIR) \
|
||||
+ -DS390_TOOLS_BINDIR=$(BINDIR) \
|
||||
$(CXXFLAGS)
|
||||
ALL_CPPFLAGS = -I $(rootdir)include $(CPPFLAGS)
|
||||
ALL_LDFLAGS = $(LDFLAGS)
|
||||
diff --git a/include/lib/zt_common.h b/include/lib/zt_common.h
|
||||
index e27b7b0..c486428 100644
|
||||
--- a/include/lib/zt_common.h
|
||||
+++ b/include/lib/zt_common.h
|
||||
@@ -25,6 +25,7 @@
|
||||
#define RELEASE_STRING STRINGIFY (S390_TOOLS_RELEASE)
|
||||
#define TOOLS_LIBDIR STRINGIFY (S390_TOOLS_LIBDIR)
|
||||
#define TOOLS_SYSCONFDIR STRINGIFY (S390_TOOLS_SYSCONFDIR)
|
||||
+#define TOOLS_BINDIR STRINGIFY (S390_TOOLS_BINDIR)
|
||||
|
||||
#define __noreturn __attribute__((noreturn))
|
||||
#define __packed __attribute__((packed))
|
||||
diff --git a/zdev/include/path.h b/zdev/include/path.h
|
||||
index 5252bcf..536ca06 100644
|
||||
--- a/zdev/include/path.h
|
||||
+++ b/zdev/include/path.h
|
||||
@@ -27,7 +27,7 @@
|
||||
#define PATH_PROC "/proc"
|
||||
|
||||
#define PATH_UDEVADM "udevadm"
|
||||
-#define PATH_VMCP "/usr/sbin/vmcp"
|
||||
+#define PATH_VMCP TOOLS_BINDIR "/vmcp"
|
||||
#define PATH_IP "ip"
|
||||
|
||||
#define PATH_ROOT "/"
|
||||
--
|
||||
2.13.6
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 13 23:32:17 UTC 2017 - mpost@suse.com
|
||||
|
||||
- Added s390-tools-sles12sp3-zdev-Use-correct-path-to-vmcp-binary.patch
|
||||
zdev: Use correct path to vmcp binary (bsc#1055909)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 9 20:39:38 UTC 2017 - mpost@suse.com
|
||||
|
||||
|
@ -116,6 +116,7 @@ Patch13: 59-dasd.rules-wait_for.patch
|
||||
Patch14: s390-tools-sles12-fdasd-skip-partition-check-and-BLKRRPART-ioctl.patch
|
||||
Patch15: s390-tools-sles15-Fix-truncation-warning.patch
|
||||
Patch16: s390-tools-sles15-iucvterm-include-ctype-for-toupper.patch
|
||||
Patch17: s390-tools-sles15-zdev-Use-correct-path-to-vmcp-binary.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
ExclusiveArch: s390 s390x
|
||||
@ -188,6 +189,7 @@ to list files and directories.
|
||||
%patch14 -p1
|
||||
%patch15 -p1
|
||||
%patch16 -p1
|
||||
%patch17 -p1
|
||||
|
||||
cp -vi %{S:22} CAUTION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user