Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] build-helper/rust.sh: prevent stripping by cargo
@ 2023-11-28 10:57 Johnnynator
  2023-11-28 11:23 ` [PR PATCH] [Merged]: " Johnnynator
  0 siblings, 1 reply; 2+ messages in thread
From: Johnnynator @ 2023-11-28 10:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

There is a new pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages rust-dbg
https://github.com/void-linux/void-packages/pull/47460

build-helper/rust.sh: prevent stripping by cargo
Some rust pacakges (e.g. eza and bat) do set strip = true
in their release profile which removes the debug symbols
before xbps-src can split them.

closes #47459


A patch file from https://github.com/void-linux/void-packages/pull/47460.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-rust-dbg-47460.patch --]
[-- Type: text/x-diff, Size: 842 bytes --]

From 02db441c7d520c4d9f7221def57eacde69190a4e Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
Date: Tue, 28 Nov 2023 11:54:54 +0100
Subject: [PATCH] build-helper/rust.sh: prevent stripping by cargo

Some rust pacakges (e.g. eza and bat) do set strip = true
in their release profile which removes the debug symbols
before xbps-src can split them.

closes #47459
---
 common/build-helper/rust.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/build-helper/rust.sh b/common/build-helper/rust.sh
index f13ef7aa39568..460aad6a12e12 100644
--- a/common/build-helper/rust.sh
+++ b/common/build-helper/rust.sh
@@ -30,6 +30,9 @@ else
 	unset CARGO_BUILD_TARGET
 fi
 
+# prevent cargo stripping debug symbols
+export CARGO_PROFILE_RELEASE_STRIP=false
+
 # For cross-compiling rust -sys crates
 export PKG_CONFIG_ALLOW_CROSS=1
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: build-helper/rust.sh: prevent stripping by cargo
  2023-11-28 10:57 [PR PATCH] build-helper/rust.sh: prevent stripping by cargo Johnnynator
@ 2023-11-28 11:23 ` Johnnynator
  0 siblings, 0 replies; 2+ messages in thread
From: Johnnynator @ 2023-11-28 11:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 344 bytes --]

There's a merged pull request on the void-packages repository

build-helper/rust.sh: prevent stripping by cargo
https://github.com/void-linux/void-packages/pull/47460

Description:
Some rust pacakges (e.g. eza and bat) do set strip = true
in their release profile which removes the debug symbols
before xbps-src can split them.

closes #47459


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-28 11:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28 10:57 [PR PATCH] build-helper/rust.sh: prevent stripping by cargo Johnnynator
2023-11-28 11:23 ` [PR PATCH] [Merged]: " Johnnynator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).