repo/proj/guru:dev commit in: www-apps/zola/files/, www-apps/zola/

"David Roman" <[email protected]> Tue, 04 Aug 2026 08:55:17 +0000 (UTC)
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1785833709.5cf4d643eb4ec28c8fbd2cc465a98cb2fcc84f8d.davidroman@gentoo>
commit:     5cf4d643eb4ec28c8fbd2cc465a98cb2fcc84f8d
Author:     Dustin Smith <d.usty360 <AT> gmail <DOT> com>
AuthorDate: Sat Aug  1 00:42:43 2026 +0000
Commit:     David Roman <stkw0 <AT> disroot <DOT> org>
CommitDate: Tue Aug  4 08:55:09 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5cf4d643

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 <eschwartz <AT> gentoo.org>
Signed-off-by: Dustin Smith <d.usty360 <AT> gmail.com>
Part-of: https://codeberg.org/gentoo/guru/pulls/25
Merges: https://codeberg.org/gentoo/guru/pulls/25
Signed-off-by: David Roman <stkw0 <AT> disroot.org>

 .../files/zola-0.22.1-always-build-manpages.patch  | 30 ++++++++++++++++++++++
 ...zola-0.22.1-r4.ebuild => zola-0.22.1-r5.ebuild} |  4 +++
 2 files changed, 34 insertions(+)

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 <[email protected]>
+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 <[email protected]>
+---
+ 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