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
From:
schwern
Date:
March 18, 2000 19:57
Subject:
[ID 20000318.004] [PATCH perl.c 5.6RC2] Duplicate SITELIB_STEMand SITELIB_EXP
Message ID:
20000319035646.395C2176B3@blackrider.arena-i.com

This is a bug report for perl from schwern@pobox.com,
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 @@
 #endif
 
 #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);
 #endif


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:
  Platform:
    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 '
    config_args=''
    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
  Compiler:
    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/libc-2.1.3.so, 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:
    v5.6.0-RC2

---
@INC for perl v5.6.0:
    /home/schwern/lib/site_perl
    /usr/local/perl5.6/lib/ppc-linux-64all
    /usr/local/perl5.6/lib
    /usr/local/perl5.6/lib/site_perl/ppc-linux-64all
    /usr/local/perl5.6/lib/site_perl
    .

---
Environment for perl v5.6.0:
    HOME=/home/schwern
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/schwern/bin:/home/schwern/sbin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/X11/bin:/usr/bin/X11:/usr/games
    PERL5LIB=/home/schwern/lib/site_perl
    PERL_BADLANG (unset)
    SHELL=/bin/bash

Thread Next


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