[PATCH 4/4] extutils-makemaker-perl: add new recipe

mingli.yu
2016-08-26T02:27:29Z

From: Mingli Yu <Mingli.Yu@windriver.com>

* Add extutils-makemaker-perl recipe as
file-homedir-perl depends on
extutils-makemaker-perl-native

* Add no-packlist-neither-perllocal-legacy.patch
to avoid generating of .packlist and perllocal.pod
files to avoid conflicts between packages writing
same file

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
.../no-packlist-neither-perllocal-legacy.patch | 96 ++++++++++++++++++++++
.../perl/extutils-makemaker-perl_7.10.bb | 27 ++++++
2 files changed, 123 insertions(+)
create mode 100644 meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch
create mode 100644 meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb

diff --git a/meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch b/meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch
new file mode 100644
index 0000000..30e55cb
--- /dev/null
+++ b/meta/recipes-devtools/perl/extutils-makemaker-perl/no-packlist-neither-perllocal-legacy.patch
@@ -0,0 +1,96 @@
+--- a/lib/ExtUtils/MM_Unix.pm 2014-12-02 13:44:33.000000000 +0100
++++ b/lib/ExtUtils/MM_Unix.pm 2015-07-08 12:45:07.000000000 +0200
+@@ -2122,11 +2122,6 @@
+ };
+
+ push @m,
+-q{ read "}.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
+- write "}.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
+-} unless $self->{NO_PACKLIST};
+-
+- push @m,
+ q{ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \
+ "$(INST_ARCHLIB)" "$(DESTINSTALLARCHLIB)" \
+ "$(INST_BIN)" "$(DESTINSTALLBIN)" \
+@@ -2140,10 +2135,6 @@
+ pure_site_install :: all
+ $(NOECHO) $(MOD_INSTALL) \
+ };
+- push @m,
+-q{ read "}.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
+- write "}.$self->catfile('$(DESTINSTALLSITEARCH)','auto','$(FULLEXT)','.packlist').q{" \
+-} unless $self->{NO_PACKLIST};
+
+ push @m,
+ q{ "$(INST_LIB)" "$(DESTINSTALLSITELIB)" \
+@@ -2158,10 +2149,6 @@
+ pure_vendor_install :: all
+ $(NOECHO) $(MOD_INSTALL) \
+ };
+- push @m,
+-q{ read "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
+- write "}.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{" \
+-} unless $self->{NO_PACKLIST};
+
+ push @m,
+ q{ "$(INST_LIB)" "$(DESTINSTALLVENDORLIB)" \
+@@ -2183,43 +2170,7 @@
+ doc_vendor_install :: all
+ $(NOECHO) $(NOOP)
+
+-} if $self->{NO_PERLLOCAL};
+-
+- push @m, q{
+-doc_perl_install :: all
+- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+- -$(NOECHO) $(DOC_INSTALL) \
+- "Module" "$(NAME)" \
+- "installed into" $(INSTALLPRIVLIB) \
+- LINKTYPE "$(LINKTYPE)" \
+- VERSION "$(VERSION)" \
+- EXE_FILES "$(EXE_FILES)" \
+- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+-
+-doc_site_install :: all
+- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+- -$(NOECHO) $(DOC_INSTALL) \
+- "Module" "$(NAME)" \
+- "installed into" $(INSTALLSITELIB) \
+- LINKTYPE "$(LINKTYPE)" \
+- VERSION "$(VERSION)" \
+- EXE_FILES "$(EXE_FILES)" \
+- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+-
+-doc_vendor_install :: all
+- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+- -$(NOECHO) $(DOC_INSTALL) \
+- "Module" "$(NAME)" \
+- "installed into" $(INSTALLVENDORLIB) \
+- LINKTYPE "$(LINKTYPE)" \
+- VERSION "$(VERSION)" \
+- EXE_FILES "$(EXE_FILES)" \
+- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+-
+-} unless $self->{NO_PERLLOCAL};
++};
+
+ push @m, q{
+ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
+@@ -2570,14 +2521,6 @@
+
+ push @m, q{
+ doc_inst_perl :
+- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
+- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
+- -$(NOECHO) $(DOC_INSTALL) \
+- "Perl binary" "$(MAP_TARGET)" \
+- MAP_STATIC "$(MAP_STATIC)" \
+- MAP_EXTRA "`cat $(INST_ARCHAUTODIR)/extralibs.all`" \
+- MAP_LIBPERL "$(MAP_LIBPERL)" \
+- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
+
+ };
+
diff --git a/meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb b/meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb
new file mode 100644
index 0000000..0bcf161
--- /dev/null
+++ b/meta/recipes-devtools/perl/extutils-makemaker-perl_7.10.bb
@@ -0,0 +1,27 @@
+DESCRIPTION = "This utility is designed to write a Makefile for an extension module \
+from a Makefile.PL. It is based on the Makefile.SH model provided by \
+Andy Dougherty and the perl5-porters."
+
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-2.0"
+PR = "r0"
+
+MAINTAINER= "Poky <poky@yoctoproject.org>"
+HOMEPAGE= "https://metacpan.org/release/ExtUtils-MakeMaker"
+
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
+file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRC_URI = "\
+ https://cpan.metacpan.org/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-${PV}.tar.gz \
+ file://no-packlist-neither-perllocal-legacy.patch \
+"
+
+SRC_URI[md5sum] = "2639a21adee5e0a903730c12dcba08ec"
+SRC_URI[sha256sum] = "83b76cd49e458a55774e2e8d87bd1107bc159ba4219600c8ef10c6b43b0d94c5"
+
+S = "${WORKDIR}/ExtUtils-MakeMaker-${PV}"
+
+inherit cpan allarch
+
+BBCLASSEXTEND = "native"
--
2.8.1