On Mon, Sep 14, 2015 at 11:43:04AM -0400, Dave Rolsky via RT wrote:
Show quoted text> On Mon Sep 14 08:37:24 2015, ppisar wrote:
> > When installing the distribution, LibMagic.xs and typemap files are
> > installed too. These file are sources not needed for using the module
> > and should not be installed. This did not happen with File-LibMagic-
> > 1.0.
> >
> > I think it's because the file are distributed unde ./lib, so
> > ExtUtils::MakeMaker installs them.
>
> I suppose this is a bug, but I'm not sure exactly how to fix this. I don't
> want to move the files out of lib (I like keeping all the code together).
> There may be some way to tell EUMM to skip them. Patches are definitely
> welcome.
This patch should fix it.
-- Petr
From 249ba2227493af896ebe408a2ad4866faf8e8e81 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Tue, 15 Sep 2015 13:08:40 +0200
Subject: [PATCH] Install LibMagic.pm from lib only
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This prevents from installing LibMagic.xs and typemap.
CPAN RT#107081
Signed-off-by: Petr PÃsaÅ <ppisar@redhat.com>
---
Makefile.PL | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile.PL b/Makefile.PL
index d306f8e..62723e8 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -27,6 +27,9 @@ my %WriteMakefileArgs = (
"MIN_PERL_VERSION" => "5.008",
"NAME" => "File::LibMagic",
"OBJECT" => "lib/File/LibMagic\$(OBJ_EXT)",
+ "PM" => {
+ "lib/File/LibMagic.pm" => "\$(INST_LIB)/File/LibMagic.pm",
+ },
"PREREQ_PM" => {
"Carp" => 0,
"Exporter" => 0,
--
2.4.3