From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Adriaan Schmidt <adriaan.schmidt@siemens.com>,
Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH] dpkg-base: set default for RPROVIDES
Date: Thu, 12 Jan 2023 10:41:18 +0100 [thread overview]
Message-ID: <20230112094118.2281568-1-adriaan.schmidt@siemens.com> (raw)
This is a follow-up to 40a53789d46763441715508b82154c976700075b
When RDEPENDing on something that is not the PN of a recipe, bitbake needs
a corresponding RPROVIDES.
While Yocto is very precise with definitions of DEPENDS vs. RDEPENDS (and thus
also the RPROVIDES are properly maintained), the Isar way is to specify build
dependencies with DEPENDS, and runtime dependencies with DEBIAN_DEPENDS.
This sets a sane default for RPROVIDES, and most users should be able to
use RDEPENDS without explicitly overriding it.
Acked-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
---
meta/classes/dpkg-base.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 260aa73e..5cda42c0 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -12,6 +12,7 @@ inherit repository
inherit deb-dl-dir
DEPENDS ?= ""
+RPROVIDES ?= "${PROVIDES}"
DEPENDS_append_riscv64 = "${@' crossbuild-essential-riscv64' if d.getVar('ISAR_CROSS_COMPILE', True) == '1' and d.getVar('PN') != 'crossbuild-essential-riscv64' else ''}"
DEB_BUILD_PROFILES ?= ""
--
2.30.2
next reply other threads:[~2023-01-12 9:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-12 9:41 Adriaan Schmidt [this message]
2023-01-24 7:38 ` 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=20230112094118.2281568-1-adriaan.schmidt@siemens.com \
--to=adriaan.schmidt@siemens.com \
--cc=felix.moessbauer@siemens.com \
--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