From 73cbccb97a1faa36a43ac74d9a117eb5a48c83444ed098c06a43de8a8877f05b Mon Sep 17 00:00:00 2001 From: Ignaz Forster Date: Mon, 10 Aug 2020 13:44:51 +0000 Subject: [PATCH] Fix i386 build OBS-URL: https://build.opensuse.org/package/show/devel:kubic:ignition/ignition?expand=0&rev=51 --- 0003-fix-i386-build.patch | 19 +++++++++++++++++++ ignition.spec | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 0003-fix-i386-build.patch diff --git a/0003-fix-i386-build.patch b/0003-fix-i386-build.patch new file mode 100644 index 0000000..5879ccd --- /dev/null +++ b/0003-fix-i386-build.patch @@ -0,0 +1,19 @@ +commit f9196c3e0c7b03bedfedeb981987e976f3c59aea +Author: Ignaz Forster +Date: Mon Aug 10 15:33:18 2020 +0200 + + Add support for building on 32 bit x86 archticture + +diff --git a/Makefile b/Makefile +index 35b0deda..d80e0870 100644 +--- a/Makefile ++++ b/Makefile +@@ -6,6 +6,8 @@ ifeq ($(GOARCH),x86_64) + GOARCH=amd64 + else ifeq ($(GOARCH),aarch64) + GOARCH=arm64 ++else ifeq ($(patsubst i%86,386,$(GOARCH)),386) ++ GOARCH=386 + endif + + .PHONY: all diff --git a/ignition.spec b/ignition.spec index a26fb66..2d8aad2 100644 --- a/ignition.spec +++ b/ignition.spec @@ -38,6 +38,7 @@ Source20: ignition-userconfig-timeout.conf Source21: ignition-userconfig-timeout-arm.conf Patch1: 0001-fix-install-permissions.patch Patch2: 0002-allow-multiple-mounts-of-same-device.patch +Patch3: 0003-fix-i386-build.patch Requires: %{name}-dracut-grub2 Requires: dracut Requires: virt-what @@ -86,6 +87,7 @@ which creates firstboot_happened after the first boot. %setup -q %patch1 -p1 %patch2 -p1 +%patch3 -p1 mkdir dracut/30ignition-microos grub systemd_suse chmod +x %{SOURCE3} %{SOURCE4} %{SOURCE8}