From 1d5cb0707b1614fbfc0d42adde5082388d3dac6b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 10 Nov 2022 13:08:52 +0100 Subject: [PATCH] d/rules: patch out unnecessary librt linkage Signed-off-by: Thomas Lamprecht --- debian/control | 3 ++- debian/rules | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 72e00ff..cd86a7b 100644 --- a/debian/control +++ b/debian/control @@ -13,7 +13,8 @@ Build-Depends: debhelper (>= 12), librust-proxmox-sys-0.4+default-dev, librust-serde-1+default-dev, librust-serde-1+derive-dev, - librust-syslog-4+default-dev + librust-syslog-4+default-dev, + patchelf, Maintainer: Proxmox Support Team Standards-Version: 4.5.1 Vcs-Git: git://git.proxmox.com/git/proxmox-mail-forward.git diff --git a/debian/rules b/debian/rules index a59e8be..de46826 100755 --- a/debian/rules +++ b/debian/rules @@ -15,3 +15,7 @@ export CARGO_HOME = $(CURDIR)/debian/cargo_home override_dh_fixperms: dh_fixperms --exclude proxmox-mail-forward + +override_dh_strip: + dh_strip + patchelf --remove-needed librt.so.1 debian/proxmox-mail-forward/usr/bin/proxmox-mail-forward