# [PATCH] Install man3 manpages to $PREFIX/share/man/man3 even for site installs

3 messages from 2007-07-19 to 2007-07-20. Participants: martin f. krafft, Junio C Hamano, Randal L. Schwartz.
Thread: https://gitlist.dev/t/9107

## martin f. krafft, 2007-07-19 12:45

Subject: [PATCH] Install man3 manpages to $PREFIX/share/man/man3 even for site installs
Message-ID: <11848491502417-git-send-email-madduck@madduck.net>
URL: https://gitlist.dev/e/11848491502417-git-send-email-madduck%40madduck.net

```
MakeMaker supports three installation modes: perl, site, and vendor. The first
and third install manpages to $PREFIX/share/man, only site installs to
$PREFIX/man. For consistency with the rest of git, which does not make the
distinction and writes all manpages to $PREFIX/share/man, this change makes
sure that perl does too, even when it's installed in site mode.

Signed-off-by: martin f. krafft <madduck@madduck.net>
---
 perl/Makefile.PL |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 4375161..6aecd89 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -29,5 +29,6 @@ WriteMakefile(
 	VERSION_FROM    => 'Git.pm',
 	PM		=> \%pm,
 	MAKEFILE	=> 'perl.mak',
+	INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3',
 	%extra
 );
-- 
1.5.3.rc2.19.gc4fba-dirty

```

## Junio C Hamano, 2007-07-20 00:42

Subject: Re: [PATCH] Install man3 manpages to $PREFIX/share/man/man3 even for site installs
Message-ID: <7vzm1r29df.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vzm1r29df.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <11848491502417-git-send-email-madduck@madduck.net>

```
Randal, I cannot decide if this is the right thing to do, or 
better than what we currently do.  Could you care to enlighten
us please?

"martin f. krafft" <madduck@madduck.net> writes:

> MakeMaker supports three installation modes: perl, site, and vendor. The first
> and third install manpages to $PREFIX/share/man, only site installs to
> $PREFIX/man. For consistency with the rest of git, which does not make the
> distinction and writes all manpages to $PREFIX/share/man, this change makes
> sure that perl does too, even when it's installed in site mode.
>
> Signed-off-by: martin f. krafft <madduck@madduck.net>
> ---
>  perl/Makefile.PL |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/perl/Makefile.PL b/perl/Makefile.PL
> index 4375161..6aecd89 100644
> --- a/perl/Makefile.PL
> +++ b/perl/Makefile.PL
> @@ -29,5 +29,6 @@ WriteMakefile(
>  	VERSION_FROM    => 'Git.pm',
>  	PM		=> \%pm,
>  	MAKEFILE	=> 'perl.mak',
> +	INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3',
>  	%extra
>  );
> -- 
> 1.5.3.rc2.19.gc4fba-dirty

```

## Randal L. Schwartz, 2007-07-20 00:46

Subject: Re: [PATCH] Install man3 manpages to $PREFIX/share/man/man3 even for site installs
Message-ID: <861wf37vhz.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/861wf37vhz.fsf%40blue.stonehenge.com
In-Reply-To: <7vzm1r29df.fsf@assigned-by-dhcp.cox.net>

```
>>>>> "Junio" == Junio C Hamano <gitster@pobox.com> writes:

Junio> Randal, I cannot decide if this is the right thing to do, or 
Junio> better than what we currently do.  Could you care to enlighten
Junio> us please?

I'll have to research it.  On *every single* major release of Perl, and even
some of the minor ones, the rules for what Makefile.PL does have changed.
It's really maddening.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

```
