]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
buildsys: use full DEB_VERSION and correct DEB_HOST_ARCH
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 17:10:42 +0000 (19:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 May 2023 17:26:27 +0000 (19:26 +0200)
The DEB_HOST_ARCH is the one the package is actually built for, the
DEB_BUILD_ARCH is the one of the build host; having this correct
makes cross-building easier, but otherwise it makes no difference.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 52f2062d5178adf8636b55a1e248e9a61b41fef6..0bf36cd5b848f555ce42b9e9f0b30b0bddad88dd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,14 +5,14 @@ PACKAGE=pve-ha-manager
 SIMPACKAGE=pve-ha-simulator
 
 GITVERSION:=$(shell git rev-parse HEAD)
-BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION_UPSTREAM)
+BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
 
-DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
-DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
+DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
+DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
 
-DSC=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
-SIMDEB=$(SIMPACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
-SIMDSC=$(SIMPACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
+DSC=$(PACKAGE)_$(DEB_VERSION).dsc
+SIMDEB=$(SIMPACKAGE)_$(DEB_VERSION)_all.deb
+SIMDSC=$(SIMPACKAGE)_$(DEB_VERSION).dsc
 
 all: deb
 
@@ -48,5 +48,5 @@ distclean: clean
 
 .PHONY: upload
 upload: $(DEB) $(SIMDEB)
-       tar cf - $(DEB) $(DBG_DEB) $(SIMDEB)|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_BUILD_ARCH)
+       tar cf - $(DEB) $(DBG_DEB) $(SIMDEB)|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_HOST_ARCH)