Message ID | 20230805224642.2268494-1-ticotimo@gmail.com |
---|---|
State | Under Review |
Headers | show |
Series | libmodule-build-tiny-perl: upgrade 0.045 -> 0.046 | expand |
Hi Tim On Sat, Aug 5, 2023 at 3:48 PM Tim Orling <ticotimo@gmail.com> wrote: > > * Drop redundant do_install > * Use four spaces for indent in RDEPENDS > * RDEPENDS: > - += not = > - sort alphabetically > - Add perl-module-perl-ostype > - Add perl-module-extutils-cbuilder-base > - Replace perl-module-ipc-open3 with -ipc-cmd > - Add perl-module-metadata > - Add perl-module-parse-cpan-meta > - Add perl-module-extutils-install > - Add perl-module-encode-encoding > * Enable ptest > * RDEPENDS for ptest: > - Add perl-module-ipc-open2 > - Add perl-module-blib > - Add gcc > - Add binutils (for 'as') > - Add glibc-dev (for crti.o and friends) > - Add libgcc > - Add libgcc-dev (for crtbeginS.o) > - Add perl-dev (for "EXTERN.h") > * INSANE_SKIP dev-deps for -ptest > > 0.046 2023-06-01 19:31:21+02:00 Europe/Amsterdam > - Add src/ to include paths > > License-Update: Updated Artistic-1.0 (Perl) text > > Signed-off-by: Tim Orling <ticotimo@gmail.com> > --- > Ptests throw one warning in perl-dev itself > (meta-perl-ptest-image-libmodule-build-tiny-perl on qemux86-64) > > root@qemux86-64:~# time ptest-runner 2>&1 | tee ptest-runner.log > START: ptest-runner > 2023-08-05T22:45 > BEGIN: /usr/lib/libmodule-build-tiny-perl/ptest > Creating new 'Build' script for 'Foo-Bar' version '0.001' > ok 1 - Ran Build.PL > ok 2 - Build created > ok 3 - Build is executable > ok 4 - Build has shebang line with $^X > ok 5 - _build_params created > ok 6 - Could run Build > In file included from /usr/lib/perl5/5.36.1/x86_64-linux/CORE/perl.h:7247, > from lib/Foo/Bar.xs:3: > /usr/lib/perl5/5.36.1/x86_64-linux/CORE/sv_inline.h:519:1: warning: 'always_inline' function might not be inlinable [-Wattributes] > 519 | Perl_newSV_type_mortal(pTHX_ const svtype type) > | ^~~~~~~~~~~~~~~~~~~~~~ > ok 7 - Build output looks correctly > ok 8 - created blib > ok 9 - created blib/lib > ok 10 - created blib/script > ok 11 - Foo::Bar copied to blib > ok 12 - pm contents are correct > ok 13 - pm file in blib is readonly > ok 14 - bin/simple copied to blib > ok 15 - blib/script/simple contents are correct > ok 16 - blib/script/simple is executable > ok 17 - script in blib is readonly > ok 18 - blib/script/simple has shebang line with $^X > ok 19 - dist sharedir has been made > ok 20 - dist sharedir file has been made > ok 21 - moduole sharedir has been made > ok 22 - module sharedir file has been made > ok 23 - Can run XSub Foo::Bar::foo > ok 24 - Module gets manified properly > ok 25 - Could run Build install > ok 26 - Build install output looks correctly > ok 27 - Module is installed > ok 28 - Script is installed > 1..28 > PASS: t/simple > DURATION: 15 > END: /usr/lib/libmodule-build-tiny-perl/ptest > 2023-08-05T22:45 > STOP: ptest-runner > TOTAL: 1 FAIL: 0 > real 0m 15.44s > user 0m 4.04s > sys 0m 1.53s > > .../include/ptest-packagelists-meta-perl.inc | 1 + > .../libmodule-build-tiny-perl_0.045.bb | 53 -------------- > .../libmodule-build-tiny-perl_0.046.bb | 69 +++++++++++++++++++ > 3 files changed, 70 insertions(+), 53 deletions(-) > delete mode 100644 meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb > create mode 100644 meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb > > diff --git a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > index 1a8c759b1..e27981de7 100644 > --- a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > +++ b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > @@ -13,6 +13,7 @@ PTESTS_FAST_META_PERL = "\ > libextutils-config-perl \ > libhtml-tagset-perl \ > libmozilla-ca-perl \ > + libmodule-build-tiny-perl \ > libstrictures-perl \ > libterm-readkey-perl \ > libtest-nowarnings-perl \ > diff --git a/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb b/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb > deleted file mode 100644 > index 17ee50d7c..000000000 > --- a/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb > +++ /dev/null > @@ -1,53 +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/~leont/Module-Build-Tiny/" > - > -LICENSE = "Artistic-1.0 | GPL-1.0-or-later" > -LIC_FILES_CHKSUM = "file://LICENSE;md5=6374136f6774db2f51cc116f5efbf705" > - > -DEPENDS = "libextutils-config-perl-native libextutils-helpers-perl-native libextutils-installpaths-perl-native" > - > -SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-Tiny-${PV}.tar.gz" > -SRC_URI[sha256sum] = "d20692eee246d0b329b7f7659f36286b14ae0696fe91078a64b7078f8876d300" > - > -S = "${WORKDIR}/Module-Build-Tiny-${PV}" > - > -inherit cpan_build > - > -do_install () { > - cpan_build_do_install > -} > - > -RDEPENDS:${PN} = " libextutils-config-perl \ > - libextutils-helpers-perl \ > - libextutils-installpaths-perl \ > - perl-module-xsloader \ > - perl-module-file-spec \ > - perl-module-io-handle \ > - perl-module-tap-harness-env \ > - perl-module-ipc-open3 \ > - perl-module-file-path \ > - perl-module-cpan \ > - perl-module-extutils-cbuilder \ > - perl-module-getopt-long \ > - perl-module-extutils-makemaker \ > - perl-module-exporter \ > - perl-module-carp \ > - perl-module-test-more \ > - perl-module-text-parsewords \ > - perl-module-load \ > - perl-module-file-temp \ > - perl-module-data-dumper \ > - perl-module-extutils-parsexs \ > - perl-module-pod-man \ > - perl-module-json-pp \ > -" > - > -BBCLASSEXTEND = "native" > diff --git a/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb b/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb > new file mode 100644 > index 000000000..64bb4b4a3 > --- /dev/null > +++ b/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb > @@ -0,0 +1,69 @@ > +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/~leont/Module-Build-Tiny/" > + > +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" > +LIC_FILES_CHKSUM = "file://LICENSE;md5=147a7b891d1584d3d33e478b1f2327c5" > + > +DEPENDS = "libextutils-config-perl-native libextutils-helpers-perl-native libextutils-installpaths-perl-native" > + > +SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-Tiny-${PV}.tar.gz" > +SRC_URI[sha256sum] = "be193027e2debb4c9926434aaf1aa46c9fc7bf4db83dcc347eb6e359ee878289" > + > +S = "${WORKDIR}/Module-Build-Tiny-${PV}" > + > +inherit cpan_build ptest-perl > + > +RDEPENDS:${PN} += " \ > + libextutils-config-perl \ > + libextutils-helpers-perl \ > + libextutils-installpaths-perl \ > + perl-module-carp \ > + perl-module-cpan \ > + perl-module-data-dumper \ > + perl-module-encode-encoding \ > + perl-module-exporter \ > + perl-module-extutils-cbuilder \ > + perl-module-extutils-cbuilder-base \ > + perl-module-extutils-install \ > + perl-module-extutils-makemaker \ > + perl-module-extutils-parsexs \ > + perl-module-file-path \ > + perl-module-file-spec \ > + perl-module-file-temp \ > + perl-module-getopt-long \ > + perl-module-io-handle \ > + perl-module-ipc-cmd \ > + perl-module-json-pp \ > + perl-module-load \ > + perl-module-metadata \ > + perl-module-parse-cpan-meta \ > + perl-module-perl-ostype \ > + perl-module-pod-man \ > + perl-module-tap-harness-env \ > + perl-module-test-more \ > + perl-module-text-parsewords \ > + perl-module-xsloader \ > +" > + > +RDEPENDS:${PN}-ptest += " \ > + binutils \ > + gcc \ > + glibc-dev \ This will not work with musl e.g. however we can make it work. It seems this needs a working C/C++ toolchain on target so I would suggest to rdepend on packagegroup-core-standalone-sdk-target instead of hand-picking toolchain elements. This will abstract it nicely for different runtime and toolchain variants we have e.g. musl vs glibc, clang vs gcc etc. > + libgcc \ > + libgcc-dev \ > + perl-dev \ > + perl-module-blib \ > + perl-module-ipc-open2 \ > +" > + > +INSANE_SKIP:${PN}-ptest += "dev-deps" > + > +BBCLASSEXTEND = "native" > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#104292): https://lists.openembedded.org/g/openembedded-devel/message/104292 > Mute This Topic: https://lists.openembedded.org/mt/100573061/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Sat, Aug 5, 2023 at 4:29 PM Khem Raj <raj.khem@gmail.com> wrote: > Hi Tim > > On Sat, Aug 5, 2023 at 3:48 PM Tim Orling <ticotimo@gmail.com> wrote: > > > > * Drop redundant do_install > > * Use four spaces for indent in RDEPENDS > > * RDEPENDS: > > - += not = > > - sort alphabetically > > - Add perl-module-perl-ostype > > - Add perl-module-extutils-cbuilder-base > > - Replace perl-module-ipc-open3 with -ipc-cmd > > - Add perl-module-metadata > > - Add perl-module-parse-cpan-meta > > - Add perl-module-extutils-install > > - Add perl-module-encode-encoding > > * Enable ptest > > * RDEPENDS for ptest: > > - Add perl-module-ipc-open2 > > - Add perl-module-blib > > - Add gcc > > - Add binutils (for 'as') > > - Add glibc-dev (for crti.o and friends) > > - Add libgcc > > - Add libgcc-dev (for crtbeginS.o) > > - Add perl-dev (for "EXTERN.h") > > * INSANE_SKIP dev-deps for -ptest > > > > 0.046 2023-06-01 19:31:21+02:00 Europe/Amsterdam > > - Add src/ to include paths > > > > License-Update: Updated Artistic-1.0 (Perl) text > > > > Signed-off-by: Tim Orling <ticotimo@gmail.com> > > --- > > Ptests throw one warning in perl-dev itself > > (meta-perl-ptest-image-libmodule-build-tiny-perl on qemux86-64) > > > > root@qemux86-64:~# time ptest-runner 2>&1 | tee ptest-runner.log > > START: ptest-runner > > 2023-08-05T22:45 > > BEGIN: /usr/lib/libmodule-build-tiny-perl/ptest > > Creating new 'Build' script for 'Foo-Bar' version '0.001' > > ok 1 - Ran Build.PL > > ok 2 - Build created > > ok 3 - Build is executable > > ok 4 - Build has shebang line with $^X > > ok 5 - _build_params created > > ok 6 - Could run Build > > In file included from > /usr/lib/perl5/5.36.1/x86_64-linux/CORE/perl.h:7247, > > from lib/Foo/Bar.xs:3: > > /usr/lib/perl5/5.36.1/x86_64-linux/CORE/sv_inline.h:519:1: warning: > 'always_inline' function might not be inlinable [-Wattributes] > > 519 | Perl_newSV_type_mortal(pTHX_ const svtype type) > > | ^~~~~~~~~~~~~~~~~~~~~~ > > ok 7 - Build output looks correctly > > ok 8 - created blib > > ok 9 - created blib/lib > > ok 10 - created blib/script > > ok 11 - Foo::Bar copied to blib > > ok 12 - pm contents are correct > > ok 13 - pm file in blib is readonly > > ok 14 - bin/simple copied to blib > > ok 15 - blib/script/simple contents are correct > > ok 16 - blib/script/simple is executable > > ok 17 - script in blib is readonly > > ok 18 - blib/script/simple has shebang line with $^X > > ok 19 - dist sharedir has been made > > ok 20 - dist sharedir file has been made > > ok 21 - moduole sharedir has been made > > ok 22 - module sharedir file has been made > > ok 23 - Can run XSub Foo::Bar::foo > > ok 24 - Module gets manified properly > > ok 25 - Could run Build install > > ok 26 - Build install output looks correctly > > ok 27 - Module is installed > > ok 28 - Script is installed > > 1..28 > > PASS: t/simple > > DURATION: 15 > > END: /usr/lib/libmodule-build-tiny-perl/ptest > > 2023-08-05T22:45 > > STOP: ptest-runner > > TOTAL: 1 FAIL: 0 > > real 0m 15.44s > > user 0m 4.04s > > sys 0m 1.53s > > > > .../include/ptest-packagelists-meta-perl.inc | 1 + > > .../libmodule-build-tiny-perl_0.045.bb | 53 -------------- > > .../libmodule-build-tiny-perl_0.046.bb | 69 +++++++++++++++++++ > > 3 files changed, 70 insertions(+), 53 deletions(-) > > delete mode 100644 meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.045.bb > > create mode 100644 meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.046.bb > > > > diff --git a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > > index 1a8c759b1..e27981de7 100644 > > --- a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > > +++ b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc > > @@ -13,6 +13,7 @@ PTESTS_FAST_META_PERL = "\ > > libextutils-config-perl \ > > libhtml-tagset-perl \ > > libmozilla-ca-perl \ > > + libmodule-build-tiny-perl \ > > libstrictures-perl \ > > libterm-readkey-perl \ > > libtest-nowarnings-perl \ > > diff --git a/meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.045.bb b/meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.045.bb > > deleted file mode 100644 > > index 17ee50d7c..000000000 > > --- a/meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.045.bb > > +++ /dev/null > > @@ -1,53 +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/~leont/Module-Build-Tiny/" > > - > > -LICENSE = "Artistic-1.0 | GPL-1.0-or-later" > > -LIC_FILES_CHKSUM = "file://LICENSE;md5=6374136f6774db2f51cc116f5efbf705" > > - > > -DEPENDS = "libextutils-config-perl-native > libextutils-helpers-perl-native libextutils-installpaths-perl-native" > > - > > -SRC_URI = > "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-Tiny-${PV}.tar.gz" > > -SRC_URI[sha256sum] = > "d20692eee246d0b329b7f7659f36286b14ae0696fe91078a64b7078f8876d300" > > - > > -S = "${WORKDIR}/Module-Build-Tiny-${PV}" > > - > > -inherit cpan_build > > - > > -do_install () { > > - cpan_build_do_install > > -} > > - > > -RDEPENDS:${PN} = " libextutils-config-perl \ > > - libextutils-helpers-perl \ > > - libextutils-installpaths-perl \ > > - perl-module-xsloader \ > > - perl-module-file-spec \ > > - perl-module-io-handle \ > > - perl-module-tap-harness-env \ > > - perl-module-ipc-open3 \ > > - perl-module-file-path \ > > - perl-module-cpan \ > > - perl-module-extutils-cbuilder \ > > - perl-module-getopt-long \ > > - perl-module-extutils-makemaker \ > > - perl-module-exporter \ > > - perl-module-carp \ > > - perl-module-test-more \ > > - perl-module-text-parsewords \ > > - perl-module-load \ > > - perl-module-file-temp \ > > - perl-module-data-dumper \ > > - perl-module-extutils-parsexs \ > > - perl-module-pod-man \ > > - perl-module-json-pp \ > > -" > > - > > -BBCLASSEXTEND = "native" > > diff --git a/meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.046.bb b/meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.046.bb > > new file mode 100644 > > index 000000000..64bb4b4a3 > > --- /dev/null > > +++ b/meta-perl/recipes-perl/libmodule/ > libmodule-build-tiny-perl_0.046.bb > > @@ -0,0 +1,69 @@ > > +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/~leont/Module-Build-Tiny/" > > + > > +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" > > +LIC_FILES_CHKSUM = "file://LICENSE;md5=147a7b891d1584d3d33e478b1f2327c5" > > + > > +DEPENDS = "libextutils-config-perl-native > libextutils-helpers-perl-native libextutils-installpaths-perl-native" > > + > > +SRC_URI = > "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-Tiny-${PV}.tar.gz" > > +SRC_URI[sha256sum] = > "be193027e2debb4c9926434aaf1aa46c9fc7bf4db83dcc347eb6e359ee878289" > > + > > +S = "${WORKDIR}/Module-Build-Tiny-${PV}" > > + > > +inherit cpan_build ptest-perl > > + > > +RDEPENDS:${PN} += " \ > > + libextutils-config-perl \ > > + libextutils-helpers-perl \ > > + libextutils-installpaths-perl \ > > + perl-module-carp \ > > + perl-module-cpan \ > > + perl-module-data-dumper \ > > + perl-module-encode-encoding \ > > + perl-module-exporter \ > > + perl-module-extutils-cbuilder \ > > + perl-module-extutils-cbuilder-base \ > > + perl-module-extutils-install \ > > + perl-module-extutils-makemaker \ > > + perl-module-extutils-parsexs \ > > + perl-module-file-path \ > > + perl-module-file-spec \ > > + perl-module-file-temp \ > > + perl-module-getopt-long \ > > + perl-module-io-handle \ > > + perl-module-ipc-cmd \ > > + perl-module-json-pp \ > > + perl-module-load \ > > + perl-module-metadata \ > > + perl-module-parse-cpan-meta \ > > + perl-module-perl-ostype \ > > + perl-module-pod-man \ > > + perl-module-tap-harness-env \ > > + perl-module-test-more \ > > + perl-module-text-parsewords \ > > + perl-module-xsloader \ > > +" > > + > > +RDEPENDS:${PN}-ptest += " \ > > + binutils \ > > + gcc \ > > + glibc-dev \ > > This will not work with musl e.g. however we can make it work. > It seems this needs a working C/C++ toolchain on target so I would suggest > to > rdepend on packagegroup-core-standalone-sdk-target instead of hand-picking > toolchain elements. This will abstract it nicely for different runtime > and toolchain > variants we have e.g. musl vs glibc, clang vs gcc etc. > Agreed. Thank you for the suggestion. Ignore this version until I send a v2. (I was already not that satisfied) > > + libgcc \ > > + libgcc-dev \ > > + perl-dev \ > > + perl-module-blib \ > > + perl-module-ipc-open2 \ > > +" > > + > > +INSANE_SKIP:${PN}-ptest += "dev-deps" > > + > > +BBCLASSEXTEND = "native" > > -- > > 2.34.1 > > > > > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > View/Reply Online (#104292): > https://lists.openembedded.org/g/openembedded-devel/message/104292 > > Mute This Topic: https://lists.openembedded.org/mt/100573061/1997914 > > Group Owner: openembedded-devel+owner@lists.openembedded.org > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ > raj.khem@gmail.com] > > -=-=-=-=-=-=-=-=-=-=-=- > > >
diff --git a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc index 1a8c759b1..e27981de7 100644 --- a/meta-perl/conf/include/ptest-packagelists-meta-perl.inc +++ b/meta-perl/conf/include/ptest-packagelists-meta-perl.inc @@ -13,6 +13,7 @@ PTESTS_FAST_META_PERL = "\ libextutils-config-perl \ libhtml-tagset-perl \ libmozilla-ca-perl \ + libmodule-build-tiny-perl \ libstrictures-perl \ libterm-readkey-perl \ libtest-nowarnings-perl \ diff --git a/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb b/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb deleted file mode 100644 index 17ee50d7c..000000000 --- a/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb +++ /dev/null @@ -1,53 +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/~leont/Module-Build-Tiny/" - -LICENSE = "Artistic-1.0 | GPL-1.0-or-later" -LIC_FILES_CHKSUM = "file://LICENSE;md5=6374136f6774db2f51cc116f5efbf705" - -DEPENDS = "libextutils-config-perl-native libextutils-helpers-perl-native libextutils-installpaths-perl-native" - -SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-Tiny-${PV}.tar.gz" -SRC_URI[sha256sum] = "d20692eee246d0b329b7f7659f36286b14ae0696fe91078a64b7078f8876d300" - -S = "${WORKDIR}/Module-Build-Tiny-${PV}" - -inherit cpan_build - -do_install () { - cpan_build_do_install -} - -RDEPENDS:${PN} = " libextutils-config-perl \ - libextutils-helpers-perl \ - libextutils-installpaths-perl \ - perl-module-xsloader \ - perl-module-file-spec \ - perl-module-io-handle \ - perl-module-tap-harness-env \ - perl-module-ipc-open3 \ - perl-module-file-path \ - perl-module-cpan \ - perl-module-extutils-cbuilder \ - perl-module-getopt-long \ - perl-module-extutils-makemaker \ - perl-module-exporter \ - perl-module-carp \ - perl-module-test-more \ - perl-module-text-parsewords \ - perl-module-load \ - perl-module-file-temp \ - perl-module-data-dumper \ - perl-module-extutils-parsexs \ - perl-module-pod-man \ - perl-module-json-pp \ -" - -BBCLASSEXTEND = "native" diff --git a/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb b/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb new file mode 100644 index 000000000..64bb4b4a3 --- /dev/null +++ b/meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb @@ -0,0 +1,69 @@ +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/~leont/Module-Build-Tiny/" + +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" +LIC_FILES_CHKSUM = "file://LICENSE;md5=147a7b891d1584d3d33e478b1f2327c5" + +DEPENDS = "libextutils-config-perl-native libextutils-helpers-perl-native libextutils-installpaths-perl-native" + +SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Module-Build-Tiny-${PV}.tar.gz" +SRC_URI[sha256sum] = "be193027e2debb4c9926434aaf1aa46c9fc7bf4db83dcc347eb6e359ee878289" + +S = "${WORKDIR}/Module-Build-Tiny-${PV}" + +inherit cpan_build ptest-perl + +RDEPENDS:${PN} += " \ + libextutils-config-perl \ + libextutils-helpers-perl \ + libextutils-installpaths-perl \ + perl-module-carp \ + perl-module-cpan \ + perl-module-data-dumper \ + perl-module-encode-encoding \ + perl-module-exporter \ + perl-module-extutils-cbuilder \ + perl-module-extutils-cbuilder-base \ + perl-module-extutils-install \ + perl-module-extutils-makemaker \ + perl-module-extutils-parsexs \ + perl-module-file-path \ + perl-module-file-spec \ + perl-module-file-temp \ + perl-module-getopt-long \ + perl-module-io-handle \ + perl-module-ipc-cmd \ + perl-module-json-pp \ + perl-module-load \ + perl-module-metadata \ + perl-module-parse-cpan-meta \ + perl-module-perl-ostype \ + perl-module-pod-man \ + perl-module-tap-harness-env \ + perl-module-test-more \ + perl-module-text-parsewords \ + perl-module-xsloader \ +" + +RDEPENDS:${PN}-ptest += " \ + binutils \ + gcc \ + glibc-dev \ + libgcc \ + libgcc-dev \ + perl-dev \ + perl-module-blib \ + perl-module-ipc-open2 \ +" + +INSANE_SKIP:${PN}-ptest += "dev-deps" + +BBCLASSEXTEND = "native"
* Drop redundant do_install * Use four spaces for indent in RDEPENDS * RDEPENDS: - += not = - sort alphabetically - Add perl-module-perl-ostype - Add perl-module-extutils-cbuilder-base - Replace perl-module-ipc-open3 with -ipc-cmd - Add perl-module-metadata - Add perl-module-parse-cpan-meta - Add perl-module-extutils-install - Add perl-module-encode-encoding * Enable ptest * RDEPENDS for ptest: - Add perl-module-ipc-open2 - Add perl-module-blib - Add gcc - Add binutils (for 'as') - Add glibc-dev (for crti.o and friends) - Add libgcc - Add libgcc-dev (for crtbeginS.o) - Add perl-dev (for "EXTERN.h") * INSANE_SKIP dev-deps for -ptest 0.046 2023-06-01 19:31:21+02:00 Europe/Amsterdam - Add src/ to include paths License-Update: Updated Artistic-1.0 (Perl) text Signed-off-by: Tim Orling <ticotimo@gmail.com> --- Ptests throw one warning in perl-dev itself (meta-perl-ptest-image-libmodule-build-tiny-perl on qemux86-64) root@qemux86-64:~# time ptest-runner 2>&1 | tee ptest-runner.log START: ptest-runner 2023-08-05T22:45 BEGIN: /usr/lib/libmodule-build-tiny-perl/ptest Creating new 'Build' script for 'Foo-Bar' version '0.001' ok 1 - Ran Build.PL ok 2 - Build created ok 3 - Build is executable ok 4 - Build has shebang line with $^X ok 5 - _build_params created ok 6 - Could run Build In file included from /usr/lib/perl5/5.36.1/x86_64-linux/CORE/perl.h:7247, from lib/Foo/Bar.xs:3: /usr/lib/perl5/5.36.1/x86_64-linux/CORE/sv_inline.h:519:1: warning: 'always_inline' function might not be inlinable [-Wattributes] 519 | Perl_newSV_type_mortal(pTHX_ const svtype type) | ^~~~~~~~~~~~~~~~~~~~~~ ok 7 - Build output looks correctly ok 8 - created blib ok 9 - created blib/lib ok 10 - created blib/script ok 11 - Foo::Bar copied to blib ok 12 - pm contents are correct ok 13 - pm file in blib is readonly ok 14 - bin/simple copied to blib ok 15 - blib/script/simple contents are correct ok 16 - blib/script/simple is executable ok 17 - script in blib is readonly ok 18 - blib/script/simple has shebang line with $^X ok 19 - dist sharedir has been made ok 20 - dist sharedir file has been made ok 21 - moduole sharedir has been made ok 22 - module sharedir file has been made ok 23 - Can run XSub Foo::Bar::foo ok 24 - Module gets manified properly ok 25 - Could run Build install ok 26 - Build install output looks correctly ok 27 - Module is installed ok 28 - Script is installed 1..28 PASS: t/simple DURATION: 15 END: /usr/lib/libmodule-build-tiny-perl/ptest 2023-08-05T22:45 STOP: ptest-runner TOTAL: 1 FAIL: 0 real 0m 15.44s user 0m 4.04s sys 0m 1.53s .../include/ptest-packagelists-meta-perl.inc | 1 + .../libmodule-build-tiny-perl_0.045.bb | 53 -------------- .../libmodule-build-tiny-perl_0.046.bb | 69 +++++++++++++++++++ 3 files changed, 70 insertions(+), 53 deletions(-) delete mode 100644 meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.045.bb create mode 100644 meta-perl/recipes-perl/libmodule/libmodule-build-tiny-perl_0.046.bb