develooper Front page | perl.perl5.porters | Postings from January 2001

[ID 20010118.024] Tilde (~) does not work for installprefix.

From:
gaa
Date:
January 18, 2001 07:22
Subject:
[ID 20010118.024] Tilde (~) does not work for installprefix.
Message ID:
200101181525.KAA27384@tommy.dgms.com

This is a bug report for perl from gaa@ulticom.com,
generated with the help of perlbug 1.28 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]

I was asked a question about installing the files in another place rather
than the final resting place.  I chose to do this so I could make 
a tar.gz file to make multiple installations easier.  So I gave
the answer:
	~/tmp/perl-5.6-bindist-tmp/usr/local/it
(my "prefix" value is "/usr/local/it" for political reasons)

The resultant Policy.sh file contains (removing comments):
=================================================================
case "$perladmin" in
'') perladmin='gaa@ulticom.com' ;;
esac
case "$prefix" in
'') prefix='/usr/local/it' ;;
esac
case "$siteprefix" in
'') siteprefix='/usr/local/it' ;;
esac
case "$vendorprefix" in
'') vendorprefix='' ;;
esac
case "$installprefix" in
'') installprefix='~/tmp/perl-5.6-bindist-tmp/usr/local/it' ;;
esac
=================================================================

So I did my make and make install.  Unfortunately, it treated the
tilde as if it were any other character.  I ended up with the following
directories under the source directory:
	./lib/CGI/~
	./lib/CPAN/~
	./lib/Carp/~
	./lib/Class/~
	./lib/Devel/~
	./lib/Exporter/~
	./lib/ExtUtils/~
	./lib/File/Spec/~
	./lib/File/~
	./lib/Getopt/~
	./lib/I18N/~
	./lib/IPC/~
	./lib/Math/~
	./lib/Net/~
	./lib/Pod/Text/~
	./lib/Pod/~
	./lib/Search/~
	./lib/Sys/~
	./lib/Term/~
	./lib/Test/~
	./lib/Text/~
	./lib/Tie/~
	./lib/Time/~
	./lib/B/~
	./lib/User/~
	./lib/unicode/In/~
	./lib/unicode/Is/~
	./lib/unicode/To/~
	./lib/unicode/~
	./lib/warnings/~
	./lib/auto/Getopt/Long/~
	./lib/auto/DynaLoader/~
	./lib/auto/B/~
	./lib/auto/ByteLoader/~
	./lib/auto/Data/Dumper/~
	./lib/auto/Devel/DProf/~
	./lib/auto/Devel/Peek/~
	./lib/auto/Fcntl/~
	./lib/auto/File/Glob/~
	./lib/auto/IO/~
	./lib/auto/IPC/SysV/~
	./lib/auto/NDBM_File/~
	./lib/auto/ODBM_File/~
	./lib/auto/Opcode/~
	./lib/auto/POSIX/~
	./lib/auto/SDBM_File/~
	./lib/auto/sdbm/~
	./lib/auto/Socket/~
	./lib/auto/Sys/Hostname/~
	./lib/auto/Sys/Syslog/~
	./lib/auto/attrs/~
	./lib/auto/re/~
	./lib/Data/~
	./lib/IO/Socket/~
	./lib/IO/~
	./lib/~
	./pod/~
	./utils/~
	./x2p/~
	./~
with "tmp/perl-5.6-bindist-tmp/usr/local/it" under them.  In addition,
the man directories had a bunch of entries like:
	~::tmp::perl-5.6-bindist-tmp::usr::local::it::lib::perl5::5.6.0::sun4-solaris-multi::Errno.3

I could set the installprefix to the full path of my home directory to
make this work, but then I would need to edit it as I build different
binary distributions as my home directory is not in the same place on
all our systems.  The "~" needs to be interpretted by the make install
step.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=medium
---
Site configuration information for perl v5.6.0:

Configured by itsrc at Wed Jan 17 19:05:44 EST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris-multi
    uname='sunos tommy 5.6 generic_105181-19 sun4u sparc sunw,ultra-5_10 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
    cppflags='-fno-strict-aliasing'
    ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' '
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
    libc=, so=so, useshrplib=true, libperl=libperl.so.6.0
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E -R /usr/local/it/lib/perl5/5.6.0/sun4-solaris-multi/CORE'
    cccdlflags='-fPIC', lddlflags=' -W,l-E -G'

Locally applied patches:
    

---
@INC for perl v5.6.0:
    /usr/local/it/lib/perl5/5.6.0/sun4-solaris-multi
    /usr/local/it/lib/perl5/5.6.0
    /usr/local/it/lib/perl5/site_perl/5.6.0/sun4-solaris-multi
    /usr/local/it/lib/perl5/site_perl/5.6.0
    /usr/local/it/lib/perl5/site_perl/5.005
    /usr/local/it/lib/perl5/site_perl
    .

---
Environment for perl v5.6.0:
    HOME=/u/gaa
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/u/gaa/bin:.:/usr/local/it/bin:/usr/local/it/sbin:/opt/CSCOcwsi/bin:/opt/CSCOpx/bin:/opt/SUNWrtvc/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/ucb:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/bin/ksh




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