Sync Mk with ports
[dports.git] / lang / perl5.12 / files / patch-4d106cc5d8fd328d39b1db3c57572dd3dec915b5
1 From 4d106cc5d8fd328d39b1db3c57572dd3dec915b5 Mon Sep 17 00:00:00 2001
2 From: Nicholas Clark <nick@ccl4.org>
3 Date: Thu, 22 Aug 2013 11:48:29 +0200
4 Subject: [PATCH] For SDBM_File, stop EU::MM from generating its default
5  subdirs rule.
6
7 The default subdirs rule creates a race condition with the rule that
8 Makefile.PL explicitly adds to generate libsdbm.a, which can cause parallel
9 makes to fail.
10 ---
11  ext/SDBM_File/Makefile.PL |  6 ++++++
12  pod/perldelta.pod         | 11 ++++++++++-
13  2 files changed, 16 insertions(+), 1 deletion(-)
14
15 diff --git ext/SDBM_File/Makefile.PL ext/SDBM_File/Makefile.PL
16 index fa16a79..b96b80b 100644
17 --- ext/SDBM_File/Makefile.PL
18 +++ ext/SDBM_File/Makefile.PL
19 @@ -23,6 +23,12 @@ WriteMakefile(
20               PERL_MALLOC_OK => 1,
21               );
22  
23 +# We don't want the default subdir rule, as it creates a race condition with the
24 +# rule we add below.
25 +sub MY::subdir_x {
26 +    return '';
27 +}
28 +
29  sub MY::postamble {
30    if ($^O =~ /MSWin32/ && !defined($ENV{SYSTEMROOT})) {
31         if ($Config{'make'} =~ /dmake/i) {
32 -- 
33 1.8.2.1
34