forked from pool/s390-tools
6a6c0cb679
*** v2.34.0 * Changes of existing tools: - ap_tools/ap-check: Add support for vfio-ap dynamic configuration - dbginfo.sh: Update/Add additional DASD data collection - dumpconf: Add new parameter 'SCP_DATA' for SCSI/NVMe/ECKD dump devices - libutil: Make formatted meta-data configurable - s390-tools: Replace 'which' with built-in 'command -v' - zdump/dfi_elf: Support core dumps of vr-kernels * Bug Fixes: - chzdev: Fix warning about failed ATTR writes by udev - rust/pv: Try again if first CRL-URI is invalid - rust/pvattest: Add short option for --arpk - zdump: Fix 'zgetdump -i' ioctl error on s390 formatted dump file *** v2.33.1 * Bug Fixes: - s390-tools: Fix formatting and typos in README.md - s390-tools: Fix release string *** v2.33.0 * Add new tools / libraries: - chpstat: New tool for displaying channel path statistics - libutil: Add output format helpers(util_fmt: JSON, JSON-SEQ, CSV, text pairs) * Changes of existing tools / libraries: - chzdev: Add --is-owner to identify files created by zdev - dasdfmt: Change default mode to always use full-format (Note: affects ESE DASD) - libap: Significantly reduce delay time between file lock retries - pvattest: Rewrite from C to Rust - pvattest: Support additional data & user-data - rust/pv: Support for Attestation * Bug Fixes: - chreipl: Improve disk type detection when running under QEMU - dbginfo.sh: Use POSIX option with uname - s390-tools: Fix missing hyphen escapes in the man page for many tools - zipl/src: Fix bugs in disk_get_info() reproducible in corner cases *** v2.32.0 * Changes of existing tools: - cpumf/lscpumf: add support for machine type 3932 - genprotimg, pvattest, and pvsecret accept IBM signing key with Armonk as subject locality - zdump/zipl: Support for List-Directed dump from ECKD DASD - zkey: Detect FIPS mode and generate PBKDF for luksFormat according to it * Bug Fixes: - dbginfo.sh: dash compatible copy sequence - rust/pv_core: Fix UvDeviceInfo::get() method - zipl/src: Fix leak of files if run with a broken configuration - zkey: Fix convert command to accept only keys of type CCA-AESDATA * Revendored vendor.tar.gz * Removed obsolete patches - s390-tools-sles15sp5-01-rust-pv-support-Armonk-in-IBM-signing-key-subject.patch - s390-tools-sles15sp6-02-genprotimg-support-Armonk-in-IBM-signing-key-subject.patch - s390-tools-sles15sp6-03-libpv-support-Armonk-in-IBM-signing-key-subject.patch - s390-tools-sles15sp6-04-pvattest-Fix-root-ca-parsing.patch - s390-tools-sles15sp6-genprotimg-makefile.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=219
93 lines
3.6 KiB
Diff
93 lines
3.6 KiB
Diff
From 0748d365a60477c96cb9f6a12e9dbe547d549e1f Mon Sep 17 00:00:00 2001
|
|
From: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
Date: Tue, 12 Mar 2024 09:33:19 +0000
|
|
Subject: [PATCH] genprotimg/**/Makefile: Fix staged installs
|
|
|
|
Fix the support for staged installs. The Makefile variable `PKGDATADIR`
|
|
uses `DESTDIR` for all Makefile target, but actually it should only be
|
|
used for the `install*` and `uninstall*` targets. [1] Fix this by using
|
|
`DESTDIR` only for `install*` targets - uninstall* targets are not
|
|
supported by s390-tools.
|
|
|
|
Before this change, if `DESTDIR` was set for staged installs,
|
|
`genprotimg` has tried to find the bootloader binaries at the temporary
|
|
installation path `$DESTDIR$(TOOLS_DATADIR)/genprotimg/` instead of
|
|
`$(TOOLS_DATADIR)/genprotimg`.
|
|
|
|
[1] https://www.gnu.org/prep/standards/html_node/DESTDIR.html
|
|
|
|
Fixes: 65b9fc442c1a ("genprotimg: introduce new tool for the creation of PV images")
|
|
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
|
|
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
|
|
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
|
|
---
|
|
genprotimg/Makefile | 6 +++---
|
|
genprotimg/boot/Makefile | 8 ++++----
|
|
genprotimg/src/Makefile | 2 +-
|
|
3 files changed, 8 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/genprotimg/Makefile b/genprotimg/Makefile
|
|
index 8c9f7048..6a2e37e4 100644
|
|
--- a/genprotimg/Makefile
|
|
+++ b/genprotimg/Makefile
|
|
@@ -3,7 +3,7 @@ include ../common.mak
|
|
|
|
.DEFAULT_GOAL := all
|
|
|
|
-PKGDATADIR := "$(DESTDIR)$(TOOLS_DATADIR)/genprotimg"
|
|
+PKGDATADIR := "$(TOOLS_DATADIR)/genprotimg"
|
|
TESTS :=
|
|
SUBDIRS := boot src man
|
|
RECURSIVE_TARGETS := all-recursive install-recursive clean-recursive
|
|
@@ -11,8 +11,8 @@ RECURSIVE_TARGETS := all-recursive install-recursive clean-recursive
|
|
all: all-recursive
|
|
|
|
install: install-recursive
|
|
- $(INSTALL) -d -m 755 "$(PKGDATADIR)"
|
|
- $(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 samples/check_hostkeydoc "$(PKGDATADIR)"
|
|
+ $(INSTALL) -d -m 755 "$(DESTDIR)$(PKGDATADIR)"
|
|
+ $(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 samples/check_hostkeydoc "$(DESTDIR)$(PKGDATADIR)"
|
|
|
|
clean: clean-recursive
|
|
|
|
diff --git a/genprotimg/boot/Makefile b/genprotimg/boot/Makefile
|
|
index 799df9cc..73f3c9a8 100644
|
|
--- a/genprotimg/boot/Makefile
|
|
+++ b/genprotimg/boot/Makefile
|
|
@@ -7,7 +7,7 @@ DEBUG_FILES := $(addsuffix .debug,$(FILES))
|
|
ifeq ($(HOST_ARCH),s390x)
|
|
ZIPL_DIR := $(rootdir)/zipl
|
|
ZIPL_BOOT_DIR := $(ZIPL_DIR)/boot
|
|
-PKGDATADIR := $(DESTDIR)$(TOOLS_DATADIR)/genprotimg
|
|
+PKGDATADIR := $(TOOLS_DATADIR)/genprotimg
|
|
|
|
INCLUDE_PATHS := $(ZIPL_BOOT_DIR) $(ZIPL_DIR)/include $(rootdir)/include
|
|
INCLUDE_PARMS := $(addprefix -I,$(INCLUDE_PATHS))
|
|
@@ -86,9 +86,9 @@ stage3b.elf: head.o $(ZIPL_OBJS)
|
|
@chmod a-x $@
|
|
|
|
install: stage3a.bin stage3b_reloc.bin
|
|
- $(INSTALL) -d -m 755 "$(PKGDATADIR)"
|
|
- $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3a.bin "$(PKGDATADIR)"
|
|
- $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3b_reloc.bin "$(PKGDATADIR)"
|
|
+ $(INSTALL) -d -m 755 "$(DESTDIR)$(PKGDATADIR)"
|
|
+ $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3a.bin "$(DESTDIR)$(PKGDATADIR)"
|
|
+ $(INSTALL) -g $(GROUP) -o $(OWNER) -m 644 stage3b_reloc.bin "$(DESTDIR)$(PKGDATADIR)"
|
|
|
|
else
|
|
# Don't generate the dependency files (see `common.mak` for the
|
|
diff --git a/genprotimg/src/Makefile b/genprotimg/src/Makefile
|
|
index 08734bff..d447e6cf 100644
|
|
--- a/genprotimg/src/Makefile
|
|
+++ b/genprotimg/src/Makefile
|
|
@@ -3,7 +3,7 @@ include ../../common.mak
|
|
|
|
bin_PROGRAM = genprotimg
|
|
|
|
-PKGDATADIR ?= "$(DESTDIR)$(TOOLS_DATADIR)/genprotimg"
|
|
+PKGDATADIR ?= "$(TOOLS_DATADIR)/genprotimg"
|
|
SRC_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
TOP_SRCDIR := $(SRC_DIR)/../
|
|
ROOT_DIR = $(TOP_SRC_DIR)/../../
|
|
|