Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id BDC44782AF for ; Thu, 24 Aug 2017 16:11:47 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Aug 2017 09:11:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,422,1498546800"; d="scan'208";a="1165797456" Received: from wrath.jf.intel.com ([10.54.70.9]) by orsmga001.jf.intel.com with ESMTP; 24 Aug 2017 09:11:48 -0700 From: Tim Orling To: openembedded-devel@lists.openembedded.org Date: Thu, 24 Aug 2017 09:11:30 -0700 Message-Id: <20170824161130.15917-1-timothy.t.orling@linux.intel.com> X-Mailer: git-send-email 2.13.5 Subject: [meta-perl][PATCH] libmodule-build-perl: upgrade to v0.4224 and fix qa error X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2017 16:11:48 -0000 * Use COPYRIGHT excerpt from README for license check - Remains the same perl5 license - LICENSE contents is unhelpful "FULLTEXT" * Correct copy-paste error in SUMMARY * Fix rpm package_qa error by 'inherit allarch' * Author is now LEONT instead of KWILLIAMS * Update HOMEPAGE * Add interpreter fix from meta-cpan for lib/Module/Build/Base.pm Signed-off-by: Tim Orling --- meta-perl/recipes-perl/libmodule/files/run-ptest | 16 ++++++++++ .../libmodule/libmodule-build-perl_0.31.bb | 27 ----------------- .../libmodule/libmodule-build-perl_0.4224.bb | 34 ++++++++++++++++++++++ 3 files changed, 50 insertions(+), 27 deletions(-) create mode 100644 meta-perl/recipes-perl/libmodule/files/run-ptest delete mode 100644 meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.31.bb create mode 100644 meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.4224.bb diff --git a/meta-perl/recipes-perl/libmodule/files/run-ptest b/meta-perl/recipes-perl/libmodule/files/run-ptest new file mode 100644 index 000000000..c9f9ca94d --- /dev/null +++ b/meta-perl/recipes-perl/libmodule/files/run-ptest @@ -0,0 +1,16 @@ +#!/bin/sh + +for case in `find t -type f -name '*.t'`; do + perl $case >$case.output 2>&1 + ret=$? + cat $case.output + if [ $ret -ne 0 ]; then + echo "FAIL: ${case%.t}" + elif grep -i 'SKIP' $case.output; then + echo "SKIP: ${case%.t}" + else + echo "PASS: ${case%.t}" + fi + + rm -f $case.output +done diff --git a/meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.31.bb b/meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.31.bb deleted file mode 100644 index c0fa06d08..000000000 --- a/meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.31.bb +++ /dev/null @@ -1,27 +0,0 @@ -SUMMARY = "Module::Build::Tiny - A tiny replacement for Module::Build" -DESCRIPTION = "Many Perl distributions use a Build.PL file instead of a \ -Makefile.PL file to drive distribution configuration, build, test and \ -installation. Traditionally, Build.PL uses Module::Build as the underlying \ -build system. This module provides a simple, lightweight, drop-in replacement. \ -Whereas Module::Build has over 6,700 lines of code; this module has less than \ -120, yet supports the features needed by most distributions." -SECTION = "libs" - -HOMEPAGE = "http://search.cpan.org/~kwilliams/Module-Build-0.31/" - -LICENSE = "Artistic-1.0 | GPL-1.0+" -LIC_FILES_CHKSUM = "file://LICENSE;md5=43339d8f9d3a956ee9eceb07717ee95e" - -SRC_URI = "${CPAN_MIRROR}/authors/id/K/KW/KWILLIAMS/Module-Build-${PV}.tar.gz" -SRC_URI[md5sum] = "3d4fdffe58f6236253767e5a71edf29b" -SRC_URI[sha256sum] = "e2f723be8d6c70b4ddbca3b5e32e52e6e98eae8f43e34d7ede87efcb1796bbb5" - -S = "${WORKDIR}/Module-Build-${PV}" - -inherit cpan_build - -do_install () { - cpan_build_do_install -} - -BBCLASSEXTEND = "native" diff --git a/meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.4224.bb b/meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.4224.bb new file mode 100644 index 000000000..b09135c95 --- /dev/null +++ b/meta-perl/recipes-perl/libmodule/libmodule-build-perl_0.4224.bb @@ -0,0 +1,34 @@ +SUMMARY = "Module::Build - Build and install Perl modules" +DESCRIPTION = "Many Perl distributions use a Build.PL file instead of a \ +Makefile.PL file to drive distribution configuration, build, test and \ +installation. Traditionally, Build.PL uses Module::Build as the underlying \ +build system. This module provides a simple, lightweight, drop-in replacement. \ +Whereas Module::Build has over 6,700 lines of code; this module has less than \ +120, yet supports the features needed by most distributions." + +SECTION = "libs" + +HOMEPAGE = "https://metacpan.org/release/Module-Build" + +LICENSE = "Artistic-1.0 | GPL-1.0+" +LIC_FILES_CHKSUM = "file://README;beginline=960;endline=965;md5=624c06db56a2af4d70cf9edc29fcae1b" + +SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-${PV}.tar.gz" +SRC_URI[md5sum] = "b74c2f6e84b60aad3a3defd30b6f0f4d" +SRC_URI[sha256sum] = "a6ca15d78244a7b50fdbf27f85c85f4035aa799ce7dd018a0d98b358ef7bc782" + +S = "${WORKDIR}/Module-Build-${PV}" + +inherit cpan_build allarch + +# From: +# https://github.com/rehsack/meta-cpan/blob/master/recipes-devel/module-build-perl/module-build-perl_0.4216.bb +# +do_patch_module_build () { + cd ${S} + sed -i -e 's,my $interpreter = $self->{properties}{perl};,my $interpreter = "${bindir}/perl";,g' lib/Module/Build/Base.pm +} + +do_patch[postfuncs] += "do_patch_module_build" + +BBCLASSEXTEND = "native" -- 2.13.5