commit:     9c444c544f45d2c5a382bdafc67d4c25c0c5a3f3
Author:     zyxhere💭 <zyx <AT> envs <DOT> net>
AuthorDate: Wed Jan 21 05:38:35 2026 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Jan 21 05:38:35 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c444c54

www-apps/zola: Disable stripping and LTO by cargo

Signed-off-by: zyxhere💭 <zyx <AT> envs.net>

 www-apps/zola/zola-0.22.0.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www-apps/zola/zola-0.22.0.ebuild b/www-apps/zola/zola-0.22.0.ebuild
index ef16a9feec..c9338edf59 100644
--- a/www-apps/zola/zola-0.22.0.ebuild
+++ b/www-apps/zola/zola-0.22.0.ebuild
@@ -632,6 +632,13 @@ DEPEND="${RDEPEND}"
 
 QA_FLAGS_IGNORED="usr/bin/${PN}"
 
+src_prepare() {
+       default
+       # Disable stripping and LTO
+       sed -i 's/profile.release/profile.dummy/' "${S}"/Cargo.toml
+       sed -i '/\profile.dummy/a inherits = \"release\"' "${S}"/Cargo.toml
+}
+
 src_configure() {
        # Use system libraries
        export RUSTONIG_SYSTEM_LIBONIG=1

Reply via email to