I've built perl, too, with similar changes, so that package building can continue: https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/vax/10.0_2024Q4/All/perl-5.40.0nb1.tgzIs that possibly a patch that could go into pkgsrc for the meantime?
Yes. However, since I don't know how to conditionally apply patches (although I see it's under discussion), it's much less obtrusive to do something a little simpler (#ifndef __vax__).
The changes to lib/builtin.pm and lib/builtin.t don't affect the building of perl on VAX, so they're unaffected. The patch is in pkgsrc now.
However, I haven't filed an upstream ticket.Did that a minute ago: https://github.com/Perl/perl5/issues/22882
Excellent, and thanks! John