mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
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@gentoo.org> Signed-off-by: Dustin Smith <d.usty360@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@disroot.org>
This commit is contained in:
1 parent
7b541f3bad
commit
5cf4d643eb
2 files changed
+34
No files matched your search
@@ -0,0 +1,30 @@
|
||||
From 727763bb6a0cbac63d368c96d8c5d02fab8e12dd Mon Sep 17 00:00:00 2001
|
||||
From: Dustin Smith <d.usty360@gmail.com>
|
||||
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 <eschwartz@gentoo.org>
|
||||
---
|
||||
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
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user