From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7249572182025568256 X-Received: by 2002:a05:6512:3714:b0:4f8:5886:1868 with SMTP id z20-20020a056512371400b004f858861868mr7319138lfr.24.1688020834448; Wed, 28 Jun 2023 23:40:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:601a:b0:3fb:a979:2417 with SMTP id az26-20020a05600c601a00b003fba9792417ls57774wmb.0.-pod-prod-06-eu; Wed, 28 Jun 2023 23:40:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4dscJscNnybpwPsKH/6+Pox9rIkpR2E0axOgs7N5GRHYn2W88U7cVcL2HtAbOqWtOr58mg X-Received: by 2002:a05:600c:2186:b0:3fb:a62d:1992 with SMTP id e6-20020a05600c218600b003fba62d1992mr4761649wme.0.1688020832746; Wed, 28 Jun 2023 23:40:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688020832; cv=none; d=google.com; s=arc-20160816; b=xpuqnjAMuKzmxO+R8cVMrK1x7bCb0rHXbwDF6QZimabZVZafJKs4MVVFd4d/kLm7fp MsMcdhGdvcZ7egCXeYfN25IfrQ4p8oFHm+QxqVFrCzz7Sf/XYaVFkhpDpa5uwQ+W5lSO 1Kjm3Pl2cNHQUbGX/OWS+RbT0EdtXajSNP5XjyjgjKBMMbZ/YsUCoIbEKP3BIZn7+07a SsWiX7uOF9VXWAHXMuLToGOP4KxB2wBtMfhKaVIhW3imjmES3kMB34QJ9Y8r8+D0pt3P zM4rksPfU/VXd7f/fjtnszmgCf/0I41am+WrwWBSSD2VCMGXmpd6piKhdwGs3gnxfnXh Kpbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id; bh=I7MmMtpr9ZS2fm6fL8ubjuCOkCkrdUpS0EGf0QaoK7M=; fh=CvtJwDmZxgCb3Mi2R3XR7hyHg4u5hw3sWGns8hFAqEk=; b=C9CsE6+IARrkCpDPqUPOtXXX/te/3BezUxn2en7QuOwKCmE37mArBNkIyyPjkWame6 W3syfMl510nGKfH0OmGJFJFCORgsHaCsgb/eNpa50LLz7ckjez6+f/i5HGVlGKAt8QWN +LJkQAPH/no43XQzsE5Ha/w2REXzljJnBGXMA+n2+gFxhJkd5MqlfxyfisRyOEGsqJI2 XnLgAJ6r74h5hpNOFnSndBJOoT4xRNKr96fm/bb4kMMQrXQC72tor/gLDFIAkOALk/uw 7IKr99reAApJRXuVP9ttITCItSu2sH2A/6sdU5R6/dr9MDrxJOkJnxzVgzDt/YFmfsC1 6vWA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id ay4-20020a05600c1e0400b003fb415dd573si454324wmb.2.2023.06.28.23.40.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Jun 2023 23:40:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 35T6eTIQ022951 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Jun 2023 08:40:31 +0200 Message-ID: <189f66ada089f0d450361cd6a745e436a9b06642.camel@ilbers.de> Subject: Re: [PATCH] meta-isar: Example of SBUILD_FLAVOR usage From: Uladzimir Bely To: Henning Schild Cc: isar-users@googlegroups.com Date: Thu, 29 Jun 2023 09:40:30 +0300 In-Reply-To: <20230628130046.10c2d848@md1za8fc.ad001.siemens.net> References: <20230628032233.19587-1-ubely@ilbers.de> <20230628130046.10c2d848@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: /lvD6X3x15Jn On Wed, 2023-06-28 at 13:00 +0200, Henning Schild wrote: > Am Wed, 28 Jun 2023 05:22:33 +0200 > schrieb Uladzimir Bely : >=20 > > Packages `hello-isar` and `libhello` both depend on `docbook-to- > > man`. > > Use this fact for demonstrating SBUILD_FLAVOR feature. > >=20 > > Signed-off-by: Uladzimir Bely > > --- > > For apply on top of "[PATCH] add support for derived sbuild > > chroots". > >=20 > > =C2=A0meta-isar/recipes-app/hello-isar/hello-isar.bb=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0 3 +++ > > =C2=A0meta-isar/recipes-app/libhello/libhello.bb=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 3 +++ > > =C2=A0.../sbuild-chroot/sbuild-chroot-host-db2m.bb=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 | 12 > > ++++++++++++ .../sbuild-chroot/sbuild-chroot-target-db2m.bb=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 | > > 12 ++++++++++++ 4 files changed, 30 insertions(+) > > =C2=A0create mode 100644 > > meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-host-db2m.bb > > create mode 100644 > > meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-target- > > db2m.bb > >=20 > > diff --git a/meta-isar/recipes-app/hello-isar/hello-isar.bb > > b/meta-isar/recipes-app/hello-isar/hello-isar.bb index > > 7d9f8322..51dac2b7 100644 --- > > a/meta-isar/recipes-app/hello-isar/hello-isar.bb +++ > > b/meta-isar/recipes-app/hello-isar/hello-isar.bb @@ -21,3 +21,6 @@ > > SRC_URI =3D " \ SRCREV =3D "a18c14cc11ce6b003f3469e89223cffb4016861d" > > =C2=A0 > > =C2=A0inherit dpkg > > + > > +# Example of using alternative sbuild chroot > > +SBUILD_FLAVOR=3D"db2m" > > diff --git a/meta-isar/recipes-app/libhello/libhello.bb > > b/meta-isar/recipes-app/libhello/libhello.bb index > > 8b10842f..71604bf5 > > 100644 --- a/meta-isar/recipes-app/libhello/libhello.bb > > +++ b/meta-isar/recipes-app/libhello/libhello.bb > > @@ -14,3 +14,6 @@ SRC_URI =3D > > "git://github.com/ilbers/libhello.git;protocol=3Dhttps;branch=3Dmaster; > > des > > SRCREV =3D "98f2e41e7d05ab8d19b0c5d160b104b725c8fd93"=20 > > =C2=A0inherit dpkg > > + > > +# Example of using alternative sbuild chroot > > +SBUILD_FLAVOR=3D"db2m" > > diff --git > > a/meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-host- > > db2m.bb > > b/meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-host- > > db2m.bb > > new file mode 100644 index 00000000..1795c5a2 --- /dev/null > > +++ > > b/meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-host- > > db2m.bb > > @@ -0,0 +1,12 @@ +# Root filesystem for packages building > > +# Example of SBUILD_FLAVOR usage with docbook-to-man preinstalled > > +# > > +# This software is a part of ISAR. > > +# Copyright (C) 2023 ilbers GmbH > > + > > +DESCRIPTION =3D "Isar sbuild/schroot filesystem for host > > (docbook-to-man)" + > > +require recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb > > + > > +SBUILD_FLAVOR =3D "db2m" > > +SBUILD_CHROOT_PREINSTALL_EXTRA ?=3D "docbook-to-man" > > diff --git > > a/meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-target- > > db2m.bb > > b/meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-target- > > db2m.bb > > new file mode 100644 index 00000000..e2e10433 --- /dev/null > > +++ > > b/meta-isar/recipes-devtools/sbuild-chroot/sbuild-chroot-target- > > db2m.bb > > @@ -0,0 +1,12 @@ +# Root filesystem for packages building > > +# Example of SBUILD_FLAVOR usage with docbook-to-man preinstalled > > +# > > +# This software is a part of ISAR. > > +# Copyright (C) 2023 ilbers GmbH > > + > > +DESCRIPTION =3D "Isar sbuild/schroot filesystem for target > > (docbook-to-man)" + > > +require recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb > > + > > +SBUILD_FLAVOR =3D "db2m" > > +SBUILD_CHROOT_PREINSTALL_EXTRA ?=3D "docbook-to-man" >=20 > I think we should really try to deduplicate here. >=20 > Maybe split FILE and use the last part as SBUILD_FLAVOR and the > second > to last to see about host vs target, then we have one file and one > symlink. >=20 > Henning >=20 >=20 I thought about placing these two lines under some `sbuild-chroot- db2m.inc` and add `require` for this file from both new recipes. I skipped this since it doesn't make the patch smaller, but from the point of correct hierarchy, it might be done. >=20