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

[ID 20000318.004] [PATCH perl.c 5.6RC2] Duplicate SITELIB_STEMand SITELIB_EXP

Thread Next
March 18, 2000 19:57
[ID 20000318.004] [PATCH perl.c 5.6RC2] Duplicate SITELIB_STEMand SITELIB_EXP
Message ID:

This is a bug report for perl from,
generated with the help of perlbug 1.27 running under perl v5.6.0.

[Please enter your report here]

I usually remove the version specific subdirectory off of the site lib
path when I configure, gets in the way more often than not (of course,
the new extra @INC feature dampens this somewhat).  Anyhow, currently
if site lib is something like: /usr/lib/perl5/site_perl/ (instead of
/usr/lib/perl5/site_perl/5.6) the SITELIB_STEM will come out the same,
thus you'll have duplicate directory entries in @INC.

This patch notes and fixes this problem, though perhaps it would be
better to handle at the point where config.h is built.

--- perl.c	2000/03/19 03:30:17
+++ perl.c	2000/03/19 03:30:58
@@ -3278,6 +3278,9 @@
 #ifdef SITELIB_STEM /* Search for version-specific dirs below here */
+    /* SITELIB_STEM and SITELIB_EXP will often be the same.
+     * no point in duplicating them in @INC */
+    if( strcmp(SITELIB_STEM, SITELIB_EXP) )
     incpush(SITELIB_STEM, FALSE, TRUE);

Of course, this can wait until after 5.6.0 

[Please do not change anything below this line]

Site configuration information for perl v5.6.0:

Configured by schwern at Sat Mar 18 21:03:34 EST 2000.

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
    osname=linux, osvers=2.2.15pre3, archname=ppc-linux-64all
    uname='linux blackrider 2.2.15pre3 #3 sat jan 29 18:02:45 cet 2000 ppc unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=define use64bitall=define uselongdouble=undef usesocks=undef
    cc='cc', optimize='-g', gccversion=2.95.2 20000220 (Debian GNU/Linux)
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -DDEBUGGING_MSTATS -DDEBUGGING_OPS'
    ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -DDEBUGGING_MSTATS -DDEBUGGING_OPS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.6.0:

Environment for perl v5.6.0:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About