]> git.proxmox.com Git - pve-esxi-import-tools.git/commitdiff
buildsys: add d/rustup_home, register force system toolchain
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Mar 2024 12:22:15 +0000 (13:22 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Mar 2024 12:47:27 +0000 (13:47 +0100)
and set RUSTUP_HOME in d/rules, so building also actually works when
rustup is in $PATH

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
debian/rules
debian/rustup_home/toolchains/system [new symlink]

index cf1374478911f252bb1bce20efeb0c8d5d91a932..aacec4c33564992e44cc0ce524bb279ad545ccf8 100755 (executable)
@@ -13,6 +13,7 @@ CARGO=/usr/share/cargo/bin/cargo
 export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
 export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
 export CARGO_HOME = $(CURDIR)/debian/cargo_home
+export RUSTUP_HOME = $(CURDIR)/debian/rustup_home
 
 export DEB_CARGO_CRATE=proxmox-exsi-import$(DEB_VERSION_UPSTREAM)
 export DEB_CARGO_PACKAGE=proxmox-exsi-import
diff --git a/debian/rustup_home/toolchains/system b/debian/rustup_home/toolchains/system
new file mode 120000 (symlink)
index 0000000..e25db58
--- /dev/null
@@ -0,0 +1 @@
+/usr
\ No newline at end of file