develooper Front page | perl.perl5.porters | Postings from May 2004

[perl #29937] Entries missing from .packlist

Thread Next
From:
jdhedden @ 1979 . usna . com
Date:
May 28, 2004 15:01
Subject:
[perl #29937] Entries missing from .packlist
Message ID:
rt-3.0.9-29937-88315.2.18472609678159@perl.org
# New Ticket Created by  jdhedden@1979.usna.com 
# Please include the string:  [perl #29937]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=29937 >


This is a bug report for perl from jdhedden@1979.usna.com,
generated with the help of perlbug 1.35 running under perl v5.8.4.

I have found that several items are missing from the .packlist
generated by 'make install'.  I have developed 'fixes' for these as
well.

For the Cygwin environment, 'installperl' does not add the following
files to .packlist: bin/ld2, bin/perlld, bin/cygperl5_?_?.dll

In the general case, 'installman' does not add the following files to
.packlist:  man1/psed.1, man1/pstruct.1

(I have not investigated whether or not 'installhtml' is 100% in this
regard.)

Below are patches to fix these issues:

### START OF PATCH FOR 'installperl' ###

*** installperl.old     Tue Apr 20 11:32:38 2004
--- installperl.fixed   Fri May 28 15:09:43 2004
***************
*** 252,257 ****
--- 252,260 ----
                                " some tests failed! (Installing
anyway.)\n";
  } #if (!$Is_NetWare)
  
+ # This will be used to store the packlist
+ my $packlist = ExtUtils::Packlist->new("$installarchlib/.packlist");
+ 
  if (($Is_W32 and ! $Is_NetWare) or $Is_Cygwin) {
      my $perldll;
  
***************
*** 266,271 ****
--- 269,275 ----
                safe_unlink("$installbin/$_");
                copy("$_", "$installbin/$_");
                chmod(0755, "$installbin/$_");
+               $packlist->{"$installbin/$_"} = { type => 'file' };
            };
            open (LD2, ">$installbin/ld2");
            print LD2 <<SHELL;
***************
*** 302,312 ****
      safe_unlink("$installbin/$perldll");
      copy("$perldll", "$installbin/$perldll");
      chmod(0755, "$installbin/$perldll");
  } # if (($Is_W32 and ! $Is_NetWare) or $Is_Cygwin)
  
- # This will be used to store the packlist
- my $packlist = ExtUtils::Packlist->new("$installarchlib/.packlist");
- 
  # First we install the version-numbered executables.
  
  if ($Is_VMS) {
--- 306,314 ----
      safe_unlink("$installbin/$perldll");
      copy("$perldll", "$installbin/$perldll");
      chmod(0755, "$installbin/$perldll");
+     $packlist->{"$installbin/$perldll"} = { type => 'file' };
  } # if (($Is_W32 and ! $Is_NetWare) or $Is_Cygwin)
  
  # First we install the version-numbered executables.
  
  if ($Is_VMS) {

### END OF PATCH FOR 'installperl' ###


### START OF PATCH FOR 'installman' ###

*** installman.old      Fri May 28 13:24:39 2004
--- installman.fixed    Fri May 28 15:14:49 2004
***************
*** 91,96 ****
--- 91,102 ----
            my $new = "$opts{man1dir}/$what2.$opts{man1ext}";
            unlink($new);
            link($old, $new);
+ 
+             my $xold = $old;
+           $xold =~ s/^\Q$opts{'destdir'}\E// if $opts{'destdir'};
+             my $xnew = $new;
+           $xnew =~ s/^\Q$opts{'destdir'}\E// if $opts{'destdir'};
+             $packlist->{$xnew} = { from => $xold, type => 'link' };
        }
      }
  }

### END OF PATCH FOR 'installman' ###
---
Flags:
    category=install
    severity=low
---
Site configuration information for perl v5.8.4:

Configured by jhedden at Thu May 27 15:23:42 EDT 2004.

Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=cygwin, osvers=1.5.10(0.11642),
archname=cygwin-thread-multi-64int
    uname='cygwin_nt-5.0 pn100-02-0043e 1.5.10(0.11642) 2004-05-25
22:07 i686 unknown unknown cygwin '
    config_args='-de -Dprefix=/usr/local
-Dcf_email=jdhedden@1979.usna.com -Dperladmin=jdhedden@1979.usna.com
-Dldflags=-s -Dccdlflags=-s -Dlddlflags=-s -Dusemallocwrap
-Duse64bitint -Dusethreads -A define:optimize=-O2 -pipe
-frename-registers -fomit-frame-pointer -march=pentium3 -mfpmath=sse
-mmmx -msse -Dman3ext=3pm -A define:ld=/usr/local/bin/ld2'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
    optimize='-O2 -pipe -frename-registers -fomit-frame-pointer
-march=pentium3 -mfpmath=sse -mmmx -msse',
    cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
    ccversion='', gccversion='3.3.1 (cygming special)',
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='/usr/local/bin/ld2', ldflags ='-s -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib /lib
    libs=-lgdbm -ldb -lcrypt -lgdbm_compat
    perllibs=-lcrypt -lgdbm_compat
    libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags='-s'
    cccdlflags=' ', lddlflags='-s -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.4:
    /usr/local/lib/perl5/5.8.4/cygwin-thread-multi-64int
    /usr/local/lib/perl5/5.8.4
    /usr/local/lib/perl5/site_perl/5.8.4/cygwin-thread-multi-64int
    /usr/local/lib/perl5/site_perl/5.8.4
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.4:
    CYGWIN=server
    HOME=/home/jhedden
    LANG=C
    LANGUAGE=C
    LC_ALL=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/jhedden/bin:/usr/local/ant/bin:/usr/local/java/bin:/usr
/local/java/jre/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdr
ive/c/blp/API/dde:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdri
ve/c/WINNT/system32/WBEM:/cygdrive/c/Program Files/Common
Files/Autodesk Shared/:/cygdrive/c/Program
Files/Hummingbird/Connectivity/7.10/Accessories/:/cygdrive/c/blp/API:.
    PERLIO=perlio
    PERL_BADLANG (unset)
    SHELL (unset)

=====
Jerry D. Hedden
<< If you're not having fun, then you're not doing it right! >>


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