diff --git a/containerized-data-importer.changes b/containerized-data-importer.changes index a804a63..1c2861e 100644 --- a/containerized-data-importer.changes +++ b/containerized-data-importer.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 13 11:11:41 UTC 2022 - Guillaume GARDET + +- Enable build on aarch64 + ------------------------------------------------------------------- Mon Jan 10 11:16:13 UTC 2022 - Vasily Ulyanov diff --git a/containerized-data-importer.spec b/containerized-data-importer.spec index 97c7703..10426c1 100644 --- a/containerized-data-importer.spec +++ b/containerized-data-importer.spec @@ -32,7 +32,7 @@ BuildRequires: pkgconfig BuildRequires: rsync BuildRequires: sed BuildRequires: golang(API) = 1.17 -ExclusiveArch: x86_64 +ExclusiveArch: x86_64 aarch64 %description Containerized-Data-Importer (CDI) is a persistent storage management add-on for Kubernetes @@ -115,6 +115,9 @@ the CDI container images. %setup -n go/src/kubevirt.io/%{name} -c -T tar --strip-components=1 -xf %{S:0} +# Fix aarch64 - https://github.com/kubevirt/containerized-data-importer/issues/2048 +sed -i "s#GOARCH=amd64 ##" hack/build/build-go.sh + %build # Hackery to determine which registry path to use in cdi-operator.yaml # when building the manifests