mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-06 00:13:41 +00:00
remove rust build dependencies with sed instead of having constantly adapt the patch
This commit is contained in:
1
build.sh
1
build.sh
@@ -269,6 +269,7 @@ if [ ! -e "${PACKAGES}/proxmox-backup-${BUILD_PACKAGE}_${PROXMOX_BACKUP_VER}_${P
|
||||
|
||||
git_clone_or_fetch https://git.proxmox.com/git/proxmox-backup.git
|
||||
git_clean_and_checkout ${PROXMOX_BACKUP_GIT} proxmox-backup
|
||||
sed -i '/dh-cargo\|cargo:native\|rustc:native\|librust-/d' proxmox-backup/debian/control
|
||||
patch -p1 -d proxmox-backup/ < "${PATCHES}/proxmox-backup-build.patch"
|
||||
[ "${BUILD_PACKAGE}" = "client" ] && \
|
||||
patch -p1 -d proxmox-backup/ < "${PATCHES}/proxmox-backup-client.patch"
|
||||
|
||||
@@ -90,140 +90,6 @@ diff --git a/debian/control b/debian/control
|
||||
index 1b0c36f8..54912cc1 100644
|
||||
--- a/debian/control
|
||||
+++ b/debian/control
|
||||
@@ -2,133 +2,7 @@ Source: rust-proxmox-backup
|
||||
Section: admin
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>= 12),
|
||||
- dh-cargo (>= 24),
|
||||
- cargo:native (>= 0.65.0~),
|
||||
- rustc:native,
|
||||
libstd-rust-dev,
|
||||
- librust-anyhow-1+default-dev,
|
||||
- librust-apt-pkg-native-0.3+default-dev (>= 0.3.2-~~),
|
||||
- librust-base64-0.13+default-dev,
|
||||
- librust-bitflags-1+default-dev (>= 1.2.1-~~),
|
||||
- librust-bytes-1+default-dev,
|
||||
- librust-cidr-0.2+default-dev (>= 0.2.1-~~),
|
||||
- librust-crc32fast-1+default-dev,
|
||||
- librust-crossbeam-channel-0.5+default-dev,
|
||||
- librust-endian-trait-0.6+arrays-dev,
|
||||
- librust-endian-trait-0.6+default-dev,
|
||||
- librust-env-logger-0.9+default-dev,
|
||||
- librust-flate2-1+default-dev,
|
||||
- librust-foreign-types-0.3+default-dev,
|
||||
- librust-futures-0.3+default-dev,
|
||||
- librust-h2-0.3+default-dev,
|
||||
- librust-h2-0.3+stream-dev,
|
||||
- librust-handlebars-3+default-dev,
|
||||
- librust-hex-0.4+default-dev (>= 0.4.3-~~),
|
||||
- librust-hex-0.4+serde-dev (>= 0.4.3-~~),
|
||||
- librust-http-0.2+default-dev,
|
||||
- librust-hyper-0.14+default-dev,
|
||||
- librust-hyper-0.14+full-dev,
|
||||
- librust-lazy-static-1+default-dev (>= 1.4-~~),
|
||||
- librust-libc-0.2+default-dev,
|
||||
- librust-log-0.4+default-dev (>= 0.4.17-~~),
|
||||
- librust-nix-0.26+default-dev (>= 0.26.1-~~),
|
||||
- librust-nom-7+default-dev,
|
||||
- librust-num-traits-0.2+default-dev,
|
||||
- librust-once-cell-1+default-dev (>= 1.3.1-~~),
|
||||
- librust-openssl-0.10+default-dev (>= 0.10.40-~~),
|
||||
- librust-pam-0.7+default-dev,
|
||||
- librust-pam-sys-0.5+default-dev,
|
||||
- librust-pathpatterns-0.1+default-dev (>= 0.1.2-~~),
|
||||
- librust-percent-encoding-2+default-dev (>= 2.1-~~),
|
||||
- librust-pin-project-lite-0.2+default-dev,
|
||||
- librust-proxmox-acme-rs-0.4+default-dev,
|
||||
- librust-proxmox-apt-0.9+default-dev,
|
||||
- librust-proxmox-async-0.4+default-dev,
|
||||
- librust-proxmox-auth-api-0.1+api-dev,
|
||||
- librust-proxmox-auth-api-0.1+api-types-dev,
|
||||
- librust-proxmox-auth-api-0.1+default-dev,
|
||||
- librust-proxmox-auth-api-0.1+pam-authenticator-dev,
|
||||
- librust-proxmox-borrow-1+default-dev,
|
||||
- librust-proxmox-compression-0.1+default-dev (>= 0.1.1-~~),
|
||||
- librust-proxmox-fuse-0.1+default-dev (>= 0.1.3-~~),
|
||||
- librust-proxmox-http-0.8+client-dev,
|
||||
- librust-proxmox-http-0.8+client-trait-dev,
|
||||
- librust-proxmox-http-0.8+default-dev,
|
||||
- librust-proxmox-http-0.8+http-helpers-dev,
|
||||
- librust-proxmox-http-0.8+proxmox-async-dev,
|
||||
- librust-proxmox-http-0.8+rate-limited-stream-dev,
|
||||
- librust-proxmox-http-0.8+rate-limiter-dev,
|
||||
- librust-proxmox-http-0.8+websocket-dev,
|
||||
- librust-proxmox-io-1+default-dev (>= 1.0.1-~~),
|
||||
- librust-proxmox-io-1+tokio-dev (>= 1.0.1-~~),
|
||||
- librust-proxmox-lang-1+default-dev (>= 1.1-~~),
|
||||
- librust-proxmox-ldap-0.1+default-dev,
|
||||
- librust-proxmox-metrics-0.2+default-dev,
|
||||
- librust-proxmox-openid-0.9+default-dev (>= 0.9.9-~~),
|
||||
- librust-proxmox-rest-server-0.3+default-dev,
|
||||
- librust-proxmox-rest-server-0.3+rate-limited-stream-dev,
|
||||
- librust-proxmox-rest-server-0.3+templates-dev,
|
||||
- librust-proxmox-router-1+cli-dev (>= 1.3.1-~~),
|
||||
- librust-proxmox-router-1+default-dev (>= 1.3.1-~~),
|
||||
- librust-proxmox-router-1+server-dev (>= 1.3.1-~~),
|
||||
- librust-proxmox-schema-1+api-macro-dev (>= 1.3.6-~~),
|
||||
- librust-proxmox-schema-1+default-dev (>= 1.3.6-~~),
|
||||
- librust-proxmox-section-config-1+default-dev,
|
||||
- librust-proxmox-serde-0.1+default-dev (>= 0.1.1-~~),
|
||||
- librust-proxmox-serde-0.1+serde-json-dev (>= 0.1.1-~~),
|
||||
- librust-proxmox-shared-memory-0.2+default-dev (>= 0.2.3-~~),
|
||||
- librust-proxmox-sortable-macro-0.1+default-dev (>= 0.1.2-~~),
|
||||
- librust-proxmox-subscription-0.3+api-types-dev,
|
||||
- librust-proxmox-subscription-0.3+default-dev,
|
||||
- librust-proxmox-sys-0.4+acl-dev (>= 0.4.2-~~),
|
||||
- librust-proxmox-sys-0.4+crypt-dev (>= 0.4.2-~~),
|
||||
- librust-proxmox-sys-0.4+default-dev (>= 0.4.2-~~),
|
||||
- librust-proxmox-sys-0.4+logrotate-dev (>= 0.4.2-~~),
|
||||
- librust-proxmox-sys-0.4+timer-dev (>= 0.4.2-~~),
|
||||
- librust-proxmox-tfa-4+api-dev,
|
||||
- librust-proxmox-tfa-4+api-types-dev,
|
||||
- librust-proxmox-tfa-4+default-dev,
|
||||
- librust-proxmox-time-1+default-dev (>= 1.1.2-~~),
|
||||
- librust-proxmox-uuid-1+default-dev,
|
||||
- librust-proxmox-uuid-1+serde-dev,
|
||||
- librust-pxar-0.10+default-dev (>= 0.10.2-~~),
|
||||
- librust-regex-1+default-dev (>= 1.5.5-~~),
|
||||
- librust-rustyline-9+default-dev,
|
||||
- librust-serde-1+default-dev,
|
||||
- librust-serde-1+derive-dev,
|
||||
- librust-serde-cbor-0.11+default-dev (>= 0.11.1-~~),
|
||||
- librust-serde-json-1+default-dev,
|
||||
- librust-serde-plain-1+default-dev,
|
||||
- librust-siphasher-0.3+default-dev,
|
||||
- librust-syslog-6+default-dev,
|
||||
- librust-tar-0.4+default-dev,
|
||||
- librust-termcolor-1+default-dev (>= 1.1.2-~~),
|
||||
- librust-thiserror-1+default-dev,
|
||||
- librust-tokio-1+default-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+fs-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+io-std-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+io-util-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+macros-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+net-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+parking-lot-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+process-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+rt-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+rt-multi-thread-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+signal-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+sync-dev (>= 1.6-~~),
|
||||
- librust-tokio-1+time-dev (>= 1.6-~~),
|
||||
- librust-tokio-openssl-0.6+default-dev (>= 0.6.1-~~),
|
||||
- librust-tokio-stream-0.1+default-dev,
|
||||
- librust-tokio-util-0.7+codec-dev,
|
||||
- librust-tokio-util-0.7+default-dev,
|
||||
- librust-tokio-util-0.7+io-dev,
|
||||
- librust-tower-service-0.3+default-dev,
|
||||
- librust-udev-0.4+default-dev,
|
||||
- librust-url-2+default-dev (>= 2.1-~~),
|
||||
- librust-walkdir-2+default-dev,
|
||||
- librust-xdg-2+default-dev (>= 2.2-~~),
|
||||
- librust-zstd-0.6+bindgen-dev,
|
||||
- librust-zstd-0.6+default-dev,
|
||||
libacl1-dev,
|
||||
libfuse3-dev,
|
||||
libsystemd-dev (>= 246-~~),
|
||||
@@ -141,18 +15,18 @@ Build-Depends: debhelper (>= 12),
|
||||
fonts-open-sans <!nodoc>,
|
||||
graphviz <!nodoc>,
|
||||
|
||||
Reference in New Issue
Block a user