You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.7 KiB

  1. From 682a4acb98783a7f9b5c286b308f12863599fec3 Mon Sep 17 00:00:00 2001
  2. From: Tony Cook <tony@develop-help.com>
  3. Date: Mon, 30 Jul 2018 21:00:52 +1000
  4. Subject: (perl #133411) don't try to load Storable with -Dusecrosscompile
  5. ---
  6. dist/Storable/Makefile.PL | 9 ++++++++-
  7. dist/Storable/stacksize | 10 +++++++---
  8. 2 files changed, 15 insertions(+), 4 deletions(-)
  9. --- a/dist/Storable/Makefile.PL
  10. +++ b/dist/Storable/Makefile.PL
  11. @@ -90,12 +90,19 @@ sub depend {
  12. # blib.pm needs arch/lib
  13. $extra_deps = ' Storable.pm';
  14. }
  15. + my $whichperl;
  16. + if ($Config::Config{usecrosscompile}) {
  17. + $whichperl = '$(PERLRUN)';
  18. + }
  19. + else {
  20. + $whichperl = '$(FULLPERLRUNINST)';
  21. + }
  22. my $linktype = uc($_[0]->{LINKTYPE});
  23. my $limit_pm = File::Spec->catfile('lib', 'Storable', 'Limit.pm');
  24. "
  25. $limit_pm : stacksize \$(INST_$linktype)$extra_deps
  26. \$(MKPATH) \$(INST_LIB)
  27. - \$(FULLPERLRUNINST) stacksize $options
  28. + $whichperl stacksize $options
  29. release : dist
  30. git tag \$(VERSION)
  31. --- a/dist/Storable/stacksize
  32. +++ b/dist/Storable/stacksize
  33. @@ -7,6 +7,9 @@ use Cwd;
  34. use File::Spec;
  35. use strict;
  36. +-d "lib" or mkdir "lib";
  37. +-d "lib/Storable" or mkdir "lib/Storable";
  38. +
  39. my $fn = "lib/Storable/Limit.pm";
  40. my $ptrsize = $Config{ptrsize};
  41. my ($bad1, $bad2) = (65001, 25000);
  42. @@ -29,6 +32,10 @@ sub is_miniperl {
  43. }
  44. if (is_miniperl()) {
  45. + if ($Config{usecrosscompile}) {
  46. + write_limits(500, 265);
  47. + exit;
  48. + }
  49. die "Should not run during miniperl\n";
  50. }
  51. my $prefix = "";
  52. @@ -68,9 +75,6 @@ if ($ENV{PERL_CORE}) {
  53. }
  54. }
  55. --d "lib" or mkdir "lib";
  56. --d "lib/Storable" or mkdir "lib/Storable";
  57. -
  58. if ($^O eq "MSWin32") {
  59. require Win32;
  60. my ($str, $major, $minor) = Win32::GetOSVersion();