From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH] meta-isar: Example of SBUILD_FLAVOR usage
Date: Wed, 28 Jun 2023 05:22:33 +0200 [thread overview]
Message-ID: <20230628032233.19587-1-ubely@ilbers.de> (raw)
Packages `hello-isar` and `libhello` both depend on `docbook-to-man`.
Use this fact for demonstrating SBUILD_FLAVOR feature.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
For apply on top of "[PATCH] add support for derived sbuild chroots".
meta-isar/recipes-app/hello-isar/hello-isar.bb | 3 +++
meta-isar/recipes-app/libhello/libhello.bb | 3 +++
.../sbuild-chroot/sbuild-chroot-host-db2m.bb | 12 ++++++++++++
.../sbuild-chroot/sbuild-chroot-target-db2m.bb | 12 ++++++++++++
4 files changed, 30 insertions(+)
create 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
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 = " \
SRCREV = "a18c14cc11ce6b003f3469e89223cffb4016861d"
inherit dpkg
+
+# Example of using alternative sbuild chroot
+SBUILD_FLAVOR="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 = "git://github.com/ilbers/libhello.git;protocol=https;branch=master;des
SRCREV = "98f2e41e7d05ab8d19b0c5d160b104b725c8fd93"
inherit dpkg
+
+# Example of using alternative sbuild chroot
+SBUILD_FLAVOR="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 = "Isar sbuild/schroot filesystem for host (docbook-to-man)"
+
+require recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
+
+SBUILD_FLAVOR = "db2m"
+SBUILD_CHROOT_PREINSTALL_EXTRA ?= "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 = "Isar sbuild/schroot filesystem for target (docbook-to-man)"
+
+require recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb
+
+SBUILD_FLAVOR = "db2m"
+SBUILD_CHROOT_PREINSTALL_EXTRA ?= "docbook-to-man"
--
2.20.1
next reply other threads:[~2023-06-28 3:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-28 3:22 Uladzimir Bely [this message]
2023-06-28 11:00 ` Henning Schild
2023-06-29 6:40 ` Uladzimir Bely
2023-06-29 9:01 ` Henning Schild
2023-06-30 11:56 ` Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230628032233.19587-1-ubely@ilbers.de \
--to=ubely@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox