From d9da502fbe4ec85aebec18002120b359948e0c18 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Mon, 27 Jul 2026 20:19:39 +0200 Subject: [PATCH] Copy LICENSE into confluent_osdeploy before leaving the directory The copy ran after the cd to the repo root, so it read ../LICENSE from outside the checkout and never placed the file in confluent_osdeploy/. The tarball went out without it and the spec's %install, which does "cp LICENSE" after %setup cds into the unpacked directory, failed. imgutil/buildrpm already copies before its cd; do the same here. The aarch64 spec has its LICENSE lines commented out, so only the x86_64 build broke, but the copy was equally wrong in both scripts. --- confluent_osdeploy/buildrpm | 2 +- confluent_osdeploy/buildrpm-aarch64 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_osdeploy/buildrpm b/confluent_osdeploy/buildrpm index f2fb308a..61dcc228 100755 --- a/confluent_osdeploy/buildrpm +++ b/confluent_osdeploy/buildrpm @@ -1,8 +1,8 @@ cd $(dirname $0) VERSION=`../mkversion --tilde` || exit 1 sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy.spec.tmpl > confluent_osdeploy.spec -cd .. cp ../LICENSE . +cd .. tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy mv confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/ cd - diff --git a/confluent_osdeploy/buildrpm-aarch64 b/confluent_osdeploy/buildrpm-aarch64 index 872bc8e1..62ded8cb 100644 --- a/confluent_osdeploy/buildrpm-aarch64 +++ b/confluent_osdeploy/buildrpm-aarch64 @@ -1,8 +1,8 @@ cd $(dirname $0) VERSION=`../mkversion --tilde` || exit 1 sed -e "s/#VERSION#/$VERSION/" confluent_osdeploy-aarch64.spec.tmpl > confluent_osdeploy-aarch64.spec -cd .. cp ../LICENSE . +cd .. tar Jcvf confluent_osdeploy.tar.xz confluent_osdeploy mv confluent_osdeploy.tar.xz ~/rpmbuild/SOURCES/ cd -