From: Prarit Bhargava <prarit(a)redhat.com>
redhat/Makefile: Fix dist-brew and distg-brew targets
The dist-brew and distg-brew targets are failing because the DIST variable
is defined as ".el9 DISTRO=rhel BUILD_TARGET="--scratch
rhel-9.1.0-test-pesign"". This occurs because make doesn't allow the
setting of multiple variables on one line.
Break the variable assignments into separate lines, and fix the dist-brew
and distg-brew targets.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/Makefile b/redhat/Makefile
index blahblah..blahblah 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -672,11 +672,15 @@ dist-vr-check:
exit 1; \
fi
-dist-brew: DIST=.el9 DISTRO=rhel BUILD_TARGET="--scratch
rhel-$(RHEL_MAJOR).1.0-test-pesign"
+dist-brew: DIST=.el9
+dist-brew: DISTRO=rhel
+dist-brew: BUILD_TARGET=--scratch rhel-$(RHEL_MAJOR).1.0-test-pesign
dist-brew dist-koji: dist-%: dist-vr-check dist-srpm
$* $(BUILD_PROFILE) build $(BUILD_FLAGS) $(BUILD_TARGET)
$(SRPMS)/$(RELEASETAG)$(DIST).src.rpm $(OUTPUT_FILE)
-distg-brew: DIST=.el9 DISTRO=rhel BUILD_TARGET="--scratch
rhel-$(RHEL_MAJOR).1.0-test-pesign"
+distg-brew: DIST=.el9
+distg-brew: DISTRO=rhel
+distg-brew: BUILD_TARGET=--scratch rhel-$(RHEL_MAJOR).1.0-test-pesign
distg-brew distg-koji: distg-%: dist-vr-check
$* $(BUILD_PROFILE) build $(BUILD_FLAGS) $(BUILD_TARGET)
"$(RHGITURL)?redhat/koji#$(RHGITCOMMIT)"
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1894