From 7d2c1bb3a36099d955b8cede5afb961f227b1860 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Sat, 1 Oct 2022 13:56:50 -0400 Subject: app-shells/starship: Do not strip executable Closes: https://bugs.gentoo.org/866133 Signed-off-by: Randy Barlow Closes: https://github.com/gentoo/gentoo/pull/27561 Signed-off-by: Sam James --- .../starship/files/starship-1.10.3-no-strip.patch | 27 ++++++++++++++++++++++ app-shells/starship/starship-1.10.3.ebuild | 5 ++++ 2 files changed, 32 insertions(+) create mode 100644 app-shells/starship/files/starship-1.10.3-no-strip.patch diff --git a/app-shells/starship/files/starship-1.10.3-no-strip.patch b/app-shells/starship/files/starship-1.10.3-no-strip.patch new file mode 100644 index 000000000000..f5a548f04a47 --- /dev/null +++ b/app-shells/starship/files/starship-1.10.3-no-strip.patch @@ -0,0 +1,27 @@ +From 637ef935b0a4f60524a0c0ce034317f2dee04b78 Mon Sep 17 00:00:00 2001 +From: Randy Barlow +Date: Sat, 1 Oct 2022 13:52:53 -0400 +Subject: [PATCH] Do not strip executable + +This should be a choice for the user. + +Signed-off-by: Randy Barlow +--- + Cargo.toml | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/Cargo.toml b/Cargo.toml +index 2fccbe11..4595c33f 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -123,7 +123,6 @@ tempfile = "3.2.0" + [profile.release] + codegen-units = 1 + lto = true +-strip = true + + [[bin]] + name = "starship" +-- +2.37.3 + diff --git a/app-shells/starship/starship-1.10.3.ebuild b/app-shells/starship/starship-1.10.3.ebuild index 2b91c3a58414..94efc12ef8ab 100644 --- a/app-shells/starship/starship-1.10.3.ebuild +++ b/app-shells/starship/starship-1.10.3.ebuild @@ -389,6 +389,11 @@ KEYWORDS="~amd64" BDEPEND=">=virtual/rust-1.59" +PATCHES=( + # https://bugs.gentoo.org/866133 + "${FILESDIR}"/${PN}-1.10.3-no-strip.patch +) + QA_FLAGS_IGNORED="usr/bin/starship" src_configure() { -- cgit v1.2.3-65-gdbad