From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id BCCE01FF150 for ; Mon, 06 Jul 2026 13:48:30 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0FDC92149E; Mon, 06 Jul 2026 13:48:26 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 1/3] ui: d/rules: don't generate debuginfo for the UI Date: Mon, 6 Jul 2026 13:44:04 +0200 Message-ID: <20260706114822.2751086-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260706114822.2751086-1-d.csapak@proxmox.com> References: <20260706114822.2751086-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.042 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: MZ5UU7UTPXIY6J3I55JSGIC2D5BLKHCQ X-Message-ID-Hash: MZ5UU7UTPXIY6J3I55JSGIC2D5BLKHCQ X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: It's built to wasm, which does not have dbgsym so generating these is just unnecessary waste. Omitting this saves us ~20s per 'make deb' and should produce identical binaries since wasm-bindgen strips the debug info anyway. Signed-off-by: Dominik Csapak --- ui/debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/debian/rules b/ui/debian/rules index 8a81f126..b3b3b078 100755 --- a/ui/debian/rules +++ b/ui/debian/rules @@ -27,12 +27,13 @@ ifneq ($(DEB_DISTRIBUTION),UNRELEASED) endif $(CARGO) prepare-debian $(CURDIR)/debian/cargo_registry --link-from-system + sed -e 's/^debug = true$$/debug = false/g' debian/cargo_home/config.toml echo "\nlto=\"fat\"" >> debian/cargo_home/config.toml echo "\nopt-level=\"s\"" >> debian/cargo_home/config.toml echo "\ncodegen-units=1" >> debian/cargo_home/config.toml # patch cargo_home config to use lld with wasm, otherwise the build fails echo "\n[target.wasm32-unknown-unknown]" >> debian/cargo_home/config.toml - cat debian/cargo_home/config.toml | sed "s/linker=[^']\+/linker=rust-lld/" | grep "^rustflags = " >> debian/cargo_home/config.toml + cat debian/cargo_home/config.toml | sed -e "s/linker=[^']\+/linker=rust-lld/" -e "s/'-C', 'debuginfo=[^']*', //g" | grep "^rustflags = " >> debian/cargo_home/config.toml dh_auto_configure override_dh_strip: -- 2.47.3