diff --git a/debian/rules b/debian/rules index 759e3eeac..ded56e38d 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,7 @@ include /usr/share/rustc/architecture.mk # The package name for authd, used only locally to avoid repetitions AUTHD_GO_PACKAGE := $(shell grep-dctrl -s XS-Go-Import-Path -n - ./debian/control) -export GOFLAGS := -ldflags=-X=$(AUTHD_GO_PACKAGE)/internal/consts.Version=$(DEB_UPSTREAM_VERSION) --mod=vendor -buildmode=pie +export GOFLAGS := -ldflags=-X=$(AUTHD_GO_PACKAGE)/internal/consts.Version=$(DEB_VERSION_UPSTREAM) --mod=vendor -buildmode=pie export DEB_BUILD_MAINT_OPTIONS := optimize=-lto @@ -85,7 +85,7 @@ override_dh_auto_configure: # Go manual if cargo-vendor-filterer is not around, otherwise dh-cargo # will ensure that what we've filtered is still there. if ! command -v cargo-vendor-filterer 2>/dev/null; then \ - env DEB_CARGO_CRATE="$(DEB_SOURCE)_$(DEB_UPSTREAM_VERSION)" + env DEB_CARGO_CRATE="$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM)" \ $(CARGO_PATH) prepare-debian "$(CARGO_VENDOR_DIR)"; \ else \ dh_auto_configure --buildsystem=cargo; \