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.

73 lines
1.9 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. diff --git a/dist/Storable/Makefile.PL b/dist/Storable/Makefile.PL
  10. index a5d9e66891..db420ab30b 100644
  11. --- a/dist/Storable/Makefile.PL
  12. +++ b/dist/Storable/Makefile.PL
  13. @@ -90,12 +90,19 @@ sub depend {
  14. # blib.pm needs arch/lib
  15. $extra_deps = ' Storable.pm';
  16. }
  17. + my $whichperl;
  18. + if ($Config::Config{usecrosscompile}) {
  19. + $whichperl = '$(PERLRUN)';
  20. + }
  21. + else {
  22. + $whichperl = '$(FULLPERLRUNINST)';
  23. + }
  24. my $linktype = uc($_[0]->{LINKTYPE});
  25. my $limit_pm = File::Spec->catfile('lib', 'Storable', 'Limit.pm');
  26. "
  27. $limit_pm : stacksize \$(INST_$linktype)$extra_deps
  28. \$(MKPATH) \$(INST_LIB)
  29. - \$(FULLPERLRUNINST) stacksize $options
  30. + $whichperl stacksize $options
  31. release : dist
  32. git tag \$(VERSION)
  33. diff --git a/dist/Storable/stacksize b/dist/Storable/stacksize
  34. index 7abd3a84cc..14e0739734 100644
  35. --- a/dist/Storable/stacksize
  36. +++ b/dist/Storable/stacksize
  37. @@ -7,6 +7,9 @@ use Cwd;
  38. use File::Spec;
  39. use strict;
  40. +-d "lib" or mkdir "lib";
  41. +-d "lib/Storable" or mkdir "lib/Storable";
  42. +
  43. my $fn = "lib/Storable/Limit.pm";
  44. my $ptrsize = $Config{ptrsize};
  45. my ($bad1, $bad2) = (65001, 25000);
  46. @@ -29,6 +32,10 @@ sub is_miniperl {
  47. }
  48. if (is_miniperl()) {
  49. + if ($Config{usecrosscompile}) {
  50. + write_limits(500, 265);
  51. + exit;
  52. + }
  53. die "Should not run during miniperl\n";
  54. }
  55. my $prefix = "";
  56. @@ -68,9 +75,6 @@ if ($ENV{PERL_CORE}) {
  57. }
  58. }
  59. --d "lib" or mkdir "lib";
  60. --d "lib/Storable" or mkdir "lib/Storable";
  61. -
  62. if ($^O eq "MSWin32") {
  63. require Win32;
  64. my ($str, $major, $minor) = Win32::GetOSVersion();
  65. --
  66. 2.11.0