[meta-oe,2/2] libconfig-general-perl: move from meta-openstack

Message ID 20220415054504.647069-2-mingli.yu@windriver.com
State New
Headers show
Series [meta-networking,1/2] tgt: move from meta-openstack | expand

Commit Message

Yu, Mingli April 15, 2022, 5:45 a.m. UTC
From: Mingli Yu <mingli.yu@windriver.com>

tgt rdepends on libconfig-general-perl.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 .../perl/libconfig-general-perl_2.63.bb       | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb

Comments

Khem Raj April 15, 2022, 3:11 p.m. UTC | #1
On Thu, Apr 14, 2022 at 10:45 PM Yu, Mingli <mingli.yu@windriver.com> wrote:
>
> From: Mingli Yu <mingli.yu@windriver.com>
>
> tgt rdepends on libconfig-general-perl.
>
> Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
> ---
>  .../perl/libconfig-general-perl_2.63.bb       | 23 +++++++++++++++++++
>  1 file changed, 23 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb
>
> diff --git a/meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb b/meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb
> new file mode 100644
> index 000000000..51ce60ca8
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb
> @@ -0,0 +1,23 @@
> +DESCRIPTION = "Config file parser module"
> +HOMEPAGE = "http://search.cpan.org/dist/Config-General/"
> +LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
> +SECTION = "libs"
> +LIC_FILES_CHKSUM = "file://README;beginline=90;endline=90;md5=3ba4bbac1e79a08332688196f637d2b2"
> +
> +SRCNAME = "Config-General"
> +
> +SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TL/TLINDEN/${SRCNAME}-${PV}.tar.gz"
> +
> +SRC_URI[md5sum] = "e3ea2a6dc76931cf638b5227aceabf60"
> +SRC_URI[sha256sum] = "0a9bf977b8aabe76343e88095d2296c8a422410fd2a05a1901f2b20e2e1f6fad"
> +
> +S = "${WORKDIR}/${SRCNAME}-${PV}"
> +
> +EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
> +
> +inherit cpan
> +
> +do_compile() {
> +    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"

I think it will not work with musl since libc so in called libc.so

> +    cpan_do_compile
> +}
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#96663): https://lists.openembedded.org/g/openembedded-devel/message/96663
> Mute This Topic: https://lists.openembedded.org/mt/90481290/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

Patch

diff --git a/meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb b/meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb
new file mode 100644
index 000000000..51ce60ca8
--- /dev/null
+++ b/meta-oe/recipes-devtools/perl/libconfig-general-perl_2.63.bb
@@ -0,0 +1,23 @@ 
+DESCRIPTION = "Config file parser module"
+HOMEPAGE = "http://search.cpan.org/dist/Config-General/"
+LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
+SECTION = "libs"
+LIC_FILES_CHKSUM = "file://README;beginline=90;endline=90;md5=3ba4bbac1e79a08332688196f637d2b2"
+
+SRCNAME = "Config-General"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TL/TLINDEN/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "e3ea2a6dc76931cf638b5227aceabf60"
+SRC_URI[sha256sum] = "0a9bf977b8aabe76343e88095d2296c8a422410fd2a05a1901f2b20e2e1f6fad"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
+
+inherit cpan
+
+do_compile() {
+    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
+    cpan_do_compile
+}