All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10
@ 2018-10-15 16:12 Tim Orling
  2018-10-15 16:12 ` [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest Tim Orling
  2018-10-15 18:08 ` [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10 Khem Raj
  0 siblings, 2 replies; 6+ messages in thread
From: Tim Orling @ 2018-10-15 16:12 UTC (permalink / raw)
  To: openembedded-devel

Net::DNS::SEC is installed as an extension to an existing Net::DNS
installation providing packages to support DNSSEC as specified in
RFC4033, RFC4034, RFC4035 and related documents.

It also provides support for SIG0 which is useful for dynamic updates.

Implements cryptographic signature generation and verification functions
using RSA, DSA, ECDSA, and Edwards curve algorithms.

The extended features are made available by replacing Net::DNS by
Net::DNS::SEC in the use declaration.

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
---
 .../libnet/libnet-dns-sec-perl_1.10.bb             | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb

diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb b/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb
new file mode 100644
index 0000000000..5c485ed68f
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb
@@ -0,0 +1,33 @@
+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_DIR_TARGET}${base_libdir} -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 \
+"
+
+BBCLASSEXTEND = "native"
-- 
2.14.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest
  2018-10-15 16:12 [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10 Tim Orling
@ 2018-10-15 16:12 ` Tim Orling
  2018-10-15 18:14   ` Khem Raj
  2018-10-15 18:08 ` [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10 Khem Raj
  1 sibling, 1 reply; 6+ messages in thread
From: Tim Orling @ 2018-10-15 16:12 UTC (permalink / raw)
  To: openembedded-devel

* Add UPSTREAM_CHECK_REGEX to ignore DEV releases
* Add RDEPENDS that were missing
* Enable ptest and add RDEPENDS for tests
* Add RRECOMMENDS for libnet-dns-sec-perl

* Upstream release notes:
"""
**** 1.18 Sep 21, 2018

        Documentation revised to remove ambigous use of "answer" which
        has been used to refer to both the answer section of a packet
        and the entire reply packet received from a nameserver.

Fix rt.cpan.org #127018

        Net::DNS::ZoneFile->parse() fails if include directory specified.

Fix rt.cpan.org #127012

        DNS resolution broken when options ndots used in /etc/resolv.conf
"""

Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
---
 .../recipes-perl/libnet/libnet-dns-perl_1.17.bb    | 27 ----------
 .../recipes-perl/libnet/libnet-dns-perl_1.18.bb    | 58 ++++++++++++++++++++++
 2 files changed, 58 insertions(+), 27 deletions(-)
 delete mode 100644 meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
 create mode 100644 meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb

diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
deleted file mode 100644
index 79583551f9..0000000000
--- a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
+++ /dev/null
@@ -1,27 +0,0 @@
-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=27db37b42cd1a5173a53922d67072bcb"
-
-DEPENDS += "perl"
-
-SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"
-
-SRC_URI[md5sum] = "28fcbcbf4483a9f23f75be4b9e3e45c8"
-SRC_URI[sha256sum] = "9a79fd8fea1a708726c18d193ae4437479206ccb20ffa7f0971371e172e2c2e0"
-
-S = "${WORKDIR}/Net-DNS-${PV}"
-
-EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
-
-inherit cpan
-
-RDEPENDS_${PN} = "perl-module-integer"
-
-do_compile() {
-    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
-    cpan_do_compile
-}
-BBCLASSEXTEND = "native"
diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
new file mode 100644
index 0000000000..0b22fdf7f6
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
@@ -0,0 +1,58 @@
+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=27db37b42cd1a5173a53922d67072bcb"
+
+DEPENDS += "perl"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "67af7e5c1c339f60c45c1054374bd8ee"
+SRC_URI[sha256sum] = "52ce1494fc9707fd5a60ed71db5cde727157b7f2363787d730d4d1bd9800a9d3"
+
+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 \
+"
+
+do_compile() {
+    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
+    cpan_do_compile
+}
+
+BBCLASSEXTEND = "native"
-- 
2.14.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10
  2018-10-15 16:12 [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10 Tim Orling
  2018-10-15 16:12 ` [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest Tim Orling
@ 2018-10-15 18:08 ` Khem Raj
  1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2018-10-15 18:08 UTC (permalink / raw)
  To: Tim Orling; +Cc: openembeded-devel

On Mon, Oct 15, 2018 at 9:12 AM Tim Orling
<timothy.t.orling@linux.intel.com> wrote:
>
> Net::DNS::SEC is installed as an extension to an existing Net::DNS
> installation providing packages to support DNSSEC as specified in
> RFC4033, RFC4034, RFC4035 and related documents.
>
> It also provides support for SIG0 which is useful for dynamic updates.
>
> Implements cryptographic signature generation and verification functions
> using RSA, DSA, ECDSA, and Edwards curve algorithms.
>
> The extended features are made available by replacing Net::DNS by
> Net::DNS::SEC in the use declaration.
>
> Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
> ---
>  .../libnet/libnet-dns-sec-perl_1.10.bb             | 33 ++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>  create mode 100644 meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb
>
> diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb b/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb
> new file mode 100644
> index 0000000000..5c485ed68f
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb
> @@ -0,0 +1,33 @@
> +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_DIR_TARGET}${base_libdir} -lcrypto'"

we could use STAGING_BASELIBDIR

> +
> +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 \
> +"
> +
> +BBCLASSEXTEND = "native"
> --
> 2.14.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest
  2018-10-15 16:12 ` [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest Tim Orling
@ 2018-10-15 18:14   ` Khem Raj
  2018-10-17  4:42     ` Tim Orling
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2018-10-15 18:14 UTC (permalink / raw)
  To: Tim Orling; +Cc: openembeded-devel

On Mon, Oct 15, 2018 at 9:13 AM Tim Orling
<timothy.t.orling@linux.intel.com> wrote:
>
> * Add UPSTREAM_CHECK_REGEX to ignore DEV releases
> * Add RDEPENDS that were missing
> * Enable ptest and add RDEPENDS for tests
> * Add RRECOMMENDS for libnet-dns-sec-perl
>
> * Upstream release notes:
> """
> **** 1.18 Sep 21, 2018
>
>         Documentation revised to remove ambigous use of "answer" which
>         has been used to refer to both the answer section of a packet
>         and the entire reply packet received from a nameserver.
>
> Fix rt.cpan.org #127018
>
>         Net::DNS::ZoneFile->parse() fails if include directory specified.
>
> Fix rt.cpan.org #127012
>
>         DNS resolution broken when options ndots used in /etc/resolv.conf
> """
>
> Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
> ---
>  .../recipes-perl/libnet/libnet-dns-perl_1.17.bb    | 27 ----------
>  .../recipes-perl/libnet/libnet-dns-perl_1.18.bb    | 58 ++++++++++++++++++++++
>  2 files changed, 58 insertions(+), 27 deletions(-)
>  delete mode 100644 meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
>  create mode 100644 meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
>
> diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
> deleted file mode 100644
> index 79583551f9..0000000000
> --- a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -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=27db37b42cd1a5173a53922d67072bcb"
> -
> -DEPENDS += "perl"
> -
> -SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"
> -
> -SRC_URI[md5sum] = "28fcbcbf4483a9f23f75be4b9e3e45c8"
> -SRC_URI[sha256sum] = "9a79fd8fea1a708726c18d193ae4437479206ccb20ffa7f0971371e172e2c2e0"
> -
> -S = "${WORKDIR}/Net-DNS-${PV}"
> -
> -EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
> -
> -inherit cpan
> -
> -RDEPENDS_${PN} = "perl-module-integer"
> -
> -do_compile() {
> -    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
> -    cpan_do_compile
> -}
> -BBCLASSEXTEND = "native"
> diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
> new file mode 100644
> index 0000000000..0b22fdf7f6
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
> @@ -0,0 +1,58 @@
> +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=27db37b42cd1a5173a53922d67072bcb"
> +
> +DEPENDS += "perl"
> +
> +SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"
> +
> +SRC_URI[md5sum] = "67af7e5c1c339f60c45c1054374bd8ee"
> +SRC_URI[sha256sum] = "52ce1494fc9707fd5a60ed71db5cde727157b7f2363787d730d4d1bd9800a9d3"
> +
> +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 \
> +"
> +
> +do_compile() {
> +    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"

this could be better controlled with TCLIBC bitbake variable. Secondly does it
have to know exact version of libc ? the regexp seems to be doing
that. Can we just use libc.so.6 for glibc and libc.so for musl.

> +    cpan_do_compile
> +}
> +
> +BBCLASSEXTEND = "native"
> --
> 2.14.4
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest
  2018-10-15 18:14   ` Khem Raj
@ 2018-10-17  4:42     ` Tim Orling
  2018-10-17  4:53       ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Tim Orling @ 2018-10-17  4:42 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-devel

On Mon, Oct 15, 2018 at 11:14 AM Khem Raj <raj.khem@gmail.com> wrote:

> On Mon, Oct 15, 2018 at 9:13 AM Tim Orling
> <timothy.t.orling@linux.intel.com> wrote:
> >
> > * Add UPSTREAM_CHECK_REGEX to ignore DEV releases
> > * Add RDEPENDS that were missing
> > * Enable ptest and add RDEPENDS for tests
> > * Add RRECOMMENDS for libnet-dns-sec-perl
> >
> > * Upstream release notes:
> > """
> > **** 1.18 Sep 21, 2018
> >
> >         Documentation revised to remove ambigous use of "answer" which
> >         has been used to refer to both the answer section of a packet
> >         and the entire reply packet received from a nameserver.
> >
> > Fix rt.cpan.org #127018
> >
> >         Net::DNS::ZoneFile->parse() fails if include directory specified.
> >
> > Fix rt.cpan.org #127012
> >
> >         DNS resolution broken when options ndots used in /etc/resolv.conf
> > """
> >
> > Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
> > ---
> >  .../recipes-perl/libnet/libnet-dns-perl_1.17.bb    | 27 ----------
> >  .../recipes-perl/libnet/libnet-dns-perl_1.18.bb    | 58
> ++++++++++++++++++++++
> >  2 files changed, 58 insertions(+), 27 deletions(-)
> >  delete mode 100644 meta-perl/recipes-perl/libnet/
> libnet-dns-perl_1.17.bb
> >  create mode 100644 meta-perl/recipes-perl/libnet/
> libnet-dns-perl_1.18.bb
> >
> > diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
> b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
> > deleted file mode 100644
> > index 79583551f9..0000000000
> > --- a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
> > +++ /dev/null
> > @@ -1,27 +0,0 @@
> > -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=27db37b42cd1a5173a53922d67072bcb"
> > -
> > -DEPENDS += "perl"
> > -
> > -SRC_URI = "
> http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz
> "
> > -
> > -SRC_URI[md5sum] = "28fcbcbf4483a9f23f75be4b9e3e45c8"
> > -SRC_URI[sha256sum] =
> "9a79fd8fea1a708726c18d193ae4437479206ccb20ffa7f0971371e172e2c2e0"
> > -
> > -S = "${WORKDIR}/Net-DNS-${PV}"
> > -
> > -EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR}
> EXPATINCPATH=${STAGING_INCDIR}"
> > -
> > -inherit cpan
> > -
> > -RDEPENDS_${PN} = "perl-module-integer"
> > -
> > -do_compile() {
> > -    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name
> 'libc-*.so')"
> > -    cpan_do_compile
> > -}
> > -BBCLASSEXTEND = "native"
> > diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
> b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
> > new file mode 100644
> > index 0000000000..0b22fdf7f6
> > --- /dev/null
> > +++ b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
> > @@ -0,0 +1,58 @@
> > +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=27db37b42cd1a5173a53922d67072bcb"
> > +
> > +DEPENDS += "perl"
> > +
> > +SRC_URI = "
> http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz
> "
> > +
> > +SRC_URI[md5sum] = "67af7e5c1c339f60c45c1054374bd8ee"
> > +SRC_URI[sha256sum] =
> "52ce1494fc9707fd5a60ed71db5cde727157b7f2363787d730d4d1bd9800a9d3"
> > +
> > +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 \
> > +"
> > +
> > +do_compile() {
> > +    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name
> 'libc-*.so')"
>
> this could be better controlled with TCLIBC bitbake variable. Secondly
> does it
> have to know exact version of libc ? the regexp seems to be doing
> that. Can we just use libc.so.6 for glibc and libc.so for musl.
>
>
Can we just do $(find $STAGING_BASELIBDIR}/ -name 'libc.so') ???
I inherited this export, but I would prefer to make it work with glibc and
musl, of course.


> > +    cpan_do_compile
> > +}
> > +
> > +BBCLASSEXTEND = "native"
> > --
> > 2.14.4
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest
  2018-10-17  4:42     ` Tim Orling
@ 2018-10-17  4:53       ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2018-10-17  4:53 UTC (permalink / raw)
  To: Tim Orling; +Cc: openembedded-devel



On 10/16/18 9:42 PM, Tim Orling wrote:
> 
> 
> On Mon, Oct 15, 2018 at 11:14 AM Khem Raj <raj.khem@gmail.com 
> <mailto:raj.khem@gmail.com>> wrote:
> 
>     On Mon, Oct 15, 2018 at 9:13 AM Tim Orling
>     <timothy.t.orling@linux.intel.com
>     <mailto:timothy.t.orling@linux.intel.com>> wrote:
>      >
>      > * Add UPSTREAM_CHECK_REGEX to ignore DEV releases
>      > * Add RDEPENDS that were missing
>      > * Enable ptest and add RDEPENDS for tests
>      > * Add RRECOMMENDS for libnet-dns-sec-perl
>      >
>      > * Upstream release notes:
>      > """
>      > **** 1.18 Sep 21, 2018
>      >
>      >         Documentation revised to remove ambigous use of "answer"
>     which
>      >         has been used to refer to both the answer section of a packet
>      >         and the entire reply packet received from a nameserver.
>      >
>      > Fix rt.cpan.org <http://rt.cpan.org> #127018
>      >
>      >         Net::DNS::ZoneFile->parse() fails if include directory
>     specified.
>      >
>      > Fix rt.cpan.org <http://rt.cpan.org> #127012
>      >
>      >         DNS resolution broken when options ndots used in
>     /etc/resolv.conf
>      > """
>      >
>      > Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com
>     <mailto:timothy.t.orling@linux.intel.com>>
>      > ---
>      >  .../recipes-perl/libnet/libnet-dns-perl_1.17.bb
>     <http://libnet-dns-perl_1.17.bb>    | 27 ----------
>      >  .../recipes-perl/libnet/libnet-dns-perl_1.18.bb
>     <http://libnet-dns-perl_1.18.bb>    | 58 ++++++++++++++++++++++
>      >  2 files changed, 58 insertions(+), 27 deletions(-)
>      >  delete mode 100644
>     meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
>     <http://libnet-dns-perl_1.17.bb>
>      >  create mode 100644
>     meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
>     <http://libnet-dns-perl_1.18.bb>
>      >
>      > diff --git
>     a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
>     <http://libnet-dns-perl_1.17.bb>
>     b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
>     <http://libnet-dns-perl_1.17.bb>
>      > deleted file mode 100644
>      > index 79583551f9..0000000000
>      > --- a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.17.bb
>     <http://libnet-dns-perl_1.17.bb>
>      > +++ /dev/null
>      > @@ -1,27 +0,0 @@
>      > -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=27db37b42cd1a5173a53922d67072bcb"
>      > -
>      > -DEPENDS += "perl"
>      > -
>      > -SRC_URI =
>     "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz
>     <http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-$%7BPV%7D.tar.gz>"
>      > -
>      > -SRC_URI[md5sum] = "28fcbcbf4483a9f23f75be4b9e3e45c8"
>      > -SRC_URI[sha256sum] =
>     "9a79fd8fea1a708726c18d193ae4437479206ccb20ffa7f0971371e172e2c2e0"
>      > -
>      > -S = "${WORKDIR}/Net-DNS-${PV}"
>      > -
>      > -EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR}
>     EXPATINCPATH=${STAGING_INCDIR}"
>      > -
>      > -inherit cpan
>      > -
>      > -RDEPENDS_${PN} = "perl-module-integer"
>      > -
>      > -do_compile() {
>      > -    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/
>     -name 'libc-*.so')"
>      > -    cpan_do_compile
>      > -}
>      > -BBCLASSEXTEND = "native"
>      > diff --git
>     a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
>     <http://libnet-dns-perl_1.18.bb>
>     b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
>     <http://libnet-dns-perl_1.18.bb>
>      > new file mode 100644
>      > index 0000000000..0b22fdf7f6
>      > --- /dev/null
>      > +++ b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.18.bb
>     <http://libnet-dns-perl_1.18.bb>
>      > @@ -0,0 +1,58 @@
>      > +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=27db37b42cd1a5173a53922d67072bcb"
>      > +
>      > +DEPENDS += "perl"
>      > +
>      > +SRC_URI =
>     "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz
>     <http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-$%7BPV%7D.tar.gz>"
>      > +
>      > +SRC_URI[md5sum] = "67af7e5c1c339f60c45c1054374bd8ee"
>      > +SRC_URI[sha256sum] =
>     "52ce1494fc9707fd5a60ed71db5cde727157b7f2363787d730d4d1bd9800a9d3"
>      > +
>      > +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 \
>      > +"
>      > +
>      > +do_compile() {
>      > +    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/
>     -name 'libc-*.so')"
> 
>     this could be better controlled with TCLIBC bitbake variable.
>     Secondly does it
>     have to know exact version of libc ? the regexp seems to be doing
>     that. Can we just use libc.so.6 for glibc and libc.so for musl.
> 
> 
> Can we just do $(find $STAGING_BASELIBDIR}/ -name 'libc.so') ???
> I inherited this export, but I would prefer to make it work with glibc 
> and musl, of course.

defining it statically make metadata better for reproducible hence the 
suggestion. output of find here wont be caught in task checksums.

> 
>      > +    cpan_do_compile
>      > +}
>      > +
>      > +BBCLASSEXTEND = "native"
>      > --
>      > 2.14.4
>      >
>      > --
>      > _______________________________________________
>      > Openembedded-devel mailing list
>      > Openembedded-devel@lists.openembedded.org
>     <mailto:Openembedded-devel@lists.openembedded.org>
>      > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>     -- 
>     _______________________________________________
>     Openembedded-devel mailing list
>     Openembedded-devel@lists.openembedded.org
>     <mailto:Openembedded-devel@lists.openembedded.org>
>     http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-10-17  4:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-15 16:12 [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10 Tim Orling
2018-10-15 16:12 ` [meta-perl][PATCH 2/2] libnet-dns-perl: upgrade 1.17 -> 1.18; enable ptest Tim Orling
2018-10-15 18:14   ` Khem Raj
2018-10-17  4:42     ` Tim Orling
2018-10-17  4:53       ` Khem Raj
2018-10-15 18:08 ` [meta-perl][PATCH 1/2] libnet-dns-sec-perl: add recipe for 1.10 Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.