Skip to content

Commit

Permalink
fix: debian concurrents multiarch builds
Browse files Browse the repository at this point in the history
Signed-off-by: Jorropo <[email protected]>
  • Loading branch information
Jorropo committed Dec 18, 2020
1 parent 5f6fef8 commit 08ff25b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -467,19 +467,19 @@ out/minikube_$(DEB_VERSION).deb: out/minikube_$(DEB_VERSION)-0_amd64.deb
cp $< $@

out/minikube_$(DEB_VERSION)-0_%.deb: out/minikube-linux-%
cp -r installers/linux/deb/minikube_deb_template out/minikube_$(DEB_VERSION)
chmod 0755 out/minikube_$(DEB_VERSION)/DEBIAN
sed -E -i 's/--VERSION--/'$(DEB_VERSION)'/g' out/minikube_$(DEB_VERSION)/DEBIAN/control
sed -E -i 's/--ARCH--/'$*'/g' out/minikube_$(DEB_VERSION)/DEBIAN/control
cp -r installers/linux/deb/minikube_deb_template out/minikube_$(DEB_VERSION)-$*
chmod 0755 out/minikube_$(DEB_VERSION)-$*/DEBIAN
sed -E -i 's/--VERSION--/'$(DEB_VERSION)'/g' out/minikube_$(DEB_VERSION)-$*/DEBIAN/control
sed -E -i 's/--ARCH--/'$*'/g' out/minikube_$(DEB_VERSION)-$*/DEBIAN/control
if [ "$*" = "amd64" ]; then \
sed -E -i 's/--RECOMMENDS--/virtualbox/' out/minikube_$(DEB_VERSION)/DEBIAN/control; \
sed -E -i 's/--RECOMMENDS--/virtualbox/' out/minikube_$(DEB_VERSION)-$*/DEBIAN/control; \
else \
sed -E -i '/Recommends: --RECOMMENDS--/d' out/minikube_$(DEB_VERSION)/DEBIAN/control; \
sed -E -i '/Recommends: --RECOMMENDS--/d' out/minikube_$(DEB_VERSION)-$*/DEBIAN/control; \
fi
mkdir -p out/minikube_$(DEB_VERSION)/usr/bin
cp $< out/minikube_$(DEB_VERSION)/usr/bin/minikube
fakeroot dpkg-deb --build out/minikube_$(DEB_VERSION) $@
rm -rf out/minikube_$(DEB_VERSION)
mkdir -p out/minikube_$(DEB_VERSION)-$*/usr/bin
cp $< out/minikube_$(DEB_VERSION)-$*/usr/bin/minikube
fakeroot dpkg-deb --build out/minikube_$(DEB_VERSION)-$* $@
rm -rf out/minikube_$(DEB_VERSION)-$*

rpm_version:
@echo $(RPM_VERSION)
Expand Down

0 comments on commit 08ff25b

Please sign in to comment.