develooper Front page | perl.perl5.porters | Postings from March 2000

Re: [ID 20000315.012] Configuring man[13]dir [PATCH]

Thread Previous
From:
Andy Dougherty
Date:
March 15, 2000 10:08
Subject:
Re: [ID 20000315.012] Configuring man[13]dir [PATCH]
Message ID:
Pine.SOL.4.10.10003151253290.22041-100000@maxwell.phys.lafayette.edu
On Wed, 15 Mar 2000, Robin Barker wrote:

> This is a bug report for perl from rmb1@cise.npl.co.uk,
> generated with the help of perlbug 1.27 running under perl v5.6.0.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> This might be two bugs or it might be one:
> 
> (1) ./Configure -des -Dprefix=/home/rmb1/appl -Dman1dir=none
> 
> 	Does not set a default for man3dir, so Configure prompts
> 	for man3dir (despite -d).  There is no further problems.

Thanks for the clear, concise, accurate report. There's a Configure typo
and a tiny Configure thinko at fault here. Patch appended.

> (2) ./Configure -des -Dprefix=~/appl -Dman1dir=none

This one's more subtle, having to do with Configure's Prefixit unit,
and I'm not going to be able to fix it today (or indeed anytime soon).  
The workaround is to use -Dman1dir=' ' (i.e. a single space).
(This works with either way of specifying prefix.)

    Andy Dougherty		doughera@lafayette.edu

--- Configure.RC2	Wed Mar 15 13:07:34 2000
+++ Configure	Wed Mar 15 13:07:39 2000
@@ -6667,7 +6667,7 @@
 echo "If you don't want the manual sources installed, answer 'none'."
 prog=`echo $package | $sed 's/-*[0-9.]*$//'`
 case "$man3dir" in
-'')	dflt=`echo $man1dir | $sed -e 's/man1/man3/g' -e 's/man\.1/man\.3/g'`
+'')	dflt=`echo "$man1dir" | $sed -e 's/man1/man3/g' -e 's/man\.1/man\.3/g'`
 	if $test -d "$privlib/man/man3"; then
 		cat <<EOM >&4
 
@@ -6685,16 +6685,18 @@
 		esac
     fi
 	;;
-' ') dflt=none;;
 *)	dflt="$man3dir" ;;
 esac
+case "$dflt" in
+' ') dflt=none ;;
+esac
 echo " "
 fn=dn+~
 rp="Where do the $package library man pages (source) go?"
 . ./getfile
 man3dir="$ans"
 man3direxp="$ansexp"
-case "$man1dir" in
+case "$man3dir" in
 '')	man3dir=' '
 	installman3dir='';;
 esac


Thread Previous


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