From 78330a87bc94e7a6499b597d20c6f9720a4d64a4 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 2 May 2022 21:13:32 -0400 Subject: [PATCH] Actually ship release binaries on RHEL I was perusing Brew build logs to debug packaging issues and to my dismay realized that during the `%install` phase, we were actually *rebuilding* and installing coreos-installer in debug mode. The reason was that we weren't specifying `RELEASE=1` here. The deeper reason is that the `install` target triggers `all` (see https://github.com/coreos/coreos-installer/pull/634 for discussions about that). Anyway, for now let's just fix it here. Fixes 511b4a3 ("Vendor rust dependencies on RHEL only & add coreos-installer-dracut subpackage"). --- rust-coreos-installer.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-coreos-installer.spec b/rust-coreos-installer.spec index 32637a6..c739ca5 100644 --- a/rust-coreos-installer.spec +++ b/rust-coreos-installer.spec @@ -110,7 +110,7 @@ sed -i 's/"-Ccodegen-units=1",//' .cargo/config %install %if 0%{?rhel} && !0%{?eln} -%make_install +%make_install RELEASE=1 # 51coreos-installer for coreos-installer-dracut install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/51coreos-installer/module-setup.sh install -D -m 0755 -t %{buildroot}%{dracutlibdir}/modules.d/51coreos-installer coreos-installer-dracut-%{dracutcommit}/dracut/scripts/coreos-installer-service