From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41]) by mx.groups.io with SMTP id smtpd.web11.10168.1623529409877896067 for ; Sat, 12 Jun 2021 13:23:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vc4uTWmi; spf=pass (domain: gmail.com, ip: 209.85.222.41, mailfrom: alex.kanavin@gmail.com) Received: by mail-ua1-f41.google.com with SMTP id g34so3912406uah.8 for ; Sat, 12 Jun 2021 13:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uzrt+0lilgp0wxKPaKDdK/0zxYDWusoPL6hq/KJenaU=; b=vc4uTWmi/EYp+3y+v2HO+rP1/v6RTcFWdXCIkgcDI4xYV6A2xKJPX3vWeWC68z69QP M84kbEanCYBf0XgbjHaqXwSzvBYokB7uJEBLWf0ZWwuQOYMIedCTzi+0905bOUnSg9Kd LBy4O5fDsuhUPOt0rLpNUeB+K1WJ6OkoPiwPnAxI8foMA5vvvCPgS25Td6ONix3KHPop 0GnJvrPFVz7/Wff5Mxuzd5tKaxSlOf56po5osVqAunGjNHLNxtMgXQEWSJMOOfVs4Aqa g/JrQT78FlykxU+8mayiBPfh+QKSjLnt0/4D1ExVAAXDSKZwmz0DokpMwVSvcOZjkBlX wDvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uzrt+0lilgp0wxKPaKDdK/0zxYDWusoPL6hq/KJenaU=; b=Wu++T4+N1QAcgdBAgLpTDfJ+gY2IeIeaGDkwHjwqAF1awWbbG8gcXb9eTWvLHf1b5E 50cPFJKUjBHbYlzz6UuOimrJNoZJ7UjaxY8o3h8HZo7Nj0fYN8XIglWVv7TDLYAQgo+M KRsjylIE5h40m7Mq6oPU0L7XN7lGmMH5Q/MB3H1Cl9veSoFbxz4gISPQTv/LKPLxWROx 5pUJ95BGCGNYNq0LCB8aUwE0g24pbblOhpVCysKS82sQ0LX+VRufKDR3MKqbptVabHrg l3c3SRtMIh1lOsHBRCuHTGDxcgFH738C7O6USF4t9C95TAAWmOMz14rAXqseJLiKFoTn UihA== X-Gm-Message-State: AOAM5335Ep6k8QondVcz540ibyjgz9aq1NM+V1BokTE2Uu6r1eLzPgEh FO+tLmZ/n07Seq9aEAdRlNL+IrnzjOI70kyjUR8= X-Google-Smtp-Source: ABdhPJxKj59e6M7r6TAkGToC/yxgDGU0OklGYmEKo/r4nTYUpgXWDSmWcF3eH4kFv2dCLygCcno41SZ1nOa6kN4fHk4= X-Received: by 2002:ab0:2381:: with SMTP id b1mr8032980uan.93.1623529408968; Sat, 12 Jun 2021 13:23:28 -0700 (PDT) MIME-Version: 1.0 References: <20210612194315.676681-1-raj.khem@gmail.com> In-Reply-To: <20210612194315.676681-1-raj.khem@gmail.com> From: "Alexander Kanavin" Date: Sat, 12 Jun 2021 22:23:17 +0200 Message-ID: Subject: Re: [OE-core] [PATCH 1/2] gcompat: Add recipe To: Khem Raj Cc: OE-core , Andrea Adami Content-Type: multipart/alternative; boundary="000000000000b43c6705c4976599" --000000000000b43c6705c4976599 Content-Type: text/plain; charset="UTF-8" Please ensure that PV is set so that upstream version check works (I'm not sure if it does, looking at it): devtool check-upgrade-status gcompat Alex On Sat, 12 Jun 2021 at 21:43, Khem Raj wrote: > This is a compat library which helps running pre-compiled binaries which > were > compiled for glibc but needs to run on musl systems, this is quite > common case where pre-existing binaries are supplied and can not be > recompiled immediately > > Signed-off-by: Khem Raj > Cc: Andrea Adami > --- > meta/conf/distro/include/maintainers.inc | 1 + > meta/recipes-core/musl/gcompat_git.bb | 42 ++++++++++++++++++++++++ > 2 files changed, 43 insertions(+) > create mode 100644 meta/recipes-core/musl/gcompat_git.bb > > diff --git a/meta/conf/distro/include/maintainers.inc > b/meta/conf/distro/include/maintainers.inc > index 71943ffe26..e59f01d66a 100644 > --- a/meta/conf/distro/include/maintainers.inc > +++ b/meta/conf/distro/include/maintainers.inc > @@ -229,6 +229,7 @@ RECIPE_MAINTAINER_pn-gobject-introspection = > "Alexander Kanavin RECIPE_MAINTAINER_pn-gperf = "Alexander Kanavin " > RECIPE_MAINTAINER_pn-gpgme = "Hongxu Jia " > RECIPE_MAINTAINER_pn-gptfdisk = "Alexander Kanavin < > alex.kanavin@gmail.com>" > +RECIPE_MAINTAINER_pn-gcompat = "Khem Raj " > RECIPE_MAINTAINER_pn-grep = "Denys Dmytriyenko " > RECIPE_MAINTAINER_pn-groff = "Hongxu Jia " > RECIPE_MAINTAINER_pn-grub = "Anuj Mittal " > diff --git a/meta/recipes-core/musl/gcompat_git.bb > b/meta/recipes-core/musl/gcompat_git.bb > new file mode 100644 > index 0000000000..6792c0be70 > --- /dev/null > +++ b/meta/recipes-core/musl/gcompat_git.bb > @@ -0,0 +1,42 @@ > +# Copyright (C) 2021 Khem Raj > +# Released under the MIT license (see COPYING.MIT for the terms) > + > +SUMMARY = "A library which provides glibc-compatible APIs for use on musl > libc systems" > +HOMEPAGE = "https://git.adelielinux.org/adelie/gcompat" > + > +LICENSE = "NCSA" > +LIC_FILES_CHKSUM = "file://LICENSE;md5=eb33ef4af05a9c7602843afb7adfe792" > + > +SRC_URI = "git:// > git.adelielinux.org/adelie/gcompat.git;protocol=https;branch=current" > + > +PV = "1.0.0+1.1+git${SRCPV}" > +SRCREV = "af5a49e489fdc04b9cf02547650d7aeaccd43793" > + > +S = "${WORKDIR}/git" > + > +inherit pkgconfig linuxloader > + > +DEPENDS += "musl-obstack" > + > +GLIBC_LDSO = "${@get_glibc_loader(d)}" > +MUSL_LDSO = "${@get_musl_loader(d)}" > + > +EXTRA_OEMAKE = "LINKER_PATH=${MUSL_LDSO} LOADER_NAME=`basename > ${@get_glibc_loader(d)}`" > + > +do_configure () { > + : > +} > + > +do_compile () { > + oe_runmake > +} > + > +do_install () { > + oe_runmake install 'DESTDIR=${D}' > +} > +# > +# We will skip parsing for non-musl systems > +# > +COMPATIBLE_HOST = ".*-musl.*" > + > +UPSTREAM_CHECK_COMMITS = "1" > -- > 2.32.0 > > > > > --000000000000b43c6705c4976599 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Please ensure that PV is set so that upstream version= check works (I'm not sure if it does, looking at it):

devtool check-upgrade-status gcompat


=
Alex

On Sat, 12 Jun 2021 at 21:43, Khem Raj <raj.khem@gmail.com> wrote:
=
This is a compat library = which helps running pre-compiled binaries which were
compiled for glibc but needs to run on musl systems, this is quite
common case where pre-existing binaries are supplied and can not be
recompiled immediately

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
---
=C2=A0meta/conf/distro/include/maintainers.inc |=C2=A0 1 +
=C2=A0meta/recipes-core/musl/gcompat_git.bb=C2=A0 =C2=A0 | 42 ++++++++++++= ++++++++++++
=C2=A02 files changed, 43 insertions(+)
=C2=A0create mode 100644 meta/recipes-core/musl/gcompat_git.bb

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/i= nclude/maintainers.inc
index 71943ffe26..e59f01d66a 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -229,6 +229,7 @@ RECIPE_MAINTAINER_pn-gobject-introspection =3D "A= lexander Kanavin <alex.kanavin@gm
=C2=A0RECIPE_MAINTAINER_pn-gperf =3D "Alexander Kanavin <alex.kanavin@gmail.co= m>"
=C2=A0RECIPE_MAINTAINER_pn-gpgme =3D "Hongxu Jia <hongxu.jia@windriver.com&= gt;"
=C2=A0RECIPE_MAINTAINER_pn-gptfdisk =3D "Alexander Kanavin <alex.kanavin@gmail.co= m>"
+RECIPE_MAINTAINER_pn-gcompat =3D "Khem Raj <raj.khem@gmail.com>"
=C2=A0RECIPE_MAINTAINER_pn-grep =3D "Denys Dmytriyenko <denis@denix.org>" =C2=A0RECIPE_MAINTAINER_pn-groff =3D "Hongxu Jia <hongxu.jia@windriver.com&= gt;"
=C2=A0RECIPE_MAINTAINER_pn-grub =3D "Anuj Mittal <anuj.mittal@intel.com>&qu= ot;
diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/m= usl/= gcompat_git.bb
new file mode 100644
index 0000000000..6792c0be70
--- /dev/null
+++ b/meta/recipes-core/musl/gcompat_git.bb
@@ -0,0 +1,42 @@
+# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY =3D "A library which provides glibc-compatible APIs for use = on musl libc systems"
+HOMEPAGE =3D "https://git.adelielinux.org/adelie/gc= ompat"
+
+LICENSE =3D "NCSA"
+LIC_FILES_CHKSUM =3D "file://LICENSE;md5=3Deb33ef4af05a9c7602843afb7= adfe792"
+
+SRC_URI =3D "git://git.adelielinux.org/adelie/gcompat.git;protocol=3Dhttps;branch=3Dcurre= nt"
+
+PV =3D "1.0.0+1.1+git${SRCPV}"
+SRCREV =3D "af5a49e489fdc04b9cf02547650d7aeaccd43793"
+
+S =3D "${WORKDIR}/git"
+
+inherit pkgconfig linuxloader
+
+DEPENDS +=3D "musl-obstack"
+
+GLIBC_LDSO =3D "${@get_glibc_loader(d)}"
+MUSL_LDSO =3D "${@get_musl_loader(d)}"
+
+EXTRA_OEMAKE =3D "LINKER_PATH=3D${MUSL_LDSO} LOADER_NAME=3D`basename= ${@get_glibc_loader(d)}`"
+
+do_configure () {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0:
+}
+
+do_compile () {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0oe_runmake
+}
+
+do_install () {
+=C2=A0 =C2=A0 =C2=A0 =C2=A0oe_runmake install 'DESTDIR=3D${D}' +}
+#
+# We will skip parsing for non-musl systems
+#
+COMPATIBLE_HOST =3D ".*-musl.*"
+
+UPSTREAM_CHECK_COMMITS =3D "1"
--
2.32.0




--000000000000b43c6705c4976599--