On 2017-03-04 02:38:41, SREZIC wrote:
Show quoted text> "make test" fails on my freebsd smokers, and probably fails on all
> non-GNU make systems:
>
> $ make test
> "/usr/perl5.25.10p/bin/perl5.25.10" -MExtUtils::Command::MM -e
> 'cp_nonempty' -- XS.bs blib/arch/auto/BackupPC/XS/XS.bs 644
> make: don't know how to make dynamic. Stop
> *** [subdirs-test_dynamic] Error code 2
>
> Stop in /usr/local/src/CPAN/build/2017030406/BackupPC-XS-0.50-0.
>
>
> This is certainly the same problem as discussed
>
https://rt.cpan.org/Ticket/Display.html?id=117800 and can be fixed
> with an empty "dynamic" target in the subdirs.
See attached patch. This fixes the problem on my freebsd systems.
From d1dee6642ffccdb5df69988526cfd3f5cc3163f3 Mon Sep 17 00:00:00 2001
From: Slaven Rezic <slaven@rezic.de>
Date: Sat, 4 Mar 2017 08:39:01 +0100
Subject: [PATCH] workaround for RT #120495 and RT #117800
---
md5/Makefile.PL | 2 ++
zlib/Makefile.PL | 2 ++
2 files changed, 4 insertions(+)
diff --git a/md5/Makefile.PL b/md5/Makefile.PL
index 74e9772..01a2f06 100644
--- a/md5/Makefile.PL
+++ b/md5/Makefile.PL
@@ -14,6 +14,8 @@ pure_all :: static
static :: libmd5$(LIB_EXT)
+dynamic ::
+
libmd5$(LIB_EXT): $(O_FILES)
$(AR) cr libmd5$(LIB_EXT) $(O_FILES)
$(RANLIB) libmd5$(LIB_EXT)
diff --git a/zlib/Makefile.PL b/zlib/Makefile.PL
index 4832c79..25d4ccb 100644
--- a/zlib/Makefile.PL
+++ b/zlib/Makefile.PL
@@ -14,6 +14,8 @@ pure_all :: static
static :: libzlib$(LIB_EXT)
+dynamic ::
+
libzlib$(LIB_EXT): $(O_FILES)
$(AR) cr libzlib$(LIB_EXT) $(O_FILES)
$(RANLIB) libzlib$(LIB_EXT)
--
2.1.2