Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring man[13]dir #1348

Closed
p5pRT opened this issue Mar 15, 2000 · 4 comments
Closed

Configuring man[13]dir #1348

p5pRT opened this issue Mar 15, 2000 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Mar 15, 2000

Migrated from rt.perl.org#2388 (status was 'resolved')

Searchable as RT2388$

@p5pRT
Copy link
Author

p5pRT commented Mar 15, 2000

From @doughera88

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

Inline Patch
--- 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

@p5pRT
Copy link
Author

p5pRT commented Mar 17, 2000

From [Unknown Contact. See original ticket]

(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.)

I thought it was a problem with Prefixit but
the real problem seems to be that when I do
  ./Configure -des -Dprefix=~/appl
none of the config varibles begin ~/appl,
they all start /home/rmb1/appl (just like the *exp variables).

I have a patch, which preserves the unexpandedness of the Directory
output from getfile, when this is possible.

Robin

Inline Patch
--- Configure.orig   Fri Mar 17 13:30:35 2000
+++ Configure   Fri Mar 17 13:57:21 2000
@@ -3311,13 +3311,15 @@
                        Directory)
                                for fp in $gfpth; do
                                        if test "X$fp" = X.; then
-                                           pf="$ansexp"
+                                           dir="$ans"
+                                           direxp="$ansexp"
                                        else    
-                                           pf="$fp/$ansexp"
+                                           dir="$fp/$ansexp"
+                                           direxp="$fp/$ansexp"
                                        fi
-                                       if test -d "$pf"; then
+                                       if test -d "$direxp"; then
                                                type=''
-                                               value="$pf"
+                                               value="$dir"
                                                break
                                        fi
                                done

-- 

Robin Barker | Eail​: Robin.Barker@​npl.co.uk
CISE, Building 10, | Phone​: +44 (0) 20 8943 7090
National Physical Laboratory, | Fax​: +44 (0) 20 8977 7091
Teddington, Middlesex, UK. TW11 OLW | WWW​: http​://www.npl.co.uk

@p5pRT
Copy link
Author

p5pRT commented Dec 6, 2002

From rmb1@cise.npl.co.uk

Fixed by patches submitted bu Robin Barker and Andy Dougherty.

@p5pRT
Copy link
Author

p5pRT commented Dec 6, 2002

rmb1@cise.npl.co.uk - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant