home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl501m.zip
/
patches
/
patch.1e
< prev
next >
Wrap
Text File
|
1995-04-20
|
8KB
|
348 lines
# Andy Dougherty doughera@lafcol.lafayette.edu
#
exit 0
This is my patch patch.1e for perl5.001.
To apply, change to your perl directory, run the commands above, then
apply with
patch -p1 -N < thispatch.
Here's what's included:
Configure
Change a few more spots so that ' ' is equivalent to "none".
This allows hint files to set empty values for variables.
Split cpp-symbol awk command for old awk (Harris Night Hawk).
hints/irix_5.sh
hints/irix_6.sh
Explicitly use 'ld' rather than 'cc' to build dynamic modules.
hints/linux.sh
Allow users to specify an alternate compiler on the command line, e.g.
Configure -Dcc=gcc-elf.
lib/ExtUtils/MakeMaker.pm
Fix CC substitution to allow c++ and variants as well.
perl.c
fputs("Unofficial patchlevel 1e.\n",stdout);
pod/Makefile
Include $(TEX) target for running pod2latex.
Include some fixes from Bill Middleton.
Patch and enjoy,
Andy Dougherty doughera@lafcol.lafayette.edu
Dept. of Physics
Lafayette College, Easton PA
Index: Configure
Prereq: 3.0.1.7
*** perl5.001d/Configure Tue Apr 18 14:09:00 1995
--- perl5.001e/Configure Mon Apr 17 15:55:59 1995
***************
*** 20,26 ****
# $Id: Head.U,v 3.0.1.7 1995/03/21 08:46:15 ram Exp $
#
! # Generated on Fri Apr 14 15:43:12 EDT 1995 [metaconfig 3.0 PL53]
cat >/tmp/c1$$ <<EOF
ARGGGHHHH!!!!!
--- 20,26 ----
# $Id: Head.U,v 3.0.1.7 1995/03/21 08:46:15 ram Exp $
#
! # Generated on Mon Apr 17 15:46:57 EDT 1995 [metaconfig 3.0 PL53]
cat >/tmp/c1$$ <<EOF
ARGGGHHHH!!!!!
***************
*** 4296,4302 ****
EOM
case "$lddlflags" in
! ''|' ') case "$osname" in
hpux) dflt='-b' ;;
linux) dflt='-shared' ;;
next) dflt='none' ;;
--- 4296,4302 ----
EOM
case "$lddlflags" in
! '') case "$osname" in
hpux) dflt='-b' ;;
linux) dflt='-shared' ;;
next) dflt='none' ;;
***************
*** 4323,4329 ****
EOM
case "$ccdlflags" in
! ''|' ') case "$osname" in
hpux) dflt='-Wl,-E' ;;
linux) dflt='-rdynamic' ;;
next) dflt='none' ;;
--- 4323,4329 ----
EOM
case "$ccdlflags" in
! '') case "$osname" in
hpux) dflt='-Wl,-E' ;;
linux) dflt='-rdynamic' ;;
next) dflt='none' ;;
***************
*** 7392,7398 ****
chmod +x ccsym
$eunicefix ccsym
./ccsym | $sort | $uniq >ccsym.raw
! $awk '/\=/ { print $0; next } { print $0"=1" }' ccsym.raw >ccsym.list
$awk '{ print $0"=1" }' Cppsym.true >ccsym.true
$comm -13 ccsym.true ccsym.list >ccsym.own
$comm -12 ccsym.true ccsym.list >ccsym.com
--- 7392,7399 ----
chmod +x ccsym
$eunicefix ccsym
./ccsym | $sort | $uniq >ccsym.raw
! $awk '/\=/ { print $0; next }
! { print $0"=1" }' ccsym.raw >ccsym.list
$awk '{ print $0"=1" }' Cppsym.true >ccsym.true
$comm -13 ccsym.true ccsym.list >ccsym.own
$comm -12 ccsym.true ccsym.list >ccsym.com
Index: hints/irix_5.sh
*** perl5.001d/hints/irix_5.sh Thu Jan 19 19:07:06 1995
--- perl5.001e/hints/irix_5.sh Mon Apr 17 09:08:24 1995
***************
*** 1,4 ****
--- 1,5 ----
# irix_5.sh
+ ld=ld
i_time='define'
ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000"
lddlflags="-shared"
Index: hints/irix_6.sh
*** perl5.001d/hints/irix_6.sh Thu Jan 19 18:59:12 1995
--- perl5.001e/hints/irix_6.sh Mon Apr 17 09:09:32 1995
***************
*** 7,12 ****
--- 7,13 ----
# Perl built with this hints file under IRIX 6.0.1 passes
# all tests (`make test').
+ ld=ld
i_time='define'
cc="cc -32"
ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000"
Index: hints/linux.sh
*** perl5.001d/hints/linux.sh Tue Apr 18 14:09:02 1995
--- perl5.001e/hints/linux.sh Mon Apr 17 12:10:13 1995
***************
*** 10,15 ****
--- 10,19 ----
#
# Last updated Thu Apr 6 12:22:03 EDT 1995
#
+ # If you wish to use something other than 'gcc' for your compiler,
+ # you should specify it on the Configure command line. To use
+ # gcc-elf, for exmample, type
+ # ./Configure -Dcc=gcc-elf
# perl goes into the /usr tree. See the Filesystem Standard
# available via anonymous FTP at tsx-11.mit.edu in
***************
*** 64,70 ****
exit(0); /* succeed (yes, it's ELF) */
}
EOM
! if gcc try.c >/dev/null 2>&1 && ./a.out; then
cat <<'EOM'
You appear to have ELF support. I'll try to use it for dynamic loading.
--- 68,74 ----
exit(0); /* succeed (yes, it's ELF) */
}
EOM
! if ${cc:-gcc} try.c >/dev/null 2>&1 && ./a.out; then
cat <<'EOM'
You appear to have ELF support. I'll try to use it for dynamic loading.
Index: lib/ExtUtils/MakeMaker.pm
*** perl5.001d/lib/ExtUtils/MakeMaker.pm Tue Apr 18 14:09:05 1995
--- perl5.001e/lib/ExtUtils/MakeMaker.pm Tue Apr 18 09:51:17 1995
***************
*** 1,6 ****
package ExtUtils::MakeMaker;
! $Version = 4.093; # Last edited 12 Apr 1995 by Andy Dougherty
use Config;
use Carp;
--- 1,6 ----
package ExtUtils::MakeMaker;
! $Version = 4.094; # Last edited 17 Apr 1995 by Andy Dougherty
use Config;
use Carp;
***************
*** 1229,1235 ****
."Please notify perl5-porters\@nicoh.com\n";
}
my($cccmd)=($old) ? $old : $new;
! $cccmd =~ s/\b\Q$Config{'cc'}\E\b/\$(CC)/;
"CCCMD = $cccmd\n";
}
--- 1229,1235 ----
."Please notify perl5-porters\@nicoh.com\n";
}
my($cccmd)=($old) ? $old : $new;
! $cccmd =~ s/^\s*\Q$Config{'cc'}\E\s/\$(CC) /;
"CCCMD = $cccmd\n";
}
***************
*** 2436,2442 ****
Another attempt to fix writedoc() from Dean Roehrich.
-
v4.092 April 11 1994 by Andreas Koenig
Fixed a docu bug in hint file description. Added printing of a warning
--- 2436,2441 ----
***************
*** 2469,2475 ****
Include Tim's suggestions about $verbose and more careful substitution
of $(CC) for $Config{'cc'}.
! Minor cosmetic fixes for my 80-character wide terminal.
=head1 NOTES
--- 2468,2476 ----
Include Tim's suggestions about $verbose and more careful substitution
of $(CC) for $Config{'cc'}.
! v4.094 April 12 1994 by Andy Dougherty
!
! Include Andreas' improvement of $(CC) detection.
=head1 NOTES
Index: perl.c
*** perl5.001d/perl.c Tue Apr 18 14:08:43 1995
--- perl5.001e/perl.c Tue Apr 18 14:06:04 1995
***************
*** 996,1001 ****
--- 996,1002 ----
return s;
case 'v':
printf("\nThis is perl, version %s\n\n",patchlevel);
+ fputs("\tUnofficial patchlevel 1e.\n",stdout);
fputs("\nCopyright 1987-1994, Larry Wall\n",stdout);
#ifdef MSDOS
fputs("MS-DOS port Copyright (c) 1989, 1990, Diomidis Spinellis\n",
Index: pod/Makefile
*** perl5.001d/pod/Makefile Tue Apr 18 14:09:06 1995
--- perl5.001e/pod/Makefile Tue Apr 18 11:39:24 1995
***************
*** 89,113 ****
perltrap.html \
perlvar.html
! man: $(MAN)
! # pod2html runs on all the pods at once in order to build up
# cross-references.
! html:
$(PERL) pod2html *.pod
.SUFFIXES: .pod .man
! .pod.man:
$(PERL) pod2man $*.pod >$*.man
.SUFFIXES: .pod .html
! .pod.html:
$(PERL) pod2html $*.pod
clean:
! rm -f $(MAN) $(HTML)
realclean: clean
rm -f pod2man pod2latex pod2html
--- 89,150 ----
perltrap.html \
perlvar.html
! TEX = \
! perl.tex \
! perlapi.tex \
! perlbook.tex \
! perlbot.tex \
! perlcall.tex \
! perldata.tex \
! perldebug.tex \
! perldiag.tex \
! perlembed.tex \
! perlform.tex \
! perlfunc.tex \
! perlguts.tex \
! perlipc.tex \
! perlmod.tex \
! perlobj.tex \
! perlop.tex \
! perlovl.tex \
! perlpod.tex \
! perlre.tex \
! perlref.tex \
! perlrun.tex \
! perlsec.tex \
! perlstyle.tex \
! perlsub.tex \
! perlsyn.tex \
! perltrap.tex \
! perlvar.tex
!
! man: pod2man $(MAN)
!
! # pod2html normally runs on all the pods at once in order to build up
# cross-references.
! html: pod2html
$(PERL) pod2html *.pod
+ tex: pod2latex $(TEX)
+
.SUFFIXES: .pod .man
! .pod.man: pod2man
$(PERL) pod2man $*.pod >$*.man
.SUFFIXES: .pod .html
! .pod.html: pod2html
$(PERL) pod2html $*.pod
+ .SUFFIXES: .pod .tex
+
+ .pod.tex: pod2latex
+ $(PERL) pod2latex $*.pod
+
clean:
! rm -f $(MAN) $(HTML) $(TEX)
realclean: clean
rm -f pod2man pod2latex pod2html
End of patch.