added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,89 @@
meta-perl
=========
This layer provides commonly-used perl related recipes such as perl libraries
in the Comprehensive Perl Archive Network.
Contents and Help
-----------------
In this section the contents of the layer is listed, along with a short
help for each package.
-- libdbi-perl --
The DBI is a database access module for the Perl programming language.
It defines a set of methods, variables, and conventions that provide
a consistent database interface, independent of the actual database
being used.
|<- Scope of DBI ->|
.-. .--------------. .-------------.
.-------. | |---| XYZ Driver |---| XYZ Engine |
| Perl | | | `--------------' `-------------'
| script| |A| |D| .--------------. .-------------.
| using |--|P|--|B|---|Oracle Driver |---|Oracle Engine|
| DBI | |I| |I| `--------------' `-------------'
| API | | |...
|methods| | |... Other drivers
`-------' | |...
`-'
-- libdbd-sqlite-perl --
DBD::SQLite is a Perl DBI driver for SQLite, that includes the entire
thing in the distribution. So in order to get a fast transaction capable
RDBMS working for your perl project you simply have to install this
module, and nothing else.
usage: there is a test case to show you how it works
1) vim local.conf:
...
IMAGE_INSTALL:append = " libdbd-sqlite-perl"
PERL_DBM_TEST = "1"
...
2) build core-image-sato and boot the target
3) run "sqlite-perl-test.pl" on target. This script includes five
operations create/insert/update/delete/select to do with a table.
More information can be found in the recipe's git log.
Dependencies
------------
This layer depends on:
URI: git://git.openembedded.org/openembedded-core
branch: mickledore
Adding the meta-perl layer to your build
---------------------------------------
In order to use this layer, you need to make the build system aware of
it.
Assuming the meta-perl layer exists at the top-level of your
yocto build tree, you can add it to the build system by adding the
location of the meta-perl layer to bblayers.conf, along with any
other layers needed. e.g.:
BBLAYERS ?= " \
/path/to/oe-core/meta \
/path/to/layer/meta-perl \
Maintenance
-----------
Send patches / pull requests to openembedded-devel@lists.openembedded.org with
'[meta-perl][mickledore]' in the subject.
When sending single patches, please using something like:
git send-email -M -1 --to openembedded-devel@lists.openembedded.org --subject-prefix='meta-perl][mickledore][PATCH'
Layer maintainers: Armin Kuster <akuster808@gmail.com>
License
-------
All metadata is MIT licensed unless otherwise stated. Source code included
in tree for individual recipes is under the LICENSE stated in each recipe
(.bb file) unless otherwise stated.

View File

@@ -0,0 +1,50 @@
#
# Lists of the ptest in meta-perl, sorted into two sets by the time they take
# Please keep these sorted in alphabetical order
#
# A first pass at getting all meta-perl recipes which inherit ptest
# meta_perl_ptest_recipes=$(bitbake-layers show-recipes --recipes-only --layer meta-perl --inherits ptest --bare | tr '\n' ' ' | pcregrep -o1 '^NOTE:.+===(.+)$')
#
# ptests which take less than ~30s each
PTESTS_FAST_META_PERL = "\
libcapture-tiny-perl \
libcgi-perl \
libcrypt-openssl-random-perl \
libextutils-config-perl \
libhtml-tagset-perl \
libmozilla-ca-perl \
libstrictures-perl \
libterm-readkey-perl \
libtest-nowarnings-perl \
"
PTESTS_SLOW_META_PERL = "\
libio-socket-ssl-perl \
"
PTESTS_PROBLEMS_META_PERL ="\
libauthen-sasl-perl \
libconfig-autoconf-perl \
libcrypt-openssl-guess-perl \
libcrypt-openssl-rsa-perl \
libdata-hexdump-perl \
libdbd-sqlite-perl \
libdigest-hmac-perl \
libdigest-sha1-perl \
libnet-dns-perl \
libnet-dns-sec-perl \
libnet-ldap-perl \
libencode-perl \
libextutils-installpaths-perl \
libfile-slurper-perl \
libhtml-parser-perl \
libmime-types-perl \
libnet-ssleay-perl \
libsub-uplevel-perl \
libtest-deep-perl \
libtest-harness-perl \
libtest-warn-perl \
libunicode-linebreak-perl \
libunix-statgrab \
libxml-libxml-perl \
"

View File

@@ -0,0 +1,18 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "perl-layer"
BBFILE_PATTERN_perl-layer := "^${LAYERDIR}/"
BBFILE_PRIORITY_perl-layer = "5"
# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
LAYERVERSION_perl-layer = "1"
LAYERDEPENDS_perl-layer = "core openembedded-layer"
LAYERSERIES_COMPAT_perl-layer = "mickledore"

View File

@@ -0,0 +1,7 @@
SUMMARY = "meta-perl build test image"
IMAGE_INSTALL = "packagegroup-core-boot"
LICENSE = "MIT"
inherit core-image

View File

@@ -0,0 +1,5 @@
require meta-perl-base.bb
SUMMARY = "meta-perl build test image"
IMAGE_INSTALL += "packagegroup-meta-perl packagegroup-meta-perl-extended"

View File

@@ -0,0 +1,25 @@
DESCRIPTION = "Recipe to trigger execution of all meta-perl ptest images."
HOMEPAGE = "https://www.openembedded.org/"
LICENSE = "MIT"
inherit features_check nopackages
REQUIRED_DISTRO_FEATURES = "ptest"
require conf/include/ptest-packagelists-meta-perl.inc
# Include the full set of ptests
PTESTS_META_PERL = "${PTESTS_FAST_META_PERL} ${PTESTS_SLOW_META_PERL}"
do_testimage[noexec] = "1"
do_testimage[depends] = "${@' '.join(['meta-perl-ptest-image-'+x+':do_testimage' for x in d.getVar('PTESTS_META_PERL').split()])}"
do_build[depends] = "${@' '.join(['meta-perl-ptest-image-'+x+':do_build' for x in d.getVar('PTESTS_META_PERL').split()])}"
# normally image.bbclass would do this
EXCLUDE_FROM_WORLD = "1"
python () {
if bb.utils.contains('IMAGE_CLASSES', 'testimage', True, False, d):
bb.build.addtask("do_testimage", "", "", d)
}

View File

@@ -0,0 +1,6 @@
require meta-perl-ptest-all-image.bb
DESCRIPTION = "Recipe to trigger execution of all fast meta-perl ptest images."
PTESTS_META_PERL = "${PTESTS_FAST_META_PERL}"

View File

@@ -0,0 +1,41 @@
inherit features_check
REQUIRED_DISTRO_FEATURES += "ptest"
require meta-perl-base.bb
SUMMARY = "meta-perl build ptest image"
require conf/include/ptest-packagelists-meta-perl.inc
DESCRIPTION += "Also including the ${MCNAME} ptest package."
HOMEPAGE = "https://www.openembedded.org/"
PTESTS_META_PERL = "${PTESTS_SLOW_META_PERL} ${PTESTS_FAST_META_PERL}"
IMAGE_INSTALL:append = " ${MCNAME}-ptest openssh"
BBCLASSEXTEND = "${@' '.join(['mcextend:'+x for x in d.getVar('PTESTS_META_PERL').split()])}"
# The image can be sufficiently large (~1.8GB) that we need to be careful that it fits in a live
# image (which has a 4GB limit), so nullify the overhead factor (1.3x out of the
# box) and explicitly add up to 1500MB.
IMAGE_OVERHEAD_FACTOR = "1.0"
IMAGE_ROOTFS_EXTRA_SPACE = "324288"
# If a particular ptest needs more space, it can be customized:
#IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-<pn> = "1024288"
# ptests need more memory than standard to avoid the OOM killer
QB_MEM = "-m 1024"
# If a particular ptest needs more memory, it can be customized:
#QB_MEM:virtclass-mcextend-<pn> = "-m 4096"
TEST_SUITES = "ping ssh parselogs ptest"
# Sadly at the moment the full set of ptests is not robust enough and sporadically fails in random places
PTEST_EXPECT_FAILURE = "1"
python () {
if not d.getVar("MCNAME"):
raise bb.parse.SkipRecipe("No class extension set")
}

View File

@@ -0,0 +1,106 @@
SUMMARY = "Meta-perl packagegroup"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = "\
packagegroup-meta-perl \
packagegroup-meta-perl-extended \
${@bb.utils.contains("DISTRO_FEATURES", "ptest", "packagegroup-meta-perl-ptest-packages", "", d)} \
"
RDEPENDS:packagegroup-meta-perl = "\
adduser \
libalgorithm-diff-perl \
libauthen-sasl-perl \
libauthen-radius-perl \
libcapture-tiny-perl \
libcgi-perl \
libcompress-raw-bzip2-perl \
libcompress-raw-lzma-perl \
libcompress-raw-zlib-perl \
libdbd-sqlite-perl \
libclass-method-modifiers-perl \
libdigest-hmac-perl \
libdigest-sha1-perl \
libconfig-autoconf-perl \
libcrypt-openssl-guess-perl \
libcrypt-openssl-random-perl \
libcrypt-openssl-rsa-perl \
libhtml-parser-perl \
libhtml-tree-perl \
libhtml-tagset-perl \
libimport-into-perl \
libio-compress-perl \
libio-compress-lzma-perl \
libio-socket-ssl-perl \
libio-stringy-perl \
libipc-signal-perl \
libcurses-perl \
libmime-charset-perl \
libmime-types-perl \
libmodule-pluggable-perl \
libmodule-runtime-perl \
libmodule-build-tiny-perl \
libdata-hexdump-perl \
libnet-dns-perl \
libnet-libidn-perl \
libnet-dns-sec-perl \
libnet-ldap-perl \
libnet-ssleay-perl \
libnet-telnet-perl \
libproc-waitstat-perl \
libdevel-globaldestruction-perl \
libenv-perl \
libfile-slurp-perl \
libfile-slurper-perl \
libtext-iconv-perl \
libtext-diff-perl \
libtext-charwidth-perl \
libtext-wrapi18n-perl \
libxml-libxml-perl \
libxml-filter-buffertext-perl \
libxml-sax-writer-perl \
libextutils-config-perl \
libextutils-cppguess-perl \
libextutils-helpers-perl \
libextutils-installpaths-perl \
libextutils-parsexs-perl \
liblocale-gettext-perl \
libmoo-perl \
librole-tiny-perl \
libunix-statgrab \
libstrictures-perl \
libsub-exporter-progressive-perl \
libsub-uplevel-perl \
libterm-readkey-perl \
libtest-deep-perl \
libtest-harness-perl \
libtest-nowarnings-perl \
libtest-warn-perl \
libunicode-linebreak-perl \
po4a \
"
RDEPENDS:packagegroup-meta-perl-extended = "\
logcheck \
mime-construct \
"
RDEPENDS:packagegroup-meta-perl-ptest-packages = "\
libmime-types-perl-ptest \
libio-socket-ssl-perl-ptest \
libdata-hexdump-perl-ptest \
libauthen-sasl-perl-ptest \
libnet-dns-perl-ptest \
libnet-dns-sec-perl-ptest \
libnet-ssleay-perl-ptest \
libtest-harness-perl-ptest \
libdigest-sha1-perl-ptest \
libdigest-hmac-perl-ptest \
"
EXCLUDE_FROM_WORLD = "1"
# perl-module-encode is preferred over libencode-perl
# libencode-locale-perl depends on libencode-perl

View File

@@ -0,0 +1,2 @@
# <type> <owner> <group> <mode> <path> <linksource>
d logcheck logcheck 0755 /var/lock/logcheck none

View File

@@ -0,0 +1,77 @@
SUMMARY = "Analyzes log files and sends noticeable events as email"
DESCRIPTION = "\
Logcheck is a simple utility which is designed to allow a system administrator \
to view the log-files which are produced upon hosts under their control. \
It does this by mailing summaries of the log-files to them, after first \
filtering out "normal" entries. \
Normal entries are entries which match one of the many included regular \
expression files contain in the database."
SECTION = "Applications/System"
HOMEPAGE = "http://logcheck.org/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c93c0550bd3173f4504b2cbd8991e50b"
SRC_URI = "${DEBIAN_MIRROR}/main/l/${BPN}/${BPN}_${PV}.tar.xz \
file://99_logcheck \
"
SRC_URI[sha256sum] = "0c651deb31dc201f1584ecea292b259932bae6e3e8cef846db3109e89a7f217e"
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-m -g ${BPN} -G adm -r -d ${localstatedir}/lib/${BPN} \
-s /bin/false -c 'logcheck account' ${BPN}"
GROUPADD_PARAM:${PN} = "-r ${BPN}"
do_install() {
# Fix QA Issue
sed -i '/install -d $(DESTDIR)\/var\/lock\/logcheck/s/^/#/' Makefile
# "make install" do not install the manpages. Install them manually.
install -m 755 -d ${D}${mandir}/man1
install -m 755 -d ${D}${mandir}/man8
install -m 644 docs/logcheck-test.1 ${D}${mandir}/man1/
install -m 644 docs/logtail.8 ${D}${mandir}/man8/
install -m 644 docs/logtail2.8 ${D}${mandir}/man8/
install -m 755 -d ${D}${sysconfdir}/cron.d
install -m 644 debian/logcheck.cron.d ${D}${sysconfdir}/cron.d/logcheck
install -m 755 -d ${D}/var/lib/logcheck
oe_runmake install DESTDIR=${D}
# install header.txt for generated mails
install -m 0644 ${S}/debian/header.txt ${D}${sysconfdir}/${BPN}
chown -R ${BPN}:${BPN} ${D}${localstatedir}/lib/${BPN}
chown -R root:${BPN} ${D}${sysconfdir}/${BPN}
# Don't install /var/lock when populating rootfs. Do it through volatile
if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/default/volatiles
install -m 0644 ${WORKDIR}/99_logcheck ${D}${sysconfdir}/default/volatiles
fi
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
install -d ${D}${sysconfdir}/tmpfiles.d
echo "d /var/lock/logcheck 0755 logcheck logcheck -" \
> ${D}${sysconfdir}/tmpfiles.d/logcheck.conf
fi
}
VIRTUAL-RUNTIME_syslog ??= "rsyslog"
RDEPENDS:${PN} = "\
bash \
cronie \
debianutils-run-parts \
grep \
lockfile-progs \
mime-construct \
perl \
perl-module-file-basename \
perl-module-getopt-std \
perl-module-file-glob \
${VIRTUAL-RUNTIME_syslog} \
"
FILES:${PN} += "${datadir}/logtail"

View File

@@ -0,0 +1,39 @@
From 2b9ed06850410d70371b31de5f131e484ba1c851 Mon Sep 17 00:00:00 2001
From: Lu Chong <Chong.Lu@windriver.com>
Date: Thu, 17 Oct 2013 16:06:04 +0800
Subject: [PATCH] fix mime-construct --help return value
Upstream-Status: Pending
Signed-off-by: Lu Chong <Chong.Lu@windriver.com>
---
mime-construct | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mime-construct b/mime-construct
index cad7d0e..707ed19 100755
--- a/mime-construct
+++ b/mime-construct
@@ -39,7 +39,7 @@ usage: $Me switch...
Global settings:
--debug turn debugging on
- --help show this and then die
+ --help show this
--output don\'t mail, output to stdout (loses bcc info)
--subpart generate subpart rather than whole message (turns
on --output, changes other semantics a bit)
@@ -150,7 +150,8 @@ sub xwarn {
sub usage {
xwarn @_ if @_;
- die $Usage;
+ print $Usage;
+ exit 0;
}
sub init {
--
1.7.9.5

View File

@@ -0,0 +1,28 @@
SUMMARY = "Construct and optionally mail MIME messages"
DESCRIPTION = "Constructs and (by default) mails MIME messages. \
It is entirely driven from the command line, it is \
designed to be used by other programs, or people who act \
like programs."
HOMEPAGE = "http://search.cpan.org/~rosch/mime-construct/mime-construct"
SECTION = "mail"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=5e2e5da619ac8ef8c84767ccc4656e96"
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RO/ROSCH/mime-construct-${PV}.tar.gz \
file://fix-mime-construct-help-return-value.patch \
"
SRC_URI[md5sum] = "73834ea780fbea81b89dbd9b2fb54f58"
SRC_URI[sha256sum] = "4cd7bb61b51d41192d1498c1051aa6a4ccd75aeb09b71d2ec706a7084a4a9303"
inherit cpan
RDEPENDS:${PN} += "libmime-types-perl libproc-waitstat-perl msmtp \
perl-module-filehandle perl-module-mime-base64 perl-module-mime-quotedprint perl-module-posix \
"
do_install:append() {
#change the interpreter in file
sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl -w|${bindir}/env perl|g" \
${D}/${bindir}/mime-construct
}

View File

@@ -0,0 +1,55 @@
SUMMARY = "a utility to add users/groups to the system"
DESCRIPTION = "adduser, addgroup - add a user or group to the system"
HOMEPAGE = "https://salsa.debian.org/debian/adduser"
SECTION = "base/utils"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=caed49ab166f22ef31bf1127f558d0ef"
SRC_URI = "https://launchpad.net/debian/+archive/primary/+sourcefiles/adduser/${PV}/${BPN}_${PV}.tar.xz \
file://adduser-add-M-option-for-useradd.patch \
file://0001-adduser-set-default-shell-with-sbin-nologin.patch \
"
SRC_URI[md5sum] = "44ba2475ebdaafc9613236bdda321c97"
SRC_URI[sha256sum] = "3e9eea661c9aac6b2c791bfcc1de3a9c6a422d45c8f3d38ed417737ed3166ffc"
S = "${WORKDIR}/${BPN}"
inherit cpan-base update-alternatives
do_install() {
install -d ${D}${sbindir}
install -m 0755 ${S}/adduser ${D}${sbindir}
install -m 0755 ${S}/deluser ${D}${sbindir}
install -D -m 0644 ${S}/AdduserCommon.pm ${D}${libdir}/perl5/${@get_perl_version(d)}/Debian/AdduserCommon.pm
sed -i -e "s/VERSION/${PV}/" ${D}${sbindir}/*
install -d ${D}/${sysconfdir}
install -m 0644 ${S}/*.conf ${D}/${sysconfdir}
install -d ${D}${mandir}/man5
install -m 0644 ${S}/doc/*.conf.5 ${D}${mandir}/man5
install -d ${D}${mandir}/man8
install -m 0644 ${S}/doc/*.8 ${D}${mandir}/man8
install -d ${D}${docdir}/${BPN}
cp -rf ${S}/examples ${D}${docdir}/${BPN}
}
RDEPENDS:${PN} += "\
shadow \
perl-module-getopt-long \
perl-module-overloading \
perl-module-file-find \
perl-module-file-temp \
"
ALTERNATIVE:${PN} = "adduser deluser addgroup delgroup"
ALTERNATIVE_PRIORITY = "60"
ALTERNATIVE_LINK_NAME[adduser] = "${sbindir}/adduser"
ALTERNATIVE_LINK_NAME[deluser] = "${sbindir}/deluser"
ALTERNATIVE_LINK_NAME[addgroup] = "${sbindir}/addgroup"
ALTERNATIVE_LINK_NAME[delgroup] = "${sbindir}/delgroup"
ALTERNATIVE_TARGET[addgroup] = "${sbindir}/adduser.${BPN}"
ALTERNATIVE_TARGET[delgroup] = "${sbindir}/deluser.${BPN}"

View File

@@ -0,0 +1,34 @@
From 75e949bf80bf5e3e5bd8f81b258095e662b705c4 Mon Sep 17 00:00:00 2001
From: Kai Kang <kai.kang@windriver.com>
Date: Thu, 9 Jan 2020 13:51:28 +0800
Subject: [PATCH] adduser: set default shell with /sbin/nologin
Shell nologin whether provided by shadow or util-linux is installed to
/sbin/nologin in oe-core. But the default shell of adduser is
/usr/sbin/nologin and will fail to create a new user.
Set the default shell with /sbin/nologin to fix the issue.
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
adduser | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/adduser b/adduser
index 0f24cc9..ab554d0 100755
--- a/adduser
+++ b/adduser
@@ -431,7 +431,7 @@ if ($action eq "addsysuser") {
printf gtx("Adding new user `%s' (UID %d) with group `%s' ...\n"),$new_name,$new_uid,$ingroup_name
if $verbose;
$home_dir = $special_home || &homedir($new_name, $ingroup_name);
- $shell = $special_shell || '/usr/sbin/nologin';
+ $shell = $special_shell || '/sbin/nologin';
$undouser = $new_name;
my $useradd = &which('useradd');
&systemcall($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
--
2.17.1

View File

@@ -0,0 +1,45 @@
From 55a0adfc416ad85dbc440eaa667d98c200a8ce62 Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Thu, 18 Dec 2014 17:23:37 +0800
Subject: [PATCH] adduser: add -M option for useradd
The useradd (from package passwd) in debian based system sets -M (--no-create-home) by default,
but the one we are using (from package shadow) sets -m (--create-home) by default, so we
need to explicitly add -M option for useradd call or it will try to create home twice and
throw a confused message:
"The home directory `/home/newuser' already exists. Not copying from `/etc/skel'"
Upstream-Status: Submitted [1]
[1] https://lists.alioth.debian.org/pipermail/adduser-devel/2016-October/005478.html
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
adduser | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/adduser b/adduser
index a5f83f3..f6cb52c 100755
--- a/adduser
+++ b/adduser
@@ -435,7 +435,7 @@ if ($action eq "addsysuser") {
$undouser = $new_name;
my $useradd = &which('useradd');
&systemcall($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
- $shell, '-u', $new_uid, $new_name);
+ $shell, '-u', $new_uid, '-M', $new_name);
if(!$disabled_login) {
my $usermod = &which('usermod');
&systemcall($usermod, '-p', '*', $new_name);
@@ -525,7 +525,7 @@ if ($action eq "adduser") {
$undouser = $new_name;
my $useradd = &which('useradd');
&systemcall($useradd, '-d', $home_dir, '-g', $ingroup_name, '-s',
- $shell, '-u', $new_uid, $new_name);
+ $shell, '-u', $new_uid, '-M', $new_name);
&invalidate_nscd();
create_homedir (1); # copy skeleton data
--
1.8.5.2

View File

@@ -0,0 +1,23 @@
SUMMARY = "Algorithm::Diff - Compute 'intelligent' differences between two \
files/lists"
DESCRIPTION = "This is a module for computing the difference between two files, \
two strings, or any other two lists of things. It uses an intelligent \
algorithm similar to (or identical to) the one used by the Unix `diff' \
program. It is guaranteed to find the *smallest possible* set of \
differences. \
"
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~nedkonz/Algorithm-Diff/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://lib/Algorithm/Diff.pm;beginline=406;endline=409;md5=d393b8ad3b8994b9d0ae9299b8a8a1ee"
SRC_URI = "${CPAN_MIRROR}/authors/id/N/NE/NEDKONZ/Algorithm-Diff-${PV}.tar.gz"
SRC_URI[md5sum] = "457cd497a0411a88b47d3741eb176071"
SRC_URI[sha256sum] = "aa848b75ad3ecc32d31e8651909551e851cceef74a32822c7a3cb35c259f5190"
S = "${WORKDIR}/Algorithm-Diff-${PV}"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -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

View File

@@ -0,0 +1,21 @@
#!/bin/sh
#
# prepare testing config
CONF_USERS=`readlink -f /etc/raddb/users`
mv ${CONF_USERS} ${CONF_USERS}_orig
echo "testing Cleartext-Password := \"testpassword\"" > ${CONF_USERS}
cat ${CONF_USERS}_orig >> ${CONF_USERS}
# restart radiusd server
systemctl restart radiusd || /etc/init.d/radiusd restart || {
echo "FAIL: Start radiusd service."
exit 1
}
# run teests
perl test.pl
# restore the config and restart
mv ${CONF_USERS}_orig ${CONF_USERS}
systemctl restart radiusd || /etc/init.d/radiusd restart

View File

@@ -0,0 +1,90 @@
From 829302792bf0e4935d29efc23ca1f2e9e7ee7dfd Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Thu, 7 Jan 2016 03:12:38 -0500
Subject: [PATCH] test.pl: adjust for ptest
* Don't use interactive inputs, set default test
settings instead.
* Change the test results output to the ptest format
Upstream-Status: Inappropriate [OE ptest specific]
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
test.pl | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/test.pl b/test.pl
index cfd1c1e..9b4f10e 100644
--- a/test.pl
+++ b/test.pl
@@ -7,11 +7,11 @@
# Change 1..1 below to 1..last_test_to_print .
# (It may become useful if the test is moved to ./t subdirectory.)
-BEGIN {print "1..5\n";}
-END {print "not ok 1\n" unless $loaded;}
+BEGIN {print "Start testing for libauthen-radius-perl\n";}
+END {print "\nFAIL: test1\n" unless $loaded;}
use Authen::Radius;
$loaded = 1;
-print "ok 1\n";
+print "\nPASS: test1\n";
######################### End of black magic.
@@ -19,26 +19,31 @@ print "ok 1\n";
# (correspondingly "not ok 13") depending on the success of chunk 13
# of the test code):
+$host = "127.0.0.1";
+$secret = "testing123";
+$user = "testing";
+$pwd = "testpassword";
+
print "Make sure this machine is in your Radius clients file!\n";
-print "Enter hostname[:port] of your Radius server: "; chomp ($host = <STDIN>);
-print "Enter shared-secret of your Radius server: "; chomp ($secret = <STDIN>);
-print "Enter a username to be validated: "; chomp ($user = <STDIN>);
-print "Enter this user's password: "; chomp ($pwd = <STDIN>);
+print "hostname of your Radius server: $host\n";
+print "shared-secret of your Radius server: $secret\n";
+print "The username to be validated: $user\n";
+print "The user's password: $pwd\n";
$t = 2;
if ($host ne '') {
$r = new Authen::Radius(Host => $host, Secret => $secret, Debug => 1);
- print defined($r) ? "" : "not ", "ok $t\n"; $t++;
+ print defined($r) ? "\nPASS: test$t\n" : "\nFAIL: test$t\n"; $t++;
#Authen::Radius->load_dictionary;
- print $r->check_pwd($user, $pwd) ? "" : "not ", "ok $t\n"; $t++;
+ print $r->check_pwd($user, $pwd) ? "\nPASS: test$t\n" : "\nFAIL: test$t\n"; $t++;
@a = $r->get_attributes;
- print $#a != -1 ? "" : "not ", "ok $t\n"; $t++;
+ print $#a != -1 ? "\nPASS: test$t\n" : "\nFAIL: test$t\n"; $t++;
#for $a (@a) {
# print "attr: name=$a->{'Name'} value=$a->{'Value'}\n";
#}
} else {
foreach my $t (2..4) {
- print "skipped $t\n";
+ print "\nSKIP test$t\n";
}
}
@@ -53,9 +58,9 @@ my $data = "what do ya want for nothing?";
my $etalon_digest = hex_to_ascii("750c783e6ab0b503eaa86e310a5db738");
my $digest = Authen::Radius::hmac_md5(undef, $data, $key);
if ($etalon_digest eq $digest) {
- print "ok 5\n";
+ print "\nPASS: test5\n";
} else {
- print "not ok 5\n";
+ print "\nFAIL: test5\n";
}
exit;
--
1.9.1

View File

@@ -0,0 +1,47 @@
SUMMARY = "Authen::Radius - provide simple Radius client facilities"
DESCRIPTION = "The Authen::Radius module provides a simple class that \
allows you to send/receive Radius requests/responses to/from a \
Radius server. \
"
HOMEPAGE = "http://search.cpan.org/~manowar/RadiusPerl"
SECTION = "libs"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=78ab6ea0cba1f1ec1680ebb149e3bc11"
DEPENDS = "perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/RadiusPerl-${PV}.tar.gz \
file://test.pl-adjust-for-ptest.patch \
file://run-ptest \
"
SRC_URI[md5sum] = "d1fe2d6ecf7ea99299e4e3a8f945aad8"
SRC_URI[sha256sum] = "3b276506986ccaa4949d92b13ce053a0017ad11562a991cc753364923fe81ca7"
S = "${WORKDIR}/Authen-Radius-${PV}"
inherit cpan ptest
do_install_ptest() {
install -m 0755 ${S}/test.pl ${D}${PTEST_PATH}
}
RDEPENDS:${PN} += "\
libdata-hexdump-perl \
perl-module-digest-md5 \
perl-module-data-dumper \
perl-module-io-select \
perl-module-io-socket \
"
RDEPENDS:${PN}-ptest += " \
${@bb.utils.contains('PTEST_ENABLED', '1', 'freeradius', '', d)} \
"
BBCLASSEXTEND = "native"
python() {
if bb.utils.contains('PTEST_ENABLED', '1', 'True', 'False', d) and \
'networking-layer' not in d.getVar('BBFILE_COLLECTIONS').split():
raise bb.parse.SkipRecipe('ptest requires meta-networking to be present.')
}

View File

@@ -0,0 +1,30 @@
SUMMARY = "SASL Authentication framework for Perl"
DESCRIPTION = "SASL is a generic mechanism for authentication used by several network \
protocols. Authen::SASL provides an implementation framework that all \
protocols should be able to share."
HOMEPAGE = "http://search.cpan.org/dist/Authen-SASL/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://lib/Authen/SASL/Perl.pm;beginline=1;endline=3;md5=17123315bbcda19f484c07227594a609"
DEPENDS = "perl"
RDEPENDS:${PN} = "libdigest-hmac-perl"
SRC_URI = "http://www.cpan.org/authors/id/G/GB/GBARR/Authen-SASL-${PV}.tar.gz \
file://run-ptest \
"
SRC_URI[md5sum] = "7c03a689d4c689e5a9e2f18a1c586b2f"
SRC_URI[sha256sum] = "6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09"
S = "${WORKDIR}/Authen-SASL-${PV}"
inherit cpan ptest
export PERL_USE_UNSAFE_INC = "1"
do_install_ptest () {
cp -r ${B}/t ${D}${PTEST_PATH}
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,45 @@
SUMMARY = "Capture::Tiny - Capture STDOUT and STDERR from Perl, XS or external programs."
DESCRIPTION = "Capture::Tiny provies a simple, portable way to capture \
almost anything sent to STDOUT or STDERR, regardless of whether it comes \
from Perl, from XS code or from an external program. Optionally, output can \
be teed so that it is captured while being passed through to the original \
filehandles. Yes, it even works on Windows (usually). Stop guessing which of \
a dozen capturing modules to use in any particular situation and just use \
this one."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~dagolden/Capture-Tiny/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=37a4918a30ace24395020e5b8c03b83f"
SRCNAME = "Capture-Tiny"
SRC_URI = "${CPAN_MIRROR}/authors/id/D/DA/DAGOLDEN/${SRCNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "f5d24083ad270f8326dd659dd83eeb54"
SRC_URI[sha256sum] = "6c23113e87bad393308c90a207013e505f659274736638d8c79bac9c67cc3e19"
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} = " \
perl-module-carp \
perl-module-exporter \
perl-module-extutils-makemaker \
perl-module-extutils-mm-unix \
perl-module-file-spec \
perl-module-file-temp \
perl-module-io-handle \
perl-module-lib \
perl-module-overloading \
perl-module-perlio \
perl-module-perlio-scalar \
perl-module-scalar-util \
perl-module-strict \
perl-module-test-more \
perl-module-warnings \
"
RDEPENDS:${PN}-ptest += "perl-module-perlio"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,50 @@
DESCRIPTION = "CGI.pm is a stable, complete and mature solution for processing and preparing \
HTTP requests and responses. Major features including processing form \
submissions, file uploads, reading and writing cookies, query string generation \
and manipulation, and processing and preparing HTTP headers."
HOMEPAGE = "http://search.cpan.org/~leejo/CGI-4.28/lib/CGI.pod"
SECTION = "libs"
LICENSE = "Artistic-2.0 | GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=415fc49abed2728f9480cd32c8d67beb"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/L/LE/LEEJO/CGI-${PV}.tar.gz"
SRC_URI[sha256sum] = "2d36d930b89ecdfbcc7d6d4740821bd466a0218abf1bd413568640b2f43799b7"
S = "${WORKDIR}/CGI-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} += "\
libhtml-parser-perl \
perl-module-base \
perl-module-deprecate \
perl-module-if \
"
do_install:prepend() {
# requires "-T" (taint) command line option
rm -rf ${B}/t/push.t
rm -rf ${B}/t/utf8.t
# tests building of docs
rm -rf ${B}/t/compiles_pod.t
}
RDEPENDS:${PN}-ptest += " \
libtest-deep-perl \
libtest-warn-perl \
perl-module-bytes \
perl-module-file-find \
perl-module-filehandle \
perl-module-findbin \
perl-module-lib \
perl-module-perlio \
perl-module-perlio-scalar \
perl-module-test-more \
perl-module-utf8 \
"
RPROVIDES:${PN} += "perl-module-cgi"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,27 @@
SUMMARY = "Class::Method::Modifiers - provides Moose-like method modifiers"
DESCRIPTION = "Method modifiers are a convenient feature from the CLOS \
(Common Lisp Object System) world."
SECTION = "libs"
HOMEPAGE = "https://github.com/moose/Class-Method-Modifiers/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d49d07ae038f38923335ac8cc301e1ba"
SRC_URI = "${CPAN_MIRROR}/authors/id/E/ET/ETHER/Class-Method-Modifiers-${PV}.tar.gz"
SRC_URI[sha256sum] = "65cd85bfe475d066e9186f7a8cc636070985b30b0ebb1cde8681cf062c2e15fc"
S = "${WORKDIR}/Class-Method-Modifiers-${PV}"
inherit cpan
RDEPENDS:${PN} = " perl-module-b \
perl-module-base \
perl-module-carp \
perl-module-exporter \
perl-module-strict \
perl-module-warnings \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,28 @@
SUMMARY = "Low-Level Interface to bzip2 compression library"
DESCRIPTION = ""Compress::Raw::Bzip2" provides an interface to the in-memory \
compression/uncompression functions from the bzip2 compression library."
HOMEPAGE = "https://metacpan.org/release/Compress-Raw-Bzip2"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=8;endline=10;md5=85ab0f65a47c4c0f72dd6d033ff74ece"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/Compress-Raw-Bzip2-${PV}.tar.gz"
SRC_URI[sha256sum] = "ee7b490e67e7e2a7a0e8c1e1aa29a9610066149f46b836921149ad1813f70c69"
DEPENDS += "bzip2"
S = "${WORKDIR}/Compress-Raw-Bzip2-${PV}"
inherit cpan
export BUILD_BZIP2="0"
export BZIP2_INCLUDE="-I${STAGING_DIR_HOST}${includedir}"
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,32 @@
SUMMARY = "Low-Level Interface to lzma compresion library."
DESCRIPTION = "This module provides a Perl interface to allow reading and \
wrting of lzma, lzip and xz files/buffers."
HOMEPAGE = "https://metacpan.org/release/Compress-Raw-Lzma"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=8;endline=10;md5=b95311d4a7dbf3d0d3663edc094aced6"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/Compress-Raw-Lzma-${PV}.tar.gz"
SRC_URI[sha256sum] = "b226d0648da3e7309387cd8d9cf629353593fd08bac29533f2559659ef7aac1a"
DEPENDS += "xz"
S = "${WORKDIR}/Compress-Raw-Lzma-${PV}"
inherit cpan
RDEPENDS:${PN} += "\
perl-module-universal \
"
export LIBLZMA_INCLUDE="-I${STAGING_DIR_HOST}${includedir}"
export LIBLZMA_LIB="-I${STAGING_DIR_HOST}${libdir}"
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,28 @@
SUMMARY = "Perl interface to the zlib compression library."
DESCRIPTION = "The Compress::Raw::Zlib module provides a Perl interface \
to the zlib compression library (see 'AUTHOR' for details about where to \
get zlib)."
HOMEPAGE = "https://metacpan.org/release/Compress-Raw-Zlib"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=8;endline=17;md5=45bba5fa4937353fd4f505fa2108a6bf"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/Compress-Raw-Zlib-${PV}.tar.gz"
SRC_URI[sha256sum] = "f161f4297efadbed79c8b096a75951784fc5ccd3170bd32866a19e5c6876d13f"
DEPENDS += "zlib"
S = "${WORKDIR}/Compress-Raw-Zlib-${PV}"
inherit cpan
export BUILD_ZLIB="0"
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,20 @@
SUMMARY = "Perl module for read/write .ini style files"
DESCRIPTION = "Config::Tiny is a Perl class to read and write .ini \
configuration files with as little code as possible, reducing load time and \
memory overhead."
HOMEPAGE = "https://search.cpan.org/dist/Config-Tiny"
SECTION = "libraries"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ab27c3cedbdb0eb6e656a8722476191a"
RDEPENDS:${PN} += "perl"
S = "${WORKDIR}/Config-Tiny-${PV}"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Config-Tiny-${PV}.tgz"
SRC_URI[sha256sum] = "12df843a0d29d48f61bcc14c4f18f0858fd27a8dd829a00319529d654fe01500"
inherit cpan

View File

@@ -0,0 +1,41 @@
# Copyright (C) 2020 Jens Rehsack <sno@netbsd.org>
# Released under the MIT license (see COPYING.MIT for the terms)
SUMMARY = "A module to implement some of AutoConf macros in pure perl"
DESCRIPTION = "Config::AutoConf is intended to provide the same opportunities to Perl \
developers as GNU Autoconf <http://www.gnu.org/software/autoconf/> does for \
Shell developers."
HOMEPAGE= "https://metacpan.org/release/Config-AutoConf"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61"
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RE/REHSACK/Config-AutoConf-${PV}.tar.gz"
SRC_URI[md5sum] = "eeeab8cc93eef7dd2e2c343ecdf247b7"
SRC_URI[sha256sum] = "304f66cc2653264c0fe127d21669e86d3d18cd72f2574d8f5131beec31a0a33e"
RDEPENDS:${PN} += "libcapture-tiny-perl"
RDEPENDS:${PN} += "perl-module-base"
RDEPENDS:${PN} += "perl-module-carp"
RDEPENDS:${PN} += "perl-module-config"
RDEPENDS:${PN} += "perl-module-constant"
RDEPENDS:${PN} += "perl-module-file-basename"
RDEPENDS:${PN} += "perl-module-file-spec"
RDEPENDS:${PN} += "perl-module-file-temp"
RDEPENDS:${PN} += "perl-module-extutils-cbuilder"
RDEPENDS:${PN} += "perl-module-extutils-cbuilder-platform-unix"
RDEPENDS:${PN} += "perl-module-scalar-util"
RDEPENDS:${PN} += "perl-module-strict"
RDEPENDS:${PN} += "perl-module-text-parsewords"
RDEPENDS:${PN} += "perl-module-warnings"
RRECOMMENDS:${PN} += "libfile-slurper-perl"
S = "${WORKDIR}/Config-AutoConf-${PV}"
inherit cpan ptest-perl
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,36 @@
SUMMARY = "Guess OpenSSL include path"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ea914cc2718e8d53bd7744d96e66c03c"
SRC_URI = "http://www.cpan.org/modules/by-module/Crypt/Crypt-OpenSSL-Guess-${PV}.tar.gz "
SRC_URI[sha256sum] = "1c5033381819fdb4c9087dd291b90ec70e7810d31d57eade9b388eccfd70386d"
DEPENDS += "openssl"
RDEPENDS:${PN} = "\
perl-module-config \
perl-module-exporter \
perl-module-extutils-mm \
perl-module-extutils-mm-unix \
perl-module-file-spec \
perl-module-symbol \
perl-module-strict \
perl-module-warnings \
"
EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -lssl -L${STAGING_DIR_TARGET}${base_libdir} -lcrypto'"
S = "${WORKDIR}/Crypt-OpenSSL-Guess-${PV}"
inherit cpan ptest-perl
BBCLASSEXTEND = "native"
# for backwards compatibility
PROVIDES += "libcrypt-openssl-guess"
RDEPENDS:${PN}-ptest += "\
perl-module-test-more \
"

View File

@@ -0,0 +1,34 @@
SUMMARY = "Crypt::OpenSSL::Random - OpenSSL/LibreSSL pseudo-random number generator access"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=089c18d635ae273e1727ec385e64063b"
SRC_URI = "http://www.cpan.org/modules/by-module/Crypt/Crypt-OpenSSL-Random-${PV}.tar.gz "
SRC_URI[md5sum] = "bcde8d5a822c91376deda3c4f0c75fbe"
SRC_URI[sha256sum] = "f0876faa1ba3111e39b86aa730c603211eff2905e460c72a57b61e8cf475cef4"
S = "${WORKDIR}/Crypt-OpenSSL-Random-${PV}"
DEPENDS += " \
openssl \
libcrypt-openssl-guess-perl-native \
"
EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -L${STAGING_BASELIBDIR} -lcrypto'"
inherit cpan ptest-perl
RDEPENDS:${PN} += "\
perl-module-exporter \
perl-module-strict \
perl-module-vars \
perl-module-xsloader \
"
RDEPENDS:${PN}-ptest += "\
perl-module-file-copy \
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,38 @@
SUMMARY = "Crypt Openssl RSA cpan module"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a67ceecc5d9a91a5a0d003ba50c26346"
SRC_URI = "http://www.cpan.org/modules/by-module/Crypt/Crypt-OpenSSL-RSA-${PV}.tar.gz \
"
SRC_URI[sha256sum] = "bdbe630f6d6f540325746ad99977272ac8664ff81bd19f0adaba6d6f45efd864"
DEPENDS += "libcrypt-openssl-guess-perl-native openssl"
RDEPENDS:${PN} = " \
libcrypt-openssl-random-perl \
perl-module-autoloader \
perl-module-carp \
perl-module-strict \
perl-module-warnings \
perl-module-xsloader \
"
EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -lssl -L${STAGING_DIR_TARGET}${base_libdir} -lcrypto'"
S = "${WORKDIR}/Crypt-OpenSSL-RSA-${PV}"
inherit cpan ptest-perl
do_compile() {
export OTHERLDFLAGS='-Wl,-rpath'
cpan_do_compile
}
RDEPENDS:${PN}-ptest = " \
${PN} \
perl-module-file-copy \
perl-module-test \
perl-module-test-more \
"

View File

@@ -0,0 +1,40 @@
From 01d0904a987ec3d8850ae3b54252c9d3bbe75962 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 30 Aug 2022 15:43:42 -0700
Subject: [PATCH] testtyp.c: Use proper prototype for main function
Newer compilers like clang-15+ will complain about the prototype
vigorously, and the test will end up failing for this reason instead of
real check it should be failing/passing for.
Fixes
testint.c:11:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main() {
^
int
1 error generated.
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
testtyp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/testtyp.c b/testtyp.c
index 949c3d4..4042f73 100644
--- a/testtyp.c
+++ b/testtyp.c
@@ -7,7 +7,8 @@
#define _XOPEN_SOURCE_EXTENDED 1 /* We expect wide character functions */
#include "c-config.h"
-
-main() {
+int
+main(int argc, char *argv[]) {
typedef SYM c_sym_t;
+ return 0;
}
--
2.37.3

View File

@@ -0,0 +1,31 @@
DESCRIPTION = "lib-curses provides an interface between Perl programs and \
the curses library."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=0b37356c5e9e28080a3422d82af8af09"
DEPENDS += "perl ncurses "
SRC_URI = "http://www.cpan.org/authors/id/G/GI/GIRAFFED/Curses-${PV}.tar.gz \
file://0001-testtyp.c-Use-proper-prototype-for-main-function.patch \
"
SRC_URI[sha256sum] = "fb9efea8c7b5ed5f8ea5dee49d35252accfc05ee6e75cb9a37ab7c847cd261d7"
S = "${WORKDIR}/Curses-${PV}"
EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR} LIBS=-L${STAGING_LIBDIR} TEST_SYMS_OPTS=-v"
# enable NCURSES_WIDECHAR=1 only if ENABLE_WIDEC has not been explicitly disabled (e.g. by the distro config).
# When compiling against the ncurses library, NCURSES_WIDECHAR needs to explicitly set to 0 in this case.
CFLAGS:append:libc-musl = "${@' -DNCURSES_WIDECHAR=1' if bb.utils.to_boolean((d.getVar('ENABLE_WIDEC') or 'True')) else ' -DNCURSES_WIDECHAR=0'} -DNCURSES_INTERNALS"
inherit cpan
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}

View File

@@ -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

View File

@@ -0,0 +1,38 @@
SUMMARY = "Data::HexDump - Hexadecial Dumper"
DESCRIPTION = "Dump in hexadecimal the content of a scalar. The result \
is returned in a string. Each line of the result consists of the offset \
in the source in the leftmost column of each line, followed by one or \
more columns of data from the source in hexadecimal. The rightmost column \
of each line shows the printable characters \
(all others are shown as single dots).\
"
HOMEPAGE = "http://search.cpan.org/~ftassin/Data-HexDump-0.02/lib/Data/HexDump.pm"
SECTION = "libs"
LICENSE = "Artistic-1.0"
LIC_FILES_CHKSUM = "file://lib/Data/HexDump.pm;beginline=215;endline=217;md5=bf1cd9373f8d1f85fe091ee069a480e9"
DEPENDS = "perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/F/FT/FTASSIN/Data-HexDump-${PV}.tar.gz \
file://run-ptest \
"
SRC_URI[md5sum] = "467b7183d1062ab4a502b50c34e7d67f"
SRC_URI[sha256sum] = "1a9d843e7f667c1c6f77c67af5d77e7462ff23b41937cb17454d03535cd9be70"
S = "${WORKDIR}/Data-HexDump-${PV}"
inherit cpan ptest update-alternatives
do_install_ptest () {
install -d ${D}${PTEST_PATH}/t
install -m 0755 ${B}/t/* ${D}${PTEST_PATH}/t
}
BBCLASSEXTEND = "native"
ALTERNATIVES_PRIORITY = "100"
ALTERNATIVE:${PN} = "hexdump"
ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump"

View File

@@ -0,0 +1,69 @@
#! /usr/bin/env perl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation.
#
# Copyright (C) 2013 Wind River Systems, Inc.
#
# - It tests DBI and DBD::SQLite could work correctly which means one could
# manipulate sqlite database in perl
# - The test includes create/insert/update/delete/select, the five important
# things one can do with a table
use DBI;
sub execute_sql {
my $dbh = $_[0];
my $sql = $_[1];
my $sth = $dbh->prepare($sql)
or die "Couldn't prepare statement: " . $dbh->errstr;
$sth->execute();
print "$sql\n";
return $sth;
}
sub select_all {
my $dbh = $_[0];
my $table = $_[1];
my $sth = &execute_sql($dbh, "Select * from $table");
print "-----------------------------------\n";
while (@data = $sth->fetchrow_array()) {
my $name = $data[0];
my $id = $data[1];
print "$name: $id\n";
}
print "\n";
$sth->finish;
return $sth;
}
# A private, temporary in-memory database is created for the connection.
# This in-memory database will vanish when the database connection is
# closed. It is handy for your library tests.
my $dbfile = ":memory:";
my $dbh = DBI->connect("DBI:SQLite:dbname=$dbfile","","")
or die "Couldn't connect to database: " . DBI->errstr;
print "Connect to SQLite's in-memory database\n";
&execute_sql($dbh, "Create table tbl1(name varchar(10), id smallint)");
&execute_sql($dbh, "Insert into tbl1 values('yocto',10)");
&execute_sql($dbh, "Insert into tbl1 values('windriver', 20)");
&select_all($dbh, "tbl1");
&execute_sql($dbh, "Update tbl1 set name = 'oe-core' where id = 10");
&execute_sql($dbh, "Delete from tbl1 where id = 20");
&select_all($dbh, "tbl1");
$dbh->disconnect;
print "Test Success\n"

View File

@@ -0,0 +1,55 @@
SUMMARY = "A Perl DBI driver for SQLite"
DESCRIPTION = "DBD::SQLite is a Perl DBI driver for SQLite, that includes the entire \
thing in the distribution. So in order to get a fast transaction capable \
RDBMS working for your perl project you simply have to install this \
module, and nothing else. \
"
HOMEPAGE = "https://metacpan.org/release/DBD-SQLite"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1726e2117494ba3e13e1c3d93f795360"
SRC_URI = "${CPAN_MIRROR}/authors/id/I/IS/ISHIGAKI/DBD-SQLite-${PV}.tar.gz \
file://sqlite-perl-test.pl \
"
SRC_URI[sha256sum] = "5ca41e61eb52b52bd862a3088b912a75fe70910ac789b9a9983e0a449e94f551"
UPSTREAM_CHECK_REGEX = "DBD\-SQLite\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${WORKDIR}/DBD-SQLite-${PV}"
DEPENDS += "libdbi-perl-native"
inherit cpan ptest-perl
RDEPENDS:${PN} += "libdbi-perl \
sqlite3 \
perl-module-constant \
perl-module-locale \
perl-module-tie-hash \
"
do_install:append() {
if [ ${PERL_DBM_TEST} = "1" ]; then
install -m 755 -D ${WORKDIR}/sqlite-perl-test.pl ${D}/${bindir}/sqlite-perl-test.pl
fi
}
do_install_ptest() {
cp -r ${B}/MANIFEST ${D}${PTEST_PATH}
chown -R root:root ${D}${PTEST_PATH}
}
RDEPENDS:${PN}-ptest += " \
libtest-nowarnings-perl \
perl-module-lib \
perl-module-encode \
perl-module-file-spec \
perl-module-file-spec-functions \
perl-module-findbin \
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,23 @@
SUMMARY = "Function returning \"${^GLOBAL_PHASE} eq \'DESTRUCT\'\""
DESCRIPTION = "Perl's global destruction is a little trick to deal with \
WRT finalizers because it's not ordered and objects can sometimes disappear."
SECTION = "libs"
HOMEPAGE = "https://metacpan.org/pod/Devel-GlobalDestruction/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=53;endline=55;md5=935dadb9423774f53548e5cd5055d41a"
SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Devel-GlobalDestruction-${PV}.tar.gz"
SRC_URI[md5sum] = "24221ba322cf2dc46a1fc99b53e2380b"
SRC_URI[sha256sum] = "34b8a5f29991311468fe6913cadaba75fd5d2b0b3ee3bb41fe5b53efab9154ab"
S = "${WORKDIR}/Devel-GlobalDestruction-${PV}"
inherit cpan
RDEPENDS:${PN} = " libsub-exporter-progressive-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -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

View File

@@ -0,0 +1,25 @@
SUMMARY = "Keyed-Hashing for Message Authentication"
DESCRIPTION = "Keyed-Hashing for Message Authentication"
HOMEPAGE = "http://search.cpan.org/~gaas/Digest-HMAC-1.03/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=13;endline=17;md5=da980cdc026faa065e5d5004115334e6"
RDEPENDS:${PN} = "libdigest-sha1-perl perl-module-extutils-makemaker perl-module-digest-md5"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-${PV}.tar.gz \
file://run-ptest \
"
SRC_URI[md5sum] = "e6a5d6f552da16eacb5157ea4369ff9d"
SRC_URI[sha256sum] = "3bc72c6d3ff144d73aefb90e9a78d33612d58cf1cd1631ecfb8985ba96da4a59"
S = "${WORKDIR}/Digest-HMAC-${PV}"
inherit cpan ptest
do_install_ptest () {
cp -r ${B}/t ${D}${PTEST_PATH}
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,25 @@
SUMMARY = "Perl interface to the SHA-1 algorithm "
DESCRIPTION = "Digest::SHA1 - Perl interface to the SHA-1 algorithm"
HOMEPAGE = "http://search.cpan.org/~gaas/Digest-SHA1-2.13/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=10;endline=14;md5=ff5867ebb4bc1103a7a416aef2fce00a"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-${PV}.tar.gz \
file://run-ptest \
"
SRC_URI[md5sum] = "bd22388f268434f2b24f64e28bf1aa35"
SRC_URI[sha256sum] = "68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc"
S = "${WORKDIR}/Digest-SHA1-${PV}"
inherit cpan ptest
do_install_ptest () {
cp -r ${B}/t ${D}${PTEST_PATH}
}
BBCLASSEXTEND="native"
FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Digest/SHA1/.debug/"

View File

@@ -0,0 +1,21 @@
SUMMARY = "Encode::Locale - Determine the locale encoding"
AUTHOR = "Gisle Aas <gisle@activestate.com>"
HOMEPAGE = "https://metacpan.org/module/Encode::Locale"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;md5=14e8006c2134045725fd81292a323d24"
SRC_URI = "${CPAN_MIRROR}/authors/id/G/GA/GAAS/Encode-Locale-${PV}.tar.gz"
SRC_URI[md5sum] = "fcfdb8e4ee34bcf62aed429b4a23db27"
SRC_URI[sha256sum] = "176fa02771f542a4efb1dbc2a4c928e8f4391bf4078473bd6040d8f11adb0ec1"
S = "${WORKDIR}/Encode-Locale-${PV}"
inherit cpan
RDEPENDS:${PN} += "libencode-perl \
libencode-alias-perl \
perl-module-base \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,109 @@
# NOTE:
# You should use perl-module-encode rather than this package
# unless you specifically need a version newer than what is
# provided by perl.
SUMMARY = "Encode - character encodings"
DESCRIPTION = "The \"Encode\" module provides the interfaces between \
Perl's strings and the rest of the system. Perl strings are sequences \
of characters."
AUTHOR = "Dan Kogai <dankogai+cpan@gmail.com>"
HOMEPAGE = "https://metacpan.org/release/Encode"
SECTION = "lib"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://META.json;beginline=8;endline=10;md5=b12e3be1e17a7e99ca4f429ff32c28b5"
SRC_URI = "${CPAN_MIRROR}/authors/id/D/DA/DANKOGAI/Encode-${PV}.tar.gz"
SRC_URI[sha256sum] = "9163f848eef69e4d4cc8838397f0861fd9ea7ede001117dbd9694f8d95052ef5"
UPSTREAM_CHECK_REGEX = "Encode\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${WORKDIR}/Encode-${PV}"
#EXTRA_CPANFLAGS:append = "PERL=../recipe-sysroot-native/usr/bin/perl-native/perl"
inherit cpan ptest-perl
do_install:prepend() {
# Requires "-T" (taint) option on command line
rm -rf ${B}/t/taint.t
# Circular dependency of perl-module-open on perl-module-encode
# and we cannot load perl-module-encode because we are providing
# an alternative
rm -rf ${B}/t/use-Encode-Alias.t
}
do_install:append() {
sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native||g" ${S}/*/*.exh ${S}/*.exh
}
do_install_ptest() {
mkdir ${D}${PTEST_PATH}/bin
cp -r ${B}/bin/piconv ${D}${PTEST_PATH}/bin
cp -r ${B}/blib ${D}${PTEST_PATH}
chown -R root:root ${D}${PTEST_PATH}
}
# file /usr/bin/enc2xs from install of perl-misc-5.24.1-r0.i586 conflicts with file from package libencode-perl-2.94-r0.i586
# file /usr/bin/encguess from install of perl-misc-5.24.1-r0.i586 conflicts with file from package libencode-perl-2.94-r0.i586
# file /usr/bin/piconv from install of perl-misc-5.24.1-r0.i586 conflicts with file from package libencode-perl-2.94-r0.i586
RCONFLICTS:${PN} = "perl-misc perl-module-encode"
RDEPENDS:${PN} += " \
perl-module-bytes \
perl-module-constant \
perl-module-parent \
perl-module-storable \
perl-module-xsloader \
"
RPROVIDES:${PN} += " \
libencode-alias-perl \
libencode-byte-perl \
libencode-cjkconstants-perl \
libencode-cn-perl \
libencode-cn-hz-perl \
libencode-config-perl \
libencode-ebcdic-perl \
libencode-encoder-perl \
libencode-encoding-perl \
libencode-gsm0338-perl \
libencode-guess-perl \
libencode-jp-perl \
libencode-jp-h2z-perl \
libencode-jp-jis7-perl \
libencode-kr-perl \
libencode-kr-2022_kr-perl \
libencode-mime-header-perl \
libencode-mime-name-perl \
libencode-symbol-perl \
libencode-tw-perl \
libencode-unicode-perl \
libencode-unicode-utf7-perl \
libencoding-perl \
libencode-internal-perl \
libencode-mime-header-iso_2022_jp-perl \
libencode-utf8-perl \
libencode-utf_ebcdic-perl \
"
RDEPENDS:${PN}-ptest += " \
perl-module-blib \
perl-module-charnames \
perl-module-file-compare \
perl-module-file-copy \
perl-module-filehandle \
perl-module-findbin \
perl-module-integer \
perl-module-io-select \
perl-module-ipc-open3 \
perl-module-mime-base64 \
perl-module-perlio \
perl-module-perlio-encoding \
perl-module-perlio-scalar \
perl-module-test-more \
perl-module-tie-scalar \
perl-module-unicore \
perl-module-utf8 \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,21 @@
SUMMARY = "Perl module that imports environment variables as scalars or arrays"
DESCRIPTION = "Perl maintains environment variables in a special hash named %ENV. \
For when this access method is inconvenient, the Perl module Env allows environment \
variables to be treated as scalar or array variables."
HOMEPAGE = "http://search.cpan.org/~flora/Env/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=76c1cbf18db56b3340d91cb947943bd3"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Env-${PV}.tar.gz"
SRC_URI[md5sum] = "fdba5c0690e66972c96fee112cf5f25c"
SRC_URI[sha256sum] = "d94a3d412df246afdc31a2199cbd8ae915167a3f4684f7b7014ce1200251ebb0"
S = "${WORKDIR}/Env-${PV}"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,25 @@
SUMMARY = "ExtUtils::Config - A wrapper for perl's configuration"
DESCRIPTION = "ExtUtils::Config is an abstraction around the %Config hash."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~leont/ExtUtils-Config/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1932ab4d8b84c25fd7967aa18088e57e"
SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/ExtUtils-Config-${PV}.tar.gz"
SRC_URI[md5sum] = "565a7b09c7cac5907a25bbe2c959a717"
SRC_URI[sha256sum] = "ae5104f634650dce8a79b7ed13fb59d67a39c213a6776cfdaa3ee749e62f1a8c"
S = "${WORKDIR}/ExtUtils-Config-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} = " perl-module-extutils-makemaker \
perl-module-data-dumper \
perl-module-ipc-open3 \
perl-module-test-more \
perl-module-file-temp \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,36 @@
SUMMARY = "ExtUtils::CppGuess - guess C++ compiler and flags"
DESCRIPTION = "ExtUtils::CppGuess attempts to guess the system's C++ \
compiler that is compatible with the C compiler that your perl was built \
with. \
It can generate the necessary options to the Module::Build constructor or \
to ExtUtils::MakeMaker's WriteMakefile function."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~smueller/ExtUtils-CppGuess/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=81;endline=84;md5=84c0390b90ea8c6702ce659b67bed699"
SRC_URI = "${CPAN_MIRROR}/authors/id/E/ET/ETJ/ExtUtils-CppGuess-${PV}.tar.gz"
SRC_URI[sha256sum] = "c8b362b860172a4076acee00438f52b86464f2c500702cfcf7527811ff9a683e"
S = "${WORKDIR}/ExtUtils-CppGuess-${PV}"
inherit cpan
do_install () {
cpan_do_install
}
RDEPENDS:${PN} = " libcapture-tiny-perl \
perl-module-scalar-util \
perl-module-io-file \
perl-module-extutils-makemaker \
perl-module-file-spec \
perl-module-exporter \
perl-module-carp \
perl-module-file-temp \
perl-module-lib \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,29 @@
SUMMARY = "ExtUtils::Helpers - Various portability utilities for module builders"
DESCRIPTION = "This module provides various portable helper function for module building modules."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~leont/ExtUtils-Helpers/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=223c04045664f72c3a6556462612bddd"
SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/ExtUtils-Helpers-${PV}.tar.gz"
SRC_URI[md5sum] = "83b00c1e401321c425ae5db6b2b2fd12"
SRC_URI[sha256sum] = "de901b6790a4557cf4ec908149e035783b125bf115eb9640feb1bc1c24c33416"
S = "${WORKDIR}/ExtUtils-Helpers-${PV}"
inherit cpan
RDEPENDS:${PN} = " perl-module-file-copy \
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-file-spec-functions \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,34 @@
SUMMARY = "ExtUtils::InstallPaths - Build.PL install path logic made easy"
DESCRIPTION = "This module tries to make install path resolution as easy \
as possible."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~leont/ExtUtils-InstallPaths/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b6fa54d873ce6bcf4809ea88bdf97769"
SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/ExtUtils-InstallPaths-${PV}.tar.gz"
SRC_URI[md5sum] = "9a8d66aab1ffec98ea260faf03ac612b"
SRC_URI[sha256sum] = "84735e3037bab1fdffa3c2508567ad412a785c91599db3c12593a50a1dd434ed"
S = "${WORKDIR}/ExtUtils-InstallPaths-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} = " \
libextutils-config-perl \
perl-module-bytes \
perl-module-data-dumper \
perl-module-extutils-makemaker \
perl-module-file-temp \
perl-module-test-more \
"
RDEPENDS:${PN}-ptest = " \
${PN} \
perl-module-file-spec-functions \
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,47 @@
SUMMARY = "ExtUtils::ParseXS - converts Perl XS code into C code"
DESCRIPTION = "\"ExtUtils::ParseXS\" will compile XS code into C code by \
embedding the constructs necessary to let C functions manipulate Perl \
values and creates the glue necessary to let Perl access those functions. \
The compiler uses typesmapes to determine how to map C function parameters \
and variables to Perl values."
SECTION = "libs"
HOMEPAGE = "http://metapan.org/release/ExtUtils-ParseXS/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=120;endline=129;md5=eb858f0e3b1b0bee0c05b86a474ae2b6"
SRCNAME = "ExtUtils-ParseXS"
SRC_URI = "${CPAN_MIRROR}/authors/id/S/SM/SMUELLER/${SRCNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "2ae41036d85e98e1369645724962dd16"
SRC_URI[sha256sum] = "41def0511278a2a8ba9afa25ccab45b0453f75e7fd774e8644b5f9a57cc4ee1c"
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit cpan
RDEPENDS:${PN} += " perl-module-carp \
perl-module-cwd \
perl-module-dynaloader \
perl-module-extutils-cbuilder \
perl-module-extutils-makemaker \
perl-module-file-basename \
perl-module-file-spec \
perl-module-lib \
perl-module-symbol \
perl-module-test-more \
"
RPROVIDES:${PN} += " libextutils-parsexs-constants-perl \
libextutils-parsexs-countlines-perl \
libextutils-parsexs-eval-perl \
libextutils-parsexs-utilities-perl \
libextutils-typemaps-perl \
libextutils-typemaps-cmd-perl \
libextutils-typemaps-inputmap-perl \
libextutils-typemaps-outputmap-perl \
libextutils-typemaps-type-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,19 @@
SUMMARY = "Slurp entire files into variables."
DESCRIPTION = "This module provides subroutines to read or write \
entire files with a simple call. It also has a subroutine for \
reading the list of filenames in a directory. \
"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=37;endline=41;md5=255fbd5f98a90d51d9908d31271ae4d4"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/U/UR/URI/File-Slurp-${PV}.tar.gz"
S = "${WORKDIR}/File-Slurp-${PV}"
inherit cpan
SRC_URI[md5sum] = "7d584cd15c4f8b9547765eff8c4ef078"
SRC_URI[sha256sum] = "ce29ebe995097ebd6e9bc03284714cdfa0c46dc94f6b14a56980747ea3253643"
BBCLASSEXTEND="native"

View File

@@ -0,0 +1,35 @@
SUMMARY = "A simple, sane and efficient module to slurp a file"
DESCRIPTION = "This module provides functions for fast and correct slurping and spewing. \
All functions are optionally exported. All functions throw exceptions on \
errors, write functions don't return any meaningful value."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
HOMEPAGE= "https://metacpan.org/release/File-Slurper"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61"
SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/File-Slurper-${PV}.tar.gz"
SRC_URI[sha256sum] = "d5a36487339888c3cd758e648160ee1d70eb4153cacbaff57846dbcefb344b0c"
RDEPENDS:${PN} = " \
perl-module-carp \
perl-module-encode \
perl-module-exporter \
perl-module-perlio \
perl-module-perlio-encoding \
perl-module-strict \
perl-module-warnings \
"
RDEPENDS:${PN}-ptest += "libtest-warnings-perl \
perl-module-test-more \
"
S = "${WORKDIR}/File-Slurper-${PV}"
inherit cpan ptest-perl
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,25 @@
From 28ee994780459c3552d3cbbd6b011d054a41c439 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Sun, 8 Nov 2015 23:33:31 -0500
Subject: [PATCH] bin/htmltree: fix shebang
Upstream-Status: Pending
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
bin/htmltree | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/htmltree b/bin/htmltree
index 8bf3db2..f9927e5 100755
--- a/bin/htmltree
+++ b/bin/htmltree
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Time-stamp: "2000-10-02 14:48:15 MDT"
#
# Parse the given HTML file(s) and dump the parse tree
--
1.9.1

View File

@@ -0,0 +1,45 @@
DESCRIPTION = "This package contains the Parser.pm module with friends."
HOMEPAGE = "https://metacpan.org/release/HTML-Parser"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;md5=b0459e4426b94753b9a9b8a15f1223b8"
DEPENDS += "perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-${PV}.tar.gz"
SRC_URI[md5sum] = "eb7505e5f626913350df9dd4a03d54a8"
SRC_URI[sha256sum] = "ec28c7e1d9e67c45eca197077f7cdc41ead1bb4c538c7f02a3296a4bb92f608b"
S = "${WORKDIR}/HTML-Parser-${PV}"
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
inherit cpan ptest-perl
do_compile() {
export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
cpan_do_compile
}
RDEPENDS:${PN} += "\
perl-module-exporter \
perl-module-strict \
perl-module-vars \
perl-module-xsloader \
libhtml-tagset-perl \
"
RDEPENDS:${PN}-ptest += "\
liburi-perl \
perl-module-config \
perl-module-file-spec \
perl-module-filehandle \
perl-module-io-file \
perl-module-selectsaver \
perl-module-test \
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,29 @@
SUMMARY = "HTML::Tageset - data tables useful in parsing HTML"
DESCRIPTION = "This module contains several data tables useful in various \
kinds of HTML parsing operations."
HOMEPAGE = "https://metacpan.org/release/HTML-Tagset"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=62;endline=66;md5=aa91eed6adfe182d2af676954f06a7c9"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PE/PETDANCE/HTML-Tagset-${PV}.tar.gz"
SRC_URI[md5sum] = "d2bfa18fe1904df7f683e96611e87437"
SRC_URI[sha256sum] = "adb17dac9e36cd011f5243881c9739417fd102fce760f8de4e9be4c7131108e2"
S = "${WORKDIR}/HTML-Tagset-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} += "perl-module-strict perl-module-vars"
RDEPENDS:${PN}-ptest += "perl-module-test"
do_install:prepend() {
# requires "-T" (taint) command line option
rm -rf ${B}/t/pod.t
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,44 @@
SUMMARY = "HTML::TreeBuilder - Parser that builds a HTML syntax tree"
DESCRIPTION = "This distribution contains a suite of modules for representing, \
creating, and extracting information from HTML syntax trees; there is \
also relevent documentation. These modules used to be part of the \
libwww-perl distribution, but are now unbundled in order to facilitate \
a separate development track."
SECTION = "libs"
HOMEPAGE = "http://www.cpan.org/authors/id/C/CJ/CJM/HTML-Tree-${PV}.readme"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3eb57a8958cae73cb65e7d0c26339242"
SRC_URI = "${CPAN_MIRROR}/authors/id/C/CJ/CJM/HTML-Tree-${PV}.tar.gz \
file://bin-htmltree-fix-shebang.patch \
"
SRC_URI[md5sum] = "d9271d60b872ed6fbe68b2d0fe8c450e"
SRC_URI[sha256sum] = "7d6d73fca622aa74855a8b088faa39454a0f91b7af83c9ec0387f01eefc2148f"
S = "${WORKDIR}/HTML-Tree-${PV}"
inherit cpan_build
export PERL_USE_UNSAFE_INC = "1"
DEPENDS += "libmodule-build-perl-native \
"
RPROVIDES:${PN} = " libhtml-element-perl \
libhtml-tree-assubs-perl \
libhtml-tree-perl \
libhtml-treebuilder-perl \
"
RDEPENDS:${PN} = " perl-module-b \
perl-module-base \
perl-module-strict \
perl-module-warnings \
perl-module-exporter \
perl-module-carp \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,32 @@
SUMMARY = "Import::Into - import packages into other packages"
DESCRIPTION = "Writing exporters is a pain. Some use \"Exporter\", some use \
\"Sub::Exporter\", some use \"Moose::Exporter\", some use \
\"Exporter::Declare\"... and some things are pragmas.\
\
Exporting on someone else's behalf is harder. The exporters don't provide a \
consistent API for this, and pragmas need to have their import method called \
directly, since they effect the current unit of compilation. \
\
\"Import::Into\" provides global methods to make this painless."
SECTION = "libs"
HOMEPAGE = "https://metacpan.org/pod/Import-Into/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=209;endline=223;md5=3cf363f1e405dea6db2c6cd0ef23680c"
SRC_URI = "${CPAN_MIRROR}/authors/id/E/ET/ETHER/Import-Into-${PV}.tar.gz"
SRC_URI[md5sum] = "70f2f3b08a5b706ee382a8448c346cb1"
SRC_URI[sha256sum] = "decb259bc2ff015fe3dac85e4a287d4128e9b0506a0b2c5fa7244836a68b1084"
S = "${WORKDIR}/Import-Into-${PV}"
inherit cpan
RDEPENDS:${PN} = " libmodule-runtime-perl \
perl-module-strict \
perl-module-warnings \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,24 @@
SUMMARY = "Perl interface to allow reading and writing of lzma files/buffers."
DESCRIPTION = "This module provides a Perl interface to allow reading and \
writing of lzma files/buffers."
HOMEPAGE = "https://metacpan.org/release/IO-Compress-Lzma"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=8;endline=10;md5=b95311d4a7dbf3d0d3663edc094aced6"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/IO-Compress-Lzma-${PV}.tar.gz"
SRC_URI[sha256sum] = "1e7a4c4f4e665434df59246b19d168b08af2f1aeebaa08937bd69ad3e5e319c8"
S = "${WORKDIR}/IO-Compress-Lzma-${PV}"
inherit cpan
RDEPENDS:${PN} += "\
perl-module-autoloader \
libcompress-raw-lzma-perl \
libio-compress-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,41 @@
SUMMARY = "Perl interface to allow reading and writing of compressed data."
DESCRIPTION = "This distribution provides a Perl interface to allow reading \
and writing of compressed data created with the zlib and bzip2. \
\
IO-Compress supports reading and writing of the following compressed data \
formats \
* bzip2 \
* RFC 1950 \
* RFC 1951 \
* RFC 1952 (i.e. gzip) \
* zip \
"
HOMEPAGE = "https://metacpan.org/release/IO-Compress"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=8;endline=10;md5=8e78b88f9c8ac08ae03e8ea81195ca45"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PM/PMQS/IO-Compress-${PV}.tar.gz"
SRC_URI[sha256sum] = "617784cb8543778681341b18fc67b74735e8b494f32f00814dd22f68ac6af018"
S = "${WORKDIR}/IO-Compress-${PV}"
inherit cpan
RDEPENDS:${PN} += "\
perl-module-bytes \
perl-module-cwd \
perl-module-encode \
perl-module-file-glob \
perl-module-file-spec \
perl-module-posix \
perl-module-scalar-util \
perl-module-time-local \
perl-module-utf8 \
libcompress-raw-bzip2-perl \
libcompress-raw-zlib-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,56 @@
SUMMARY = "Perl library for transparent SSL"
DESCRIPTION = "This module is a true drop-in replacement for IO::Socket::INET that \
uses SSL to encrypt data before it is transferred to a remote server \
or client. IO::Socket::SSL supports all the extra features that one \
needs to write a full-featured SSL client or server application: \
multiple SSL contexts, cipher selection, certificate verification, and \
SSL version selection. As an extra bonus, it works perfectly with \
mod_perl."
HOMEPAGE = "http://search.cpan.org/dist/IO-Socket-SSL/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://META.yml;beginline=12;endline=12;md5=963ce28228347875ace682de56eef8e8"
RDEPENDS:${PN} += "\
libmozilla-ca-perl \
libnet-ssleay-perl \
perl-module-autoloader \
perl-module-io-socket \
perl-module-scalar-util \
"
SRC_URI = "${CPAN_MIRROR}/authors/id/S/SU/SULLR/IO-Socket-SSL-${PV}.tar.gz"
SRC_URI[sha256sum] = "4cf83737a72b0970948b494bc9ddab7f725420a0ca0152d25c7e48ef8fa2b6a1"
S = "${WORKDIR}/IO-Socket-SSL-${PV}"
inherit cpan ptest-perl
do_install:append () {
mkdir -p ${D}${docdir}/${PN}/
cp ${S}/BUGS ${D}${docdir}/${PN}/
cp ${S}/Changes ${D}${docdir}/${PN}/
cp ${S}/README ${D}${docdir}/${PN}/
cp -pRP ${S}/docs ${D}${docdir}/${PN}/
cp -pRP ${S}/certs ${D}${docdir}/${PN}/
cp -pRP ${S}/example ${D}${docdir}/${PN}/
}
RDEPENDS:${PN}-ptest += "\
libnet-libidn-perl \
liburi-perl \
perl-module-file-glob \
perl-module-findbin \
perl-module-io-socket-inet \
perl-module-io-socket-ip \
perl-module-perlio \
perl-module-perlio-scalar \
perl-module-test-more \
"
do_install_ptest:append () {
cp -r ${B}/certs ${D}${PTEST_PATH}
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,31 @@
SUMMARY = "IO-stringy - I/O on in-core objects like strings and arrays"
DESCRIPTION = "This toolkit primarily provides modules for performing both \
traditional and object-oriented i/o on things *other* than normal \
filehandles; in particular, IO::Scalar, IO::ScalarArray, and IO::Lines."
HOMEPAGE = "http://www.zeegee.com/products/IO-stringy/"
SECTION = "devel"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=01406e4ff2e60d88d42ef1caebdd0011"
SRC_URI = "${CPAN_MIRROR}/authors/id/D/DS/DSKOLL/IO-stringy-${PV}.tar.gz"
SRC_URI[md5sum] = "e91acf0a800b190d13585a47de775bdd"
SRC_URI[sha256sum] = "8c67fd6608c3c4e74f7324f1404a856c331dbf48d9deda6aaa8296ea41bf199d"
S = "${WORKDIR}/IO-stringy-${PV}"
inherit cpan
RPROVIDES:${PN} += " libio-atomicfile-perl \
libio-innerfile-perl \
libio-lines-perl \
libio-scalar-perl \
libio-scalararray-perl \
libio-wrap-perl \
libio-wraptie-perl \
libio-wraptie-master-perl \
libio-wraptie-slave-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,18 @@
SUMMARY = "IPC::Signal - Utility functions dealing with signals"
DESCRIPTION = "IPC::Signal - This module contains utility functions for \
dealing with signals."
HOMEPAGE = "http://search.cpan.org/~rosch/IPC-Signal-1.00/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=16;endline=18;md5=f36550f59a0ae5e6e3b0be6a4da60d26"
S = "${WORKDIR}/IPC-Signal-${PV}"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/IPC-Signal-${PV}.tar.gz"
SRC_URI[md5sum] = "4cebf17fdf1785eaf8c151bf2e8c360a"
SRC_URI[sha256sum] = "7c21f9c8c2d0c0f0f0f46e77de7c3d879dd562668ddf0525875c38cef2076fd0"
inherit cpan

View File

@@ -0,0 +1,21 @@
SUMMARY = "Locale::gettext - message handling functions."
DESCRIPTION = "The gettext module permits access from perl to the gettext() family of \
functions for retrieving message strings from databases constructed to \
internationalize software."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~pvandry/Locale-gettext-${PV}/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;md5=d028249c2d08dca6ca6c5bb43b56d926"
SRC_URI = "${CPAN_MIRROR}/authors/id/P/PV/PVANDRY/Locale-gettext-${PV}.tar.gz"
SRC_URI[md5sum] = "bc652758af65c24500f1d06a77415019"
SRC_URI[sha256sum] = "909d47954697e7c04218f972915b787bd1244d75e3bd01620bc167d5bbc49c15"
S = "${WORKDIR}/Locale-gettext-${PV}"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -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

View File

@@ -0,0 +1,18 @@
SUMMARY = "MIME::Charset - Charset Information for MIME."
DESCRIPTION = "MIME::Charset provides information about character sets used for MIME \
messages on Internet."
HOMEPAGE = "http://search.cpan.org/~nezumi/MIME-Charset-${PV}/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = "${CPAN_MIRROR}/authors/id/N/NE/NEZUMI/MIME-Charset-${PV}.tar.gz"
SRC_URI[sha256sum] = "1bb7a6e0c0d251f23d6e60bf84c9adefc5b74eec58475bfee4d39107e60870f0"
S = "${WORKDIR}/MIME-Charset-${PV}"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,46 @@
SUMMARY = "MIME::Types - Definition of MIME types"
DESCRIPTION = "MIME types are used in MIME compliant lines, for instance \
as part of e-mail and HTTP traffic, to indicate the type of content which \
is transmitted. Sometimes real knowledge about a mime-type is need.\
\n\
This module maintains a set of MIME::Type objects, which each describe \
one known mime type."
HOMEPAGE = "http://search.cpan.org/~markov/MIME-Types-${PV}"
SECTION = "libraries"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://META.yml;beginline=11;endline=11;md5=963ce28228347875ace682de56eef8e8"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MIME-Types-${PV}.tar.gz \
file://run-ptest \
"
SRC_URI[sha256sum] = "629e361f22b220be50c2da7354e23c0451757709a03c25a22f3160edb94cb65f"
S = "${WORKDIR}/MIME-Types-${PV}"
inherit cpan ptest
RDEPENDS:${PN} = "\
perl-module-base \
perl-module-carp \
perl-module-constant \
perl-module-cwd \
perl-module-encode-encoding \
perl-module-file-basename \
perl-module-file-spec \
perl-module-list-util \
perl-module-overload \
perl-module-perlio \
perl-module-perlio-encoding \
"
RDEPENDS:${PN}-ptest = "\
perl-module-lib \
perl-module-test-more \
"
#RSUGGESTS:${PN}-ptest = "libmojo-base-perl"
do_install_ptest () {
cp -r ${B}/t ${D}${PTEST_PATH}
}

View File

@@ -0,0 +1,54 @@
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=57b8100f0b648cd37fbc3725fe3c111a"
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[md5sum] = "2332c90c17454107fea3f2614e11a3a9"
SRC_URI[sha256sum] = "7d580ff6ace0cbe555bf36b86dc8ea232581530cbeaaea09bccb57b55797f11c"
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"

View File

@@ -0,0 +1,44 @@
SUMMARY = "Automatically give your module the ability to have plugins"
DESCRIPTION = "Provides a simple but, hopefully, extensible way of \
having 'plugins' for your module. Obviously this isn't going to be the \
be all and end all of solutions but it works for me.\
\
Essentially all it does is export a method into your namespace that \
looks through a search path for .pm files and turn those into class \
names.\
\
Optionally it instantiates those classes for you."
SECTION = "libs"
AUTHOR = "Simon Wistow <simon@thegestalt.org>"
HOMEPAGE = "https://github.com/simonwistow/Module-Pluggable"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=322;endline=325;md5=086450ce010f6fda25db0b38fcc41086"
SRCNAME = "Module-Pluggable"
SRC_URI = "${CPAN_MIRROR}/authors/id/S/SI/SIMONW/${SRCNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "87ce2971662efd0b69a81bb4dc9ea76c"
SRC_URI[sha256sum] = "b3f2ad45e4fd10b3fb90d912d78d8b795ab295480db56dc64e86b9fa75c5a6df"
PR = "r1"
UPSTREAM_CHECK_REGEX = "Module\-Pluggable\-(?P<pver>(\d+\.\d+))"
UPSTREAM_CHECK_URI = "https://metacpan.org/release/${SRCNAME}"
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit cpan
RDEPENDS:${PN} = " perl-module-base \
perl-module-deprecate \
perl-module-file-basename \
perl-module-file-find \
perl-module-file-spec \
perl-module-file-spec-functions \
perl-module-if \
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,37 @@
SUMMARY = "Module::Runtime - runtime module handling"
DESCRIPTION = "The functions exported by this module deal with runtime \
handling of Perl modules, which are normally handled at compile time. This \
module avoids using any other modules, so that it can be used in low-level \
infrastructure. \
The parts of this module that work with module names apply the same syntax \
that is used for barewords in Perl source. In principle this syntax can vary \
between versions of Perl, and this module applies the syntax of the Perl on \
which it is running. In practice the usable syntax hasn't changed yet, but \
there's a good chance of it changing in Perl 5.18. \
The functions of this module whose purpose is to load modules include \
workarounds for three old Perl core bugs regarding require. These workarounds \
are applied on any Perl version where the bugs exist, except for a case where \
one of the bugs cannot be adequately worked around in pure Perl."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~zefram/Module-Runtime/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=36;endline=44;md5=9416434672a57853d6181f3da9094963"
SRCNAME = "Module-Runtime"
SRC_URI = "${CPAN_MIRROR}/authors/id/Z/ZE/ZEFRAM/${SRCNAME}-${PV}.tar.gz"
SRC_URI[md5sum] = "d3d47222fa2e3dfcb4526f6cc8437b20"
SRC_URI[sha256sum] = "68302ec646833547d410be28e09676db75006f4aa58a11f3bdb44ffe99f0f024"
UPSTREAM_CHECK_REGEX = "Module\-Runtime\-(?P<pver>(\d+\.\d+)).tar"
S = "${WORKDIR}/${SRCNAME}-${PV}"
inherit cpan
RDEPENDS:${PN} = " perl-module-test-more \
perl-module-strict \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,43 @@
SUMMARY = "Moo - Minimalist Object Orientation (with Moose compatibility)"
DESCRIPTION = "This module us an extremely light-weight subset of \"Moose\" \
optimised for rapid startup and \"pay only for what you use\"."
SECTION = "libs"
HOMEPAGE = "http://metapan.org/release/Moo/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=742;endline=787;md5=74f4de483dce5aa45ed6da875f11258a"
SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Moo-${PV}.tar.gz"
SRC_URI[sha256sum] = "fb5a2952649faed07373f220b78004a9c6aba387739133740c1770e9b1f4b108"
S = "${WORKDIR}/Moo-${PV}"
inherit cpan
RDEPENDS:${PN} = " libclass-method-modifiers-perl \
libdevel-globaldestruction-perl \
libmodule-runtime-perl \
librole-tiny-perl \
perl-module-constant \
perl-module-exporter \
perl-module-mro \
perl-module-scalar-util \
"
RPROVIDES:${PN} = " libmethod-inliner-perl \
libmethod-generate-accessor-perl \
libmethod-generate-buildall-perl \
libmethod-generate-constructor-perl \
libmethod-generate-demolishall-perl \
libmoo-perl \
libmoo-handlemoose-perl \
libmoo-handlemoose-fakemetaclass-perl \
libmoo-object-perl \
libmoo-role-perl \
libsub-defer-perl \
libsub-quote-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,22 @@
SUMMARY = "Mozilla's CA cert bundle in PEM format"
DESCRIPTION = "Mozilla::CA provides a copy of Mozilla's bundle of \
Certificate Authority certificates in a form that can be consumed by \
modules and libraries based on OpenSSL."
HOMEPAGE = "https://metacpan.org/pod/Mozilla::CA"
BUGTRACKER = "https://github.com/libwww-perl/Mozilla-CA/issues"
SECTION = "libs"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://README;beginline=32;endline=39;md5=51e666dce556490a1132e937ad3f8729"
SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Mozilla-CA-${PV}.tar.gz"
SRC_URI[sha256sum] = "701bea67be670add5a102f9f8c879402b4983096b1cb0e20dd47d52d7a10666b"
S = "${WORKDIR}/Mozilla-CA-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN}-ptest += "\
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -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

View File

@@ -0,0 +1,65 @@
DESCRIPTION = "This package contains the DNS.pm module with friends."
HOMEPAGE = "http://www.net-dns.org/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README;beginline=252;endline=269;md5=de95b6a896d5f861d724ea854d316a0b"
DEPENDS += "perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"
SRC_URI[sha256sum] = "e672031158942a7016c0480ab3c1fd0d7f81ea5dd650d1ecca7116d5fd348565"
UPSTREAM_CHECK_REGEX = "Net\-DNS\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${WORKDIR}/Net-DNS-${PV}"
EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
inherit cpan ptest-perl
RDEPENDS:${PN} = " \
libdigest-hmac-perl \
perl-module-base \
perl-module-constant \
perl-module-digest-md5 \
perl-module-digest-sha \
perl-module-file-spec \
perl-module-integer \
perl-module-io-file \
perl-module-io-select \
perl-module-io-socket \
perl-module-io-socket-ip \
perl-module-mime-base64 \
perl-module-scalar-util \
perl-module-test-more \
perl-module-time-local \
"
RRECOMMENDS:${PN} += " \
libnet-dns-sec-perl \
"
RDEPENDS:${PN}-ptest += " \
perl-module-encode \
perl-module-encode-byte \
perl-module-extutils-mm \
perl-module-extutils-mm-unix \
perl-module-overload \
"
python __anonymous () {
# rather than use "find" to determine libc-*.so,
# statically export the known paths for glibc and musl
import os
if d.getVar('TCLIBC') == "glibc":
os.environ["LIBC"] = "${STAGING_BASELIBDIR}/libc.so.6"
elif d.getVar('TCLIBC') == "musl":
os.environ["LIBC"] = "${STAGING_LIBDIR}/libc.so"
else:
raise bb.parse.SkipRecipe("incompatible with %s C library" %
d.getVar('TCLIBC'))
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,31 @@
DESCRIPTION = "DNSSEC extensions to Net::DNS"
HOMEPAGE = "http://www.net-dns.org/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README;beginline=165;endline=192;md5=6ef523fa09e8c272675839e21de16bde"
SRC_URI = "https://cpan.metacpan.org/authors/id/W/WI/WILLEM/Net-DNS-SEC-${PV}.tar.gz"
SRC_URI[md5sum] = "ffa55a9898192c9d4c623cb1357eba9b"
SRC_URI[sha256sum] = "37a47d4def72d7338f3cc7cd807ec19bd9e2ae638ae656fa536cf0314801989e"
DEPENDS += "openssl"
UPSTREAM_CHECK_REGEX = "Net\-DNS\-SEC\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${WORKDIR}/Net-DNS-SEC-${PV}"
EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -lssl -L${STAGING_BASELIBDIR} -lcrypto'"
inherit cpan ptest-perl
RDEPENDS:${PN} = " \
libnet-dns-perl \
libcrypto \
perl-module-dynaloader \
perl-module-file-find \
perl-module-file-spec \
perl-module-io-file \
perl-module-mime-base64 \
perl-module-test-more \
"

View File

@@ -0,0 +1,45 @@
SUMMARY = "LDAP Perl module"
DESCRIPTION = "Net::LDAP is a collection of modules that implements \
a LDAP services API for Perl programs. The module may be used to \
search directories or perform maintenance functions such as adding, \
deleting or modifying entries."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=3;endline=5;md5=4d6588c2fa0d38ae162f6314d201d89e"
SRC_URI = "${CPAN_MIRROR}/authors/id/M/MA/MARSCHAP/perl-ldap-${PV}.tar.gz"
SRC_URI[md5sum] = "d091ed00302f0276069bca9df9478744"
SRC_URI[sha256sum] = "e2f389fe3e7a9e4b61488692919ad723b98f3b479b5288f610daa8c27995b351"
S = "${WORKDIR}/perl-ldap-${PV}"
inherit cpan ptest-perl
do_configure:prepend() {
perl -pi -e 's/auto_install_now.*//g' Makefile.PL
}
do_install_ptest() {
cp -r ${B}/data ${D}${PTEST_PATH}
chown -R root:root ${D}${PTEST_PATH}
}
RDEPENDS:${PN} += " \
libconvert-asn1-perl \
libio-socket-ssl-perl \
libauthen-sasl-perl \
perl-module-integer \
"
RDEPENDS:${PN}-ptest += " \
libxml-sax-base-perl \
libxml-sax-writer-perl \
perl-module-file-compare \
perl-module-perlio \
perl-module-test-more \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,49 @@
perl-Net-LibIDN: cross-compile
Upstream-Status: Pending
Add support for cross-compile allowing the compiler binary to be
specified into the perl Makefile instead of using the default 'gcc'.
Signed-off-by: Greg Moffatt <greg.moffatt@windriver.com>
---
--- perl-Net-LibIDN-0.12.orig/Makefile.PL 2009-02-26 07:09:45.000000000 -0500
+++ perl-Net-LibIDN-0.12/Makefile.PL 2010-10-19 09:34:22.811173965 -0400
@@ -9,6 +9,7 @@
my $options;
my $testno=1;
my %MakeParams = InitMakeParams();
+my $compiler;
WriteMakefile(%MakeParams);
@@ -44,7 +45,8 @@
(
"with-libidn=s" => \$libdir,
"with-libidn-inc=s" => \$incdir,
- "disable-tld" => \$disable_tld
+ "disable-tld" => \$disable_tld,
+ "compiler=s" => \$compiler
);
if ($libdir)
@@ -165,12 +167,17 @@
return 0;
}
- foreach my $cc (qw/cc gcc/)
+ foreach my $cc ($compiler, qw/cc gcc/)
{
unlink($test);
system "$cc $cflags -o $test $test.c $ldflags";
next if ($? >> 8);
+ if ($compiler == $cc)
+ {
+ return 1;
+ }
+
if (open(FILE, "./$test|"))
{
my $match;

View File

@@ -0,0 +1,34 @@
SUMMARY = "Net::LibIDN - Perl bindings for GNU Libidn"
DESCRIPTION = "\
Provides bindings for GNU Libidn, a C library for handling Internationalized \
Domain Names according to IDNA (RFC 3490), in a way very much inspired by \
Turbo Fredriksson's PHP-IDN. \
"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
HOMEPAGE = "http://search.cpan.org/dist/Net-LibIDN/"
DEPENDS += "libidn"
# We must need glibc-gconvs to enable charset related functions,
# such as Net::LibIDN::idn_to_ascii().
RDEPENDS:${PN}:append:libc-glibc = " glibc-gconvs"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TH/THOR/Net-LibIDN-${PV}.tar.gz"
SRC_URI[md5sum] = "c3e4de2065009d67bcb1df0afb473e12"
SRC_URI[sha256sum] = "2f8acc9442b3866ec7dc63cd449fc693ae3e930d5d3e5e9430fbb6f393bdbb17"
SRC_URI += "file://libidn-wr-cross-compile.patch"
LIC_FILES_CHKSUM = "file://README;beginline=42;endline=92;md5=3374ea0369ca3ead6047520477a43147"
S = "${WORKDIR}/Net-LibIDN-${PV}"
EXTRA_CPANFLAGS = "--with-libidn=${STAGING_LIBDIR} --with-libidn-inc=${STAGING_INCDIR} --compiler='${CC}'"
EXTRA_CPANFLAGS += "--disable-tld"
inherit cpan
FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Net/LibIDN/.debug/"
do_configure:prepend() {
rm -rf ${S}/.pc/
}

View File

@@ -0,0 +1,37 @@
Avoid running target binaries during in cross build
Upstream-Status: Inappropriate [Cross-compile specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
--- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2018-08-27 14:56:24.788544991 +0200
+++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2018-08-27 15:00:12.847266331 +0200
@@ -24,20 +24,7 @@
$self->requires_external_cc;
my $prefix = $self->find_openssl_prefix;
- my $exec = $self->find_openssl_exec($prefix);
-
- unless (-x $exec) {
- print <<EOM;
-*** Could not find OpenSSL
- If it's already installed, please set the OPENSSL_PREFIX environment
- variable accordingly. If it isn't installed yet, get the latest version
- from http://www.openssl.org/.
-EOM
- exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library"
- }
-
- $self->check_openssl_version($prefix, $exec);
- my $opts = $self->ssleay_get_build_opts($prefix, $exec);
+ my $opts = $self->ssleay_get_build_opts($prefix);
$self->makemaker_args(
CCCDLFLAGS => $opts->{cccdlflags},
@@ -58,7 +45,7 @@
}
sub ssleay_get_build_opts {
- my ($self, $prefix, $exec) = @_;
+ my ($self, $prefix) = @_;
my $opts = {
lib_links => [],

View File

@@ -0,0 +1,48 @@
SUMMARY = "Net::SSLeay - Perl extension for using OpenSSL"
DESCRIPTION = "This module offers some high level convenience functions for accessing \
web pages on SSL servers (for symmetry, same API is offered for \
accessing http servers, too), a sslcat() function for writing your own \
clients, and finally access to the SSL api of SSLeay/OpenSSL package \
so you can write servers or clients for more complicated applications."
HOMEPAGE = "http://search.cpan.org/dist/Net-SSLeay/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=67d67095d83e339da538a082fad5f38e"
DEPENDS = "openssl zlib openssl-native"
RDEPENDS:${PN} += "\
libssl \
libcrypto \
perl-module-carp \
perl-module-errno \
perl-module-extutils-makemaker \
perl-module-mime-base64 \
perl-module-socket \
perl-module-autoloader \
zlib \
"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz \
file://no-exec-on-configure.patch \
file://run-ptest \
"
SRC_URI[md5sum] = "d602bdce4e0531c6efc276e3e429ca69"
SRC_URI[sha256sum] = "9d8188b9fb1cae3bd791979c20554925d5e94a138d00414f1a6814549927b0c8"
S = "${WORKDIR}/Net-SSLeay-${PV}"
inherit cpan ptest
do_configure() {
export OPENSSL_PREFIX="${STAGING_EXECPREFIXDIR}"
cpan_do_configure
}
do_install_ptest() {
cp -r ${B}/t ${D}${PTEST_PATH}
}
FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/"
RDEPENDS:${PN}-ptest = " perl"

View File

@@ -0,0 +1,25 @@
SUMMARY = "Net-Telnet Perl module"
DESCRIPTION = "Net::Telnet allows you to make client connections to a TCP port and do \
network I/O, especially to a port using the TELNET protocol. Simple I/O \
methods such as print, get, and getline are provided. More sophisticated \
interactive features are provided because connecting to a TELNET port \
ultimately means communicating with a program designed for human interaction. \
These interactive features include the ability to specify a time-out and to \
wait for patterns to appear in the input stream, such as the prompt from a \
shell."
HOMEPAGE = "http://search.cpan.org/dist/Net-Telnet/"
SECTION = "Development/Libraries"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=4;endline=7;md5=e94ab3b72335e3cdadd6c1ff736dd714"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/J/JR/JROGERS/Net-Telnet-${PV}.tar.gz"
SRC_URI[md5sum] = "c8573c57a2d9469f038c40ac284b1e5f"
SRC_URI[sha256sum] = "677f68ba2cd2a824fae323fa82e183bf7e3d03c3c499c91d923bd6283796a743"
S = "${WORKDIR}/Net-Telnet-${PV}"
inherit cpan
RDEPENDS:${PN} = "perl"

View File

@@ -0,0 +1,20 @@
SUMMARY = "Interpret and act on wait() status values"
DESCRIPTION = "This module contains functions for interpreting and acting \
on wait status values."
HOMEPAGE = "http://search.cpan.org/~rosch/Proc-WaitStat/"
SECTION = "libraries"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=21;endline=23;md5=f36550f59a0ae5e6e3b0be6a4da60d26"
RDEPENDS:${PN} += "perl libipc-signal-perl"
S = "${WORKDIR}/Proc-WaitStat-${PV}"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/Proc-WaitStat-${PV}.tar.gz"
SRC_URI[md5sum] = "b911bd579b6b142391b21de1efa30c95"
SRC_URI[sha256sum] = "d07563f5e787909d16e7390241e877f49ab739b1de9d0e2ea1a41bd0bf4474bc"
inherit cpan

View File

@@ -0,0 +1,29 @@
SUMMARY = "Role::Tiny - Roles. Like a nouvelle cousine portion size of Moose."
DESCRIPTION = "\"Role::Tiny\" is a minimalist role composition tool."
SECTION = "libs"
HOMEPAGE = "https://metacpan.org/pod/Role::Tiny"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=197;endline=234;md5=26df7e7c20551fb1906e2286624f0b71"
SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/Role-Tiny-${PV}.tar.gz"
SRC_URI[md5sum] = "9ee45591befa3d0b1094ac75d282b6ba"
SRC_URI[sha256sum] = "d7bdee9e138a4f83aa52d0a981625644bda87ff16642dfa845dcb44d9a242b45"
S = "${WORKDIR}/Role-Tiny-${PV}"
inherit cpan
RDEPENDS:${PN} = " perl-module-exporter \
perl-module-strict \
perl-module-test-more \
perl-module-warnings \
"
RPROVIDES:${PN} = " librole-tiny-perl \
librole-tiny-with-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,40 @@
SUMMARY = "Perl interface to the libstatgrab library"
DESCRIPTION = "Unix::Statgrab is a wrapper for libstatgrab as available from \
<http://www.i-scream.org/libstatgrab/>. It is a reasonably portable attempt \
to query interesting stats about your computer. It covers information on \
the operating system, CPU, memory usage, network interfaces, hard-disks \
etc."
HOMEPAGE = "https://metacpan.org/release/Unix-Statgrab"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later | LGPL-2.1-or-later"
DEPENDS += "libcapture-tiny-perl-native"
DEPENDS += "libconfig-autoconf-perl-native"
DEPENDS += "libstatgrab"
RDEPENDS:${PN} += "\
libstatgrab \
perl-module-autoloader \
perl-module-carp \
perl-module-dynaloader \
perl-module-exporter \
perl-module-strict \
perl-module-vars \
perl-module-warnings \
"
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RE/REHSACK/Unix-Statgrab-${PV}.tar.gz"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \
file://${COMMON_LICENSE_DIR}/GPL-1.0-or-later;md5=30c0b8a5048cc2f4be5ff15ef0d8cf61 \
file://${COMMON_LICENSE_DIR}/LGPL-2.1-or-later;md5=2a4f4fd2128ea2f65047ee63fbca9f68 \
"
SRC_URI[md5sum] = "a6bc06b3f7749f7d77a2b1bd13402821"
SRC_URI[sha256sum] = "16a29f7acaeec081bf0e7303ba5ee24fda1d21a1104669b837745f3ea61d6afa"
S = "${WORKDIR}/Unix-Statgrab-${PV}"
export LD = "${CCLD}"
inherit cpan pkgconfig ptest-perl
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,48 @@
SUMMARY = "strictures - turn on strict and make all warnings fatal"
DESCRIPTION = "I've been writing the equivalent of this module at the top \
of my code for about a year now. I figured it was time to make it shorter. \
\
Things like the importer in \"use Moose\" don't help me because they turn \
warnings on but don't make them fatal -- which from my point of view is \
useless because I want an exception to tell me my code isn't warnings-clean. \
\
Any time I see a warning from my code, that indicates a mistake. \
\
Any time my code encounters a mistake, I want a crash -- not spew to STDERR \
and then unknown (and probably undesired) subsequent behaviour. \
\
I also want to ensure that obvious coding mistakes, like indirect object \
syntax (and not so obvious mistakes that cause things to accidentally compile \
as such) get caught, but not at the cost of an XS dependency and not at the \
cost of blowing things up on another machine. \
\
Therefore, \"strictures\" turns on additional checking, but only when it \
thinks it's running in a test file in a VCS checkout -- although if this \
causes undesired behaviour this can be overridden by setting the \
PERL_STRICTURES_EXTRA environment variable."
SECTION = "libs"
HOMEPAGE = "https://metacpan.org/pod/strictures"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=246;endline=262;md5=43be558cf4f19823cdd6af22135cf5f8"
SRC_URI = "${CPAN_MIRROR}/authors/id/H/HA/HAARG/strictures-${PV}.tar.gz"
SRC_URI[md5sum] = "35c14fd25320f32ff40e977feae95d0d"
SRC_URI[sha256sum] = "09d57974a6d1b2380c802870fed471108f51170da81458e2751859f2714f8d57"
S = "${WORKDIR}/strictures-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} += " \
perl-module-carp \
perl-module-strict \
perl-module-test-more \
perl-module-warnings \
"
RDEPENDS:${PN}-ptest += "perl-module-perlio perl-module-perlio-scalar"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,28 @@
SUMMARY = "Sub::Exporter::Progressive - Only use Sub::Exporter if you need it."
DESCRIPTION = "\"Sub::Exporter\" is an incredibly powerful module, but with \
that power comes great responsibility, er- as well as some runtime penalties. \
This module is a \"Sub::Exporter\" wrapper that will let your users just use \
\"Exporter\" if all they are doing is picking exports, but use \
\"Sub::Exporter\" if your users try to use \"Sub::Exporter's\" more advanced \
features, like renaming exports, if they try to use them."
SECTION = "libs"
HOMEPAGE = "https://metacpan.org/pod/Sub-Exporter-Progressive/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=003fa970662359a43ac2c2961108b0f1"
SRC_URI = "${CPAN_MIRROR}/authors/id/F/FR/FREW/Sub-Exporter-Progressive-${PV}.tar.gz"
SRC_URI[md5sum] = "72cf6acdd2a0a8b105821a4db98e4ebe"
SRC_URI[sha256sum] = "d535b7954d64da1ac1305b1fadf98202769e3599376854b2ced90c382beac056"
S = "${WORKDIR}/Sub-Exporter-Progressive-${PV}"
inherit cpan
RDEPENDS:${PN} += " perl-module-carp \
perl-module-list-util \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,43 @@
SUMMARY = "Sub::Uplevel - apparently run a function in a higher stack frame"
DESCRIPTION = " Like Tcl's uplevel() function, but not quite so dangerous. \
The idea is just to fool caller(). All the really naughty bits of Tcl's \
uplevel() are avoided. \
\
THIS IS NOT THE SORT OF THING YOU WANT TO DO EVERYDAY \
"
SECTION = "libs"
HOMEPAGE= "https://metacpan.org/release/Sub-Uplevel"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=7f1207cd3108e4ade18448d81e6bcb6c"
CPAN_PACKAGE = "Sub-Uplevel"
CPAN_AUTHOR = "DAGOLDEN"
SRC_URI = "${CPAN_MIRROR}/authors/id/D/DA/${CPAN_AUTHOR}/${CPAN_PACKAGE}-${PV}.tar.gz"
SRC_URI[md5sum] = "6c6a174861fd160e8d5871a86df00baf"
SRC_URI[sha256sum] = "b4f3f63b80f680a421332d8851ddbe5a8e72fcaa74d5d1d98f3c8cc4a3ece293"
S = "${WORKDIR}/${CPAN_PACKAGE}-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} += " \
perl-module-carp \
perl-module-constant \
perl-module-strict \
perl-module-warnings \
"
RDEPENDS:${PN}-ptest += " \
perl-module-cpan \
perl-module-exporter \
perl-module-extutils-makemaker \
perl-module-file-spec \
perl-module-lib \
perl-module-test-more \
"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,43 @@
SUMMARY = "Term::ReadKey - A perl module for simple terminal control."
DESCRIPTION = "Term::ReadKey is a compiled perl module dedicated to providing simple \
control over terminal driver modes (cbreak, raw, cooked, etc.,) support \
for non-blocking reads, if the architecture allows, and some generalized \
handy functions for working with terminals. One of the main goals is to \
have the functions as portable as possible, so you can just plug in 'use \
Term::ReadKey' on any architecture and have a good likelihood of it \
working."
HOMEPAGE = "http://search.cpan.org/~jstowe/TermReadKey-${PV}"
SECTION = "libraries"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;md5=c275db663c8489a5709ebb22b185add5"
SRC_URI = "${CPAN_MIRROR}/authors/id/J/JS/JSTOWE/TermReadKey-${PV}.tar.gz"
SRC_URI[md5sum] = "b2b4aab7a0e6bddb7ac3b21ba637482c"
SRC_URI[sha256sum] = "5a645878dc570ac33661581fbb090ff24ebce17d43ea53fd22e105a856a47290"
S = "${WORKDIR}/TermReadKey-${PV}"
UPSTREAM_CHECK_URI = "https://metacpan.org/release/TermReadKey"
UPSTREAM_CHECK_REGEX = "TermReadKey\-(?P<pver>(\d+\.\d+))(?!_\d+)\.tar.gz"
# It needs depend on native to let dynamic loader use native modules
# rather than target ones.
DEPENDS = "libterm-readkey-perl-native"
inherit cpan ptest-perl
RDEPENDS:${PN}-ptest += " \
perl-module-test-more \
"
do_configure:append () {
# Hack the dynamic module loader so that it use native modules since it can't load
# the target ones.
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
sed -i -e "s#-I\$(INST_ARCHLIB)#-I${STAGING_BINDIR_NATIVE}/perl-native/perl/vendor_perl/${@get_perl_version(d)}#g" Makefile
fi
}
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,55 @@
SUMMARY = "Test::Deep - Extremely flexible deep comparison"
DESCRIPTION = "If you don't know anything about automated testing in Perl \
then you should probably read about Test::Simple and Test::More before \
preceding. Test::Deep uses the Test::Builder framework. \
\
Test::Deep gives you very flexible ways to check that the result you got is \
the result you were expecting. At its simplest it compares two structures \
by going through each level, ensuring that the values match, that arrays and \
hashes have the same elements and that references are blessed into the \
correct class. It also handles circular data structures without getting \
caught in an infinite loop. \
\
Where it becomes more interesting is in allowing you to do something besides \
simple exact comparisons. With strings, the \'eq\' operator checks that 2 \
strings are exactly equal but sometimes that's not what you want. When you \
don't know exactly what the string should be but you do know some things \
about how it should look, \'eq\' is no good and you must use pattern matching \
instead. Test::Deep provides pattern matching for complex data structures \
distribution."
SECTION = "libs"
HOMEPAGE = "http://github.com/rjbs/Test-Deep/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://lib/Test/Deep.pm;beginline=1817;endline=1826;md5=d3ed382cc19bae8ead6076df35a43cbf"
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RJ/RJBS/Test-Deep-${PV}.tar.gz"
SRC_URI[sha256sum] = "b6591f6ccdd853c7efc9ff3c5756370403211cffe46047f082b1cd1611a84e5f"
UPSTREAM_CHECK_REGEX = "Test\-Deep\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${WORKDIR}/Test-Deep-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} += " \
perl-module-dynaloader \
perl-module-exporter \
perl-module-fcntl \
perl-module-list-util \
perl-module-scalar-util \
perl-module-strict \
perl-module-vars \
perl-module-warnings \
"
RDEPENDS:${PN}-ptest += " \
perl-module-if \
perl-module-lib \
perl-module-test-more \
perl-module-test-tester \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,119 @@
# NOTE:
# You should use perl-module-test-harness instead of this package,
# unless you specifically need a newer version than what is provided
# by perl in oe-core.
SUMMARY = "Test::Harness - Run Perl standard test scripts with statistics"
DESCRIPTION = "Although, for historical reasons, the Test::Harness \
distribution takes its name from this module it now exists only to provide \
TAP::Harness with an interface that is somewhat backwards compatible \
with Test::Harness 2.xx. If you're writing new code consider using \
TAP::Harness directly instead. \
\
Emulation is provided for runtests and execute_tests but the \
pluggable 'Straps' interface that previous versions of Test::Harness \
supported is not reproduced here. Straps is now available as a stand \
alone module: Test::Harness::Straps. \
\
See TAP::Parser, TAP::Harness for the main documentation for this \
distribution."
SECTION = "libs"
HOMEPAGE = "http://testanything.org"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=29;endline=30;md5=d41d8cd98f00b204e9800998ecf8427e"
SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Test-Harness-${PV}.tar.gz"
SRC_URI[sha256sum] = "7eb591ea6b499ece6745ff3e80e60cee669f0037f9ccbc4e4511425f593e5297"
UPSTREAM_CHECK_REGEX = "Test\-Harness\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${WORKDIR}/Test-Harness-${PV}"
inherit cpan ptest-perl
RDEPENDS:${PN} += "\
perl-module-benchmark \
"
RPROVIDES:${PN} += "libapp-prove-perl \
libapp-prove-state-perl \
libapp-prove-state-result-perl \
libapp-prove-state-result-test-perl \
libtap-base-perl \
libtap-formatter-base-perl \
libtap-formatter-color-perl \
libtap-formatter-console-perl \
libtap-formatter-console-parallelsession-perl \
libtap-formatter-console-session-perl \
libtap-formatter-file-perl \
libtap-formatter-file-session-perl \
libtap-formatter-session-perl \
libtap-harness-perl \
libtap-harness-env-perl \
libtap-object-perl \
libtap-parser-perl \
libtap-parser-aggregator-perl \
libtap-parser-grammar-perl \
libtap-parser-iterator-perl \
libtap-parser-iterator-array-perl \
libtap-parser-iterator-process-perl \
libtap-parser-iterator-stream-perl \
libtap-parser-iteratorfactory-perl \
libtap-parser-multiplexer-perl \
libtap-parser-result-perl \
libtap-parsser-result-bailout-perl \
libtap-parser-result-comment-perl \
libtap-parser-result-plan-perl \
libtap-parser-result-pragma-perl \
libtap-parser-result-test-perl \
libtap-parser-result-unknown-perl \
libtap-parser-result-version-perl \
libtap-parser-result-yaml-perl \
libtap-parser-resultfactory-perl \
libtap-parser-scheduler-perl \
libtap-parser-scheduler-job-perl \
libtap-parser-scheduler-spinner-perl \
libtap-parser-source-perl \
libtap-parser-sourcehandler-perl \
libtap-parser-sourcehandler-executable-perl \
libtap-parser-sourcehandler-file-perl \
libtap-parser-sourcehandler-handle-perl \
libtap-parser-sourcehandler-perl-perl \
libtap-parser-sourcehandler-rawtap-perl \
libtap-parser-yamlish-reader-perl \
libtap-parser-yamlish-writer-perl \
"
do_install:prepend() {
# these tests are inappropriate on target
rm -rf ${B}/t/000-load.t
rm -rf ${B}/t/state.t
# these tests require "-T" (taint) option on command line
rm -rf ${B}/t/aggregator.t
rm -rf ${B}/t/bailout.t
rm -rf ${B}/t/base.t
rm -rf ${B}/t/callbacks.t
rm -rf ${B}/t/errors.t
rm -rf ${B}/t/nested.t
rm -rf ${B}/t/object.t
rm -rf ${B}/t/premature-bailout.t
rm -rf ${B}/t/results.t
rm -rf ${B}/t/streams.t
rm -rf ${B}/t/yamlish-output.t
rm -rf ${B}/t/compat/version.t
}
do_install:append() {
install -d ${D}/usr/local/bin
# do not clobber perl-misc /usr/bin/prove
install -m 0755 ${B}/bin/prove ${D}/usr/local/bin/
rm -rf ${D}${bindir}/prove
rm -rf ${D}${bindir}
}
FILES:${PN} += "/usr/local/bin/prove"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,37 @@
SUMMARY = "Make sure you didn't emit any warnings while testing"
DESCRIPTION = "In general, your tests shouldn't produce warnings. This \
modules causes any warnings to be captured and stored. It automatically \
adds an extra test that will run when your script ends to check that there \
were no warnings. If there were any warings, the test will give a \\"not ok\\" \
and diagnostics of where, when and what the warning was, including a stack \
trace of what was going on when the it occurred.\
\
If some of your tests are supposed to produce warnings then you should \
be capturing and checking them with Test::Warn, that way \
Test::NoWarnings will not see them and so not complain.\
\
The test is run by an \\"END\\" block in Test::NoWarnings. It will not be \
run when any forked children exit."
SECTION = "libs"
LICENSE = "LGPL-2.1-only"
HOMEPAGE= "https://metacpan.org/release/Test-NoWarnings"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d8045f3b8f929c1cb29a1e3fd737b499"
CPAN_PACKAGE = "Test-NoWarnings"
CPAN_AUTHOR = "ADAMK"
SRC_URI = "${CPAN_MIRROR}/authors/id/A/AD/${CPAN_AUTHOR}/${CPAN_PACKAGE}-${PV}.tar.gz"
SRC_URI[md5sum] = "682ed043f7d3e38f3dfd8745fd21c49a"
SRC_URI[sha256sum] = "638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c"
RDEPENDS:${PN} += "perl-module-test-builder perl-module-test-more perl-module-test-tester"
S = "${WORKDIR}/${CPAN_PACKAGE}-${PV}"
inherit cpan ptest-perl
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,45 @@
SUMMARY = "Test::Warn - Perl extension to test methods for warnings"
DESCRIPTION = "This module provides a few convenience methods for testing \
warning based code. \
\
If you are not already familiar with the Test::More manpage now would be \
the time to go take a look. \
"
SECTION = "libs"
HOMEPAGE= "https://metacpan.org/release/Test-Warn"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=73;endline=78;md5=42b423d91c92ba59c215835a2ee9b57a"
CPAN_PACKAGE = "Test-Warn"
CPAN_AUTHOR = "BIGJ"
SRC_URI = "${CPAN_MIRROR}/authors/id/B/BI/${CPAN_AUTHOR}/${CPAN_PACKAGE}-${PV}.tar.gz"
SRC_URI[sha256sum] = "98ca32e7f2f5ea89b8bfb9a0609977f3d153e242e2e51705126cb954f1a06b57"
S = "${WORKDIR}/${CPAN_PACKAGE}-${PV}"
inherit cpan ptest-perl
do_install_ptest() {
cp -r ${B}/blib ${D}${PTEST_PATH}
chown -R root:root ${D}${PTEST_PATH}
}
RDEPENDS:${PN} += " \
libsub-uplevel-perl \
perl-module-blib \
perl-module-carp \
perl-module-test-builder \
perl-module-test-builder-tester \
perl-module-test-tester \
"
RDEPENDS:${PN}-ptest += " \
perl-module-file-spec \
perl-module-test-more \
"
BBCLASSEXTEND = "native nativesdk"

View File

@@ -0,0 +1,27 @@
SUMMARY = "Text::CharWidth - Get number of occupied columns of a string on terminal."
DESCRIPTION = "This module supplies features similar as wcwidth(3) and wcswidth(3) \
in C language. \
Characters have its own width on terminal depending on locale. For \
example, ASCII characters occupy one column per character, east Asian \
fullwidth characters (like Hiragana or Han Ideograph) occupy two columns \
per character, and combining characters (apperaring in ISO-8859-11 Thai, \
Unicode, and so on) occupy zero columns per character. mbwidth() gives the \
width of the first character of the given string and mbswidth() gives the \
width of the whole given string."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~kubota/Text-CharWidth-${PV}/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;md5=d8d54c8c500cbdd57a4c15911d9d96db"
SRC_URI = "${CPAN_MIRROR}/authors/id/K/KU/KUBOTA/Text-CharWidth-${PV}.tar.gz"
SRC_URI[md5sum] = "37a723df0580c0758c0ee67b37336c15"
SRC_URI[sha256sum] = "abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8"
S = "${WORKDIR}/Text-CharWidth-${PV}"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,27 @@
SUMMARY = "Text::Diff - Perform diffs on files and record sets"
DESCRIPTION = "diff() provides a basic set of services akin to the GNU diff \
utility. It is not anywhere near as feature complete as GNU diff, but it is \
better integrated with Perl and available on all platforms. It is often \
faster than shelling out to a system's diff executable for small files, \
and generally slower on larger files."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~ovid/Text-Diff/"
LICENSE = "Artistic-1.0 | GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=385c55653886acac3821999a3ccd17b3"
SRC_URI = "${CPAN_MIRROR}/authors/id/O/OV/OVID/Text-Diff-${PV}.tar.gz"
SRC_URI[md5sum] = "30d56e6dd5551ca16b8e16cc7299dc21"
SRC_URI[sha256sum] = "a67f50a48e313c1680cc662109ce5f913ea71454db355d0cf4db87ac89d2d2fa"
S = "${WORKDIR}/Text-Diff-${PV}"
inherit cpan
RDEPENDS:${PN} = " libalgorithm-diff-perl \
perl-module-extutils-makemaker \
perl-module-exporter \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,24 @@
SUMMARY = "Perl interface to iconv() codeset conversion function"
DESCRIPTION = "\
The Text::Iconv module provides a Perl interface to the iconv() \
function as defined by the Single UNIX Specification. The convert() \
method converts the encoding of characters in the input string from \
the fromcode codeset to the tocode codeset, and returns the result. \
Settings of fromcode and tocode and their permitted combinations are \
implementation-dependent. Valid values are specified in the system \
documentation."
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=3;endline=6;md5=fadf2919c7128e887d26b4d905f90649"
RRECOMMENDS:${PN}:append:libc-glibc = " glibc-gconvs"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-${PV}.tar.gz"
SRC_URI[md5sum] = "81b26e069eaebb084e91ea3c009b67ae"
SRC_URI[sha256sum] = "5b80b7d5e709d34393bcba88971864a17b44a5bf0f9e4bcee383d029e7d2d5c3"
S = "${WORKDIR}/Text-Iconv-${PV}"
inherit cpan
FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Text/Iconv/.debug/"

View File

@@ -0,0 +1,32 @@
SUMMARY = "Text::WrapI18N - Line wrapping module with support for multibyte, \
fullwidth, and combining characters and languages without whitespaces \
between words."
DESCRIPTION = "This module intends to be a better Text::Wrap module. This module is \
needed to support multibyte character encodings such as UTF-8, EUC-JP, \
EUC-KR, GB2312, and Big5. This module also supports characters with \
irregular widths, such as combining characters (which occupy zero columns \
on terminal, like diacritical marks in UTF-8) and fullwidth characters \
(which occupy two columns on terminal, like most of east Asian \
characters). Also, minimal handling of languages which doesn't use \
whitespaces between words (like Chinese and Japanese) is supported."
SECTION = "libs"
HOMEPAGE = "http://search.cpan.org/~kubota/Text-WrapI18N-${PV}/"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;md5=080862e1e40cdcddef4393e137285858"
SRC_URI = "${CPAN_MIRROR}/authors/id/K/KU/KUBOTA/Text-WrapI18N-${PV}.tar.gz"
SRC_URI[md5sum] = "0799c16a00926e6c18d400c2e2861d5f"
SRC_URI[sha256sum] = "4bd29a17f0c2c792d12c1005b3c276f2ab0fae39c00859ae1741d7941846a488"
S = "${WORKDIR}/Text-WrapI18N-${PV}"
DEPENDS = "libtext-charwidth-perl"
RDEPENDS:${PN} = "libtext-charwidth-perl"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,55 @@
SUMMARY = "Unicode::LineBreak - UAX #14 Unicode Line Breaking Algorithm."
DESCRIPTION = "Unicode::LineBreak performs Line Breaking Algorithm described in Unicode \
Standard Annex #14 [UAX #14]. East_Asian_Width informative property \
defined by Annex #11 [UAX #11] will be concerned to determine breaking \
positions."
SECTION = "libs"
HOMEPAGE = "https://metacpan.org/release/Unicode-LineBreak"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://README;beginline=5;endline=9;md5=b5e8b1099b86b86fbc315b50484231ab"
SRC_URI = "${CPAN_MIRROR}/authors/id/N/NE/NEZUMI/Unicode-LineBreak-${PV}.tar.gz"
SRC_URI[md5sum] = "003d6da7a13700e069afed9238c864b9"
SRC_URI[sha256sum] = "486762e4cacddcc77b13989f979a029f84630b8175e7fef17989e157d4b6318a"
S = "${WORKDIR}/Unicode-LineBreak-${PV}"
DEPENDS = "libsombok3 libmime-charset-perl"
inherit cpan ptest-perl
do_install_ptest() {
cp -r ${B}/test-data ${D}${PTEST_PATH}
chown -R root:root ${D}${PTEST_PATH}
}
RDEPENDS:${PN} += " \
libmime-charset-perl \
libsombok3 \
perl-module-carp \
perl-module-constant \
perl-module-encode \
perl-module-exporter \
perl-module-overload \
perl-module-strict \
perl-module-vars \
perl-module-warnings \
perl-module-xsloader \
"
RDEPENDS:${PN}-ptest += " \
perl-module-findbin \
perl-module-lib \
perl-module-strict \
perl-module-test-more \
"
RPROVIDES:${PN} += " \
libtext-linefold-perl \
libunicode-gcstring-perl \
"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,25 @@
SUMMARY = "XML::Filter::BufferText - Filter to put all characters() in one event"
DESCRIPTION = "\
The XML::Filter::BufferText module is a very simple filter. One common \
cause of grief (and programmer error) is that XML parsers aren't required \
to provide character events in one chunk. They can, but are not forced \
to, and most don't. This filter does the trivial but oft-repeated task \
of putting all characters into a single event. \
"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
HOMEPAGE = "http://search.cpan.org/dist/XML-Filter-BufferText/"
DEPENDS += "libxml-sax-perl-native"
RDEPENDS:${PN} += "libxml-sax-perl"
SRC_URI = "http://search.cpan.org/CPAN/authors/id/R/RB/RBERJON/XML-Filter-BufferText-${PV}.tar.gz"
SRC_URI[md5sum] = "2992c0387632583b966ab9c965b25512"
SRC_URI[sha256sum] = "8fd2126d3beec554df852919f4739e689202cbba6a17506e9b66ea165841a75c"
LIC_FILES_CHKSUM = "file://BufferText.pm;beginline=88;endline=90;md5=497aa6d79cc84c3d769a2a0016bee928"
S = "${WORKDIR}/XML-Filter-BufferText-${PV}"
inherit cpan
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,51 @@
From 25451c0a56ef8d3b32fd23847bef516486bd8ed4 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 16 Jan 2023 18:50:10 -0800
Subject: [PATCH] libxml-mm: Fix function prototypes in function pointers
This is now detected with latest clang16+
Fixes
error: incompatible function pointer types passing 'void (void *, void *, xmlChar *)' (aka 'void (void *, void *, unsigned char *)') to parameter of type 'xmlHashScanner' (aka 'void (*)(void *, void *, const unsigned char *)') [-Wincompatible-function-pointer-types]
xmlHashScan(r, PmmRegistryDumpHashScanner, NULL);
Upstream-Status: Submitted [https://github.com/shlomif/perl-XML-LibXML/pull/75]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
perl-libxml-mm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/perl-libxml-mm.c b/perl-libxml-mm.c
index a3e78a2..ec2b5ea 100644
--- a/perl-libxml-mm.c
+++ b/perl-libxml-mm.c
@@ -121,7 +121,7 @@ PmmFreeHashTable(xmlHashTablePtr table)
extern SV* PROXY_NODE_REGISTRY_MUTEX;
/* Utility method used by PmmDumpRegistry */
-void PmmRegistryDumpHashScanner(void * payload, void * data, xmlChar * name)
+void PmmRegistryDumpHashScanner(void * payload, void * data, const xmlChar * name)
{
LocalProxyNodePtr lp = (LocalProxyNodePtr) payload;
ProxyNodePtr node = (ProxyNodePtr) lp->proxy;
@@ -215,7 +215,7 @@ PmmRegisterProxyNode(ProxyNodePtr proxy)
/* PP: originally this was static inline void, but on AIX the compiler
did not chew it, so I'm removing the inline */
static void
-PmmRegistryHashDeallocator(void *payload, xmlChar *name)
+PmmRegistryHashDeallocator(void *payload, const xmlChar *name)
{
Safefree((LocalProxyNodePtr) payload);
}
@@ -279,7 +279,7 @@ PmmRegistryREFCNT_dec(ProxyNodePtr proxy)
* internal, used by PmmCloneProxyNodes
*/
void *
-PmmRegistryHashCopier(void *payload, xmlChar *name)
+PmmRegistryHashCopier(void *payload, const xmlChar *name)
{
ProxyNodePtr proxy = ((LocalProxyNodePtr) payload)->proxy;
LocalProxyNodePtr lp;
--
2.39.0

Some files were not shown because too many files have changed in this diff Show More