Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit c077add

Browse files
committed
Storable 3.05_14: fix build error with perlbrew
stacksize may exit with 13, try to fix the readonly stacksize.h and ignore the exit code, as the next line makes it again. Closes #335.
1 parent d077054 commit c077add

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

Makefile.SH

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ uni.data: $(MINIPERL_EXE) $(CONFIGPM) lib/unicore/mktables $(nonxs_ext)
12011201
$spitshell >>$Makefile <<!GROK!THIS!
12021202
12031203
rebuild_storable: \$(PERL_EXE) $cwd_dep
1204-
\$(RUN_PERL) dist/Storable/stacksize --core
1204+
-\$(RUN_PERL) dist/Storable/stacksize --core
12051205
\$(MAKE) -C dist/Storable PERL_CORE=1
12061206
12071207
!GROK!THIS!

dist/Storable/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017-10-15 13:57:00 rurban
2+
Version 3.05_14
3+
4+
* perlbrew fix: try to fix the readonly stacksize.h
5+
[cperl #335]
6+
17
2017-07-24 13:57:13 rurban
28
Version 3.05_13
39

dist/Storable/Storable.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ package Storable; @ISA = qw(Exporter);
2626

2727
use vars qw($canonical $forgive_me $VERSION $XS_VERSION);
2828

29-
$VERSION = '3.05_13';
29+
$VERSION = '3.05_14';
3030
$XS_VERSION = $VERSION;
3131
$VERSION = eval $VERSION;
3232

dist/Storable/stacksize

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ if ($max_depth == $bad1-1
174174
print "MAX_DEPTH_HASH = $n\n" unless QUIET;
175175
my $max_depth_hash = $n;
176176

177+
chmod 0644, $fn if -e $fn && !-w $fn;
177178
open $f, ">", $fn or die "$fn $!";
178179
print $f "/* bisected with stacksize.pl */\n";
179180
print $f "#define PST_STACK_MAX_DEPTH $max_depth\n";

0 commit comments

Comments
 (0)