Cleanup perl 5.17.2

This commit is contained in:
Samuel Tyler 2025-08-28 13:56:15 +10:00
parent 5f20fddc29
commit 15537188e6
8 changed files with 39 additions and 349 deletions

View file

@ -7,8 +7,13 @@ src_prepare() {
mv Compress-Raw-Zlib_config.in cpan/Compress-Raw-Zlib/config.in
# Socket versions greater than 2.000 have many difficult problems building
# in 5.17.x versions; replace them with 2.000
rm -r cpan/Socket
mv ../Socket-2.000 cpan/Socket
# Remove miscellaneous pregenerated files
rm -f Porting/Glossary \
rm Porting/Glossary \
cpan/Devel-PPPort/parts/apidoc.fnc Configure config_h.SH \
x2p/a2p.c cpan/Win32API-File/cFile.pc cpan/Sys-Syslog/win32/Win32.pm \
utils/Makefile
@ -18,17 +23,14 @@ src_prepare() {
# Generated tests
rm cpan/Devel-PPPort/t/*.t cpan/Unicode-Collate/Collate/keys.txt
# Partially generated file
#sed -i '/GENERATED CODE/q' utf8.h
# Regenerate other prebuilt header files
# Taken from headers of regen scripts
rm -f lib/warnings.pm warnings.h regnodes.h reentr.h reentr.c \
rm lib/warnings.pm warnings.h regnodes.h reentr.h reentr.c \
overload.h overload.c opcode.h opnames.h pp_proto.h \
keywords.h embed.h embedvar.h perlapi.c perlapi.h \
proto.h lib/overload/numbers.pm regcharclass.h perly.{tab,h,act} \
mg_{raw.h,vtable.h,names.c} keywords.c l1_char_class_tab.h \
lib/feature.pm unicode_constants.h charclass_invlists.h
lib/feature.pm charclass_invlists.h
perl regen.pl
perl regen_perly.pl -b bison-2.3
perl regen/keywords.pl