From feb120672e6df7ca6f6e14cd81747efe47243f9c Mon Sep 17 00:00:00 2001 From: Brad Barden Date: Wed, 13 Aug 2025 16:34:59 +0000 Subject: [PATCH] htmlify_pods: account for empty prefix ($podroot) Do not pass a podroot argument to pod2html if $podroot is empty. $podroot (via original_prefix('core')) is empty if perl is built with no prefix. An argument of '--podroot=' with no value causes pod2html to fail. --- lib/Module/Build/Base.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Module/Build/Base.pm b/lib/Module/Build/Base.pm index c12173be..6b25e3aa 100644 --- a/lib/Module/Build/Base.pm +++ b/lib/Module/Build/Base.pm @@ -3284,7 +3284,7 @@ sub htmlify_pods { my %opts = ( infile => $infile, outfile => $tmpfile, ( defined($podpath) ? (podpath => $podpath) : ()), - podroot => $podroot, + ( length($podroot) ? (podroot => $podroot) : ()), index => 1, depth => $depth, ); @@ -3306,7 +3306,7 @@ sub htmlify_pods { ( defined($podpath) ? "--podpath=$podpath" : ()), "--infile=$infile", "--outfile=$tmpfile", - "--podroot=$podroot", + ( length($podroot) ? "--podroot=$podroot" : ()), ($path2root ? "--htmlroot=$path2root" : ()), );