From 5cf4d643eb4ec28c8fbd2cc465a98cb2fcc84f8d Mon Sep 17 00:00:00 2001 From: Dustin Smith Date: Fri, 31 Jul 2026 20:42:43 -0400 Subject: [PATCH] www-apps/zola: always build manpages, regardless of release profile Upstream, zola doesn't build manpages for debug builds [1]. Since USE="debug" creates a debug build, the ebuild would throw an error because it couldn't find any manpages to install. This commit provides a patch that removes the check seen in [1], ensuring the manpages are always available. [1]: https://github.com/getzola/zola/blob/v0.22.1/build.rs#L23-L25 Closes: https://bugs.gentoo.org/979739 Thanks-to: Eli Schwartz Signed-off-by: Dustin Smith Part-of: https://codeberg.org/gentoo/guru/pulls/25 Merges: https://codeberg.org/gentoo/guru/pulls/25 Signed-off-by: David Roman --- .../zola-0.22.1-always-build-manpages.patch | 30 +++++++++++++++++++ ...0.22.1-r4.ebuild => zola-0.22.1-r5.ebuild} | 4 +++ 2 files changed, 34 insertions(+) create mode 100644 www-apps/zola/files/zola-0.22.1-always-build-manpages.patch rename www-apps/zola/{zola-0.22.1-r4.ebuild => zola-0.22.1-r5.ebuild} (99%) diff --git a/www-apps/zola/files/zola-0.22.1-always-build-manpages.patch b/www-apps/zola/files/zola-0.22.1-always-build-manpages.patch new file mode 100644 index 0000000000..0e73682e84 --- /dev/null +++ b/www-apps/zola/files/zola-0.22.1-always-build-manpages.patch @@ -0,0 +1,30 @@ +From 727763bb6a0cbac63d368c96d8c5d02fab8e12dd Mon Sep 17 00:00:00 2001 +From: Dustin Smith +Date: Fri, 31 Jul 2026 20:07:50 -0400 +Subject: [PATCH] Build manpages regardless of PROFILE (debug/release) + +Upstream, manpages are only built when using the release profile. This +patch removes that behavior, making manpages available even for +USE="debug" users. + +Closes: https://bugs.gentoo.org/979739 +Thanks-to: Eli Schwartz +--- + build.rs | 3 --- + 1 file changed, 3 deletions(-) + +--- a/build.rs ++++ b/build.rs +@@ -20,9 +20,6 @@ fn generate_man_pages() { + } + + fn main() { +- if std::env::var("PROFILE").unwrap() != "release" { +- return; +- } + if cfg!(windows) { + generate_pe_header(); + } +-- +2.54.0 + diff --git a/www-apps/zola/zola-0.22.1-r4.ebuild b/www-apps/zola/zola-0.22.1-r5.ebuild similarity index 99% rename from www-apps/zola/zola-0.22.1-r4.ebuild rename to www-apps/zola/zola-0.22.1-r5.ebuild index e0c811852c..27aeb8916a 100644 --- a/www-apps/zola/zola-0.22.1-r4.ebuild +++ b/www-apps/zola/zola-0.22.1-r5.ebuild @@ -639,6 +639,10 @@ DEPEND="${RDEPEND}" BDEPEND="virtual/pkgconfig" +PATCHES=( + "${FILESDIR}"/${P}-always-build-manpages.patch +) + src_prepare() { default # Upstream enables stripping on rel and disables debuginfo on dev