develooper Front page | perl.perl5.porters | Postings from July 2019

[perl #134284] Trailing slash on -Dprefix causes -Dman{1,3}dir=noneto still install manpages

Thread Next
From:
Dan Book via RT
Date:
July 11, 2019 22:28
Subject:
[perl #134284] Trailing slash on -Dprefix causes -Dman{1,3}dir=noneto still install manpages
Message ID:
rt-4.0.24-3599-1562884082-429.134284-15-0@perl.org
I'm just going to repost that message since RT is displaying it horribly.

As documented in INSTALL[1], the conventional way to disable manpage
installation is the configuration -Dman1dir=none -Dman3dir=none; this
is also used by the --noman option in perl-build. It appears that if
-Dprefix is set to a path with a trailing slash, then the 'none' is
overridden by a path using $oldprefix[2], an internal Configure
variable that is apparently supposed to be set when $prefix was
changed[3]. -Dman{1,3}dir=' ' (a single space character) will work in
all cases, but as this was never documented, this overriding of 'none'
seems like a bug. If it isn't, the INSTALL documentation should
suggest setting a single space instead.

[1] https://github.com/Perl/perl5/blob/dc65f37092690cb834e2b1030cd905ed0a0066dd/INSTALL#L785

[2] https://github.com/Perl/perl5/blob/dc65f37092690cb834e2b1030cd905ed0a0066dd/Configure#L8887 and https://github.com/Perl/perl5/blob/dc65f37092690cb834e2b1030cd905ed0a0066dd/Configure#L7248

[3] https://github.com/perl5-metaconfig/metaconfig/blob/085a724377e683327fecae0021c85fba4dcb653d/U/installdirs/prefix.U#L38

(Archaeology graciously performed by Bram)

-Dan




---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=134284

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About