summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAnjan Nath <kaludios@gmail.com>2022-08-08 12:18:20 +0530
committerAnjan Nath <kaludios@gmail.com>2022-08-08 12:39:15 +0530
commit771a35e4b51c46f3af99b380e71e89a86f2a9782 (patch)
tree0d34e678c64965d9b6c2d46b28787cc8a405418a /contrib
parent635293ed149a6680c5999360ce39daf4625bfa92 (diff)
downloadpodman-771a35e4b51c46f3af99b380e71e89a86f2a9782.tar.gz
podman-771a35e4b51c46f3af99b380e71e89a86f2a9782.tar.bz2
podman-771a35e4b51c46f3af99b380e71e89a86f2a9782.zip
pkginstaller: use correct GOARCH value in case of arm build
to compile arm bits the GOARCH should be set to amd64 script was wrongly using aarch64 instead [NO NEW TESTS NEEDED] Signed-off-by: Anjan Nath <kaludios@gmail.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/pkginstaller/package.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/pkginstaller/package.sh b/contrib/pkginstaller/package.sh
index bb91fe01f..f6f7cef16 100755
--- a/contrib/pkginstaller/package.sh
+++ b/contrib/pkginstaller/package.sh
@@ -17,8 +17,12 @@ arch=$(cat "${BASEDIR}/ARCH")
function build_podman() {
pushd "$1"
- make GOARCH="${arch}" podman-remote HELPER_BINARIES_DIR="${HELPER_BINARIES_DIR}"
- make GOARCH="${arch}" podman-mac-helper
+ local goArch="${arch}"
+ if [ "${goArch}" = aarch64 ]; then
+ goArch=arm64
+ fi
+ make GOARCH="${goArch}" podman-remote HELPER_BINARIES_DIR="${HELPER_BINARIES_DIR}"
+ make GOARCH="${goArch}" podman-mac-helper
cp bin/darwin/podman "contrib/pkginstaller/out/packaging/${binDir}/podman"
cp bin/darwin/podman-mac-helper "contrib/pkginstaller/out/packaging/${binDir}/podman-mac-helper"
popd