public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] dpkg-base: set default for RPROVIDES
@ 2023-01-12  9:41 Adriaan Schmidt
  2023-01-24  7:38 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Adriaan Schmidt @ 2023-01-12  9:41 UTC (permalink / raw)
  To: isar-users; +Cc: Adriaan Schmidt, Felix Moessbauer

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] dpkg-base: set default for RPROVIDES
  2023-01-12  9:41 [PATCH] dpkg-base: set default for RPROVIDES Adriaan Schmidt
@ 2023-01-24  7:38 ` Uladzimir Bely
  0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2023-01-24  7:38 UTC (permalink / raw)
  To: isar-users

In mail from четверг, 12 января 2023 г. 12:41:18 +03 user Adriaan Schmidt 
wrote:
> 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(+)
>

Applied to next, thanks.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-24  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12  9:41 [PATCH] dpkg-base: set default for RPROVIDES Adriaan Schmidt
2023-01-24  7:38 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox