Ensure digest of lib/unicore/mktables is reproducible

For reasons Perl has decided files that don't exist should be given a
random "small" digest to make them rebuild always. That isn't helpful
for reproducibility.
This commit is contained in:
Samuel Tyler 2025-09-15 10:11:19 +10:00
parent 7bc5ec4555
commit 83ad28221a
5 changed files with 25 additions and 1 deletions

View file

@ -35,6 +35,11 @@ src_prepare() {
lib/feature.pm lib/B/Op_private.pm miniperlmain.c unicode_constants.h \ lib/feature.pm lib/B/Op_private.pm miniperlmain.c unicode_constants.h \
charclass_invlists.h ebcdic_tables.h packsizetables.c overload.c \ charclass_invlists.h ebcdic_tables.h packsizetables.c overload.c \
mg_names.c mg_names.c
# If an input file does not exist, the "digest" of the input file (used as
# a manifest of inputs) in the generated file is a random number, which is
# not reproducible
touch lib/unicore/mktables.lst
perl regen.pl perl regen.pl
perl regen_perly.pl -b bison-2.3 perl regen_perly.pl -b bison-2.3
perl regen/keywords.pl perl regen/keywords.pl

View file

@ -35,6 +35,11 @@ src_prepare() {
lib/feature.pm lib/B/Op_private.pm miniperlmain.c unicode_constants.h \ lib/feature.pm lib/B/Op_private.pm miniperlmain.c unicode_constants.h \
charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \ charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \
packsizetables.inc packsizetables.inc
# If an input file does not exist, the "digest" of the input file (used as
# a manifest of inputs) in the generated file is a random number, which is
# not reproducible
touch lib/unicore/mktables.lst
perl regen.pl perl regen.pl
perl regen_perly.pl -b bison-2.3 perl regen_perly.pl -b bison-2.3
perl regen/keywords.pl perl regen/keywords.pl

View file

@ -30,6 +30,11 @@ src_prepare() {
lib/feature.pm lib/B/Op_private.pm miniperlmain.c unicode_constants.h \ lib/feature.pm lib/B/Op_private.pm miniperlmain.c unicode_constants.h \
charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \ charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \
packsizetables.inc uni_keywords.h packsizetables.inc uni_keywords.h
# If an input file does not exist, the "digest" of the input file (used as
# a manifest of inputs) in the generated file is a random number, which is
# not reproducible
touch lib/unicore/mktables.lst
perl regen.pl perl regen.pl
perl regen_perly.pl -b bison-2.3 perl regen_perly.pl -b bison-2.3
perl regen/keywords.pl perl regen/keywords.pl
@ -51,7 +56,6 @@ src_prepare() {
ln -s ../perl-* "$mconf_dir"/perl ln -s ../perl-* "$mconf_dir"/perl
"$mconf_dir"/U/mkglossary > Porting/Glossary "$mconf_dir"/U/mkglossary > Porting/Glossary
bash dist/Devel-PPPort/devel/mkapidoc.sh . \ bash dist/Devel-PPPort/devel/mkapidoc.sh . \
dist/Devel-PPPort/parts/apidoc.fnc \ dist/Devel-PPPort/parts/apidoc.fnc \
dist/Devel-PPPort/parts/embed.fnc dist/Devel-PPPort/parts/embed.fnc

View file

@ -31,6 +31,11 @@ src_prepare() {
miniperlmain.c unicode_constants.h uni_keywords.h \ miniperlmain.c unicode_constants.h uni_keywords.h \
charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \ charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \
packsizetables.inc packsizetables.inc
# If an input file does not exist, the "digest" of the input file (used as
# a manifest of inputs) in the generated file is a random number, which is
# not reproducible
touch lib/unicore/mktables.lst
perl regen.pl perl regen.pl
perl regen_perly.pl perl regen_perly.pl
perl regen/keywords.pl perl regen/keywords.pl

View file

@ -34,6 +34,11 @@ src_prepare() {
charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \ charclass_invlists.h ebcdic_tables.h mg_names.inc overload.inc \
packsizetables.inc regexp_constants.h locale_table.h scope_types.h \ packsizetables.inc regexp_constants.h locale_table.h scope_types.h \
charclass_invlists.inc charclass_invlists.inc
# If an input file does not exist, the "digest" of the input file (used as
# a manifest of inputs) in the generated file is a random number, which is
# not reproducible
touch lib/unicore/mktables.lst
perl regen.pl perl regen.pl
perl regen_perly.pl perl regen_perly.pl
perl regen/keywords.pl perl regen/keywords.pl