cip-dev.lists.cip-project.org archive mirror
 help / color / mirror / Atom feed
* [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the DEB_BUILD_PROFILES
@ 2022-03-25  8:34 Srinuvasan A
  2022-03-25 11:39 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: Srinuvasan A @ 2022-03-25  8:34 UTC (permalink / raw)
  To: cip-dev; +Cc: jan.kiszka, Srinuvasan A

From: Srinuvasan A <srinuvasan_a@mentor.com>

When we build this recipes in downstream layer the DEB_BUILD_PROFILES not
able to find by rule file hence it is not set the required build
profiles.

Here we disable the tests `PYBUILD_DISABLE=test`, but due to this
unavailability of DEB_BUILD_PROFILES in rule file it is building along
with the test hence it's getting failed like "Not able to import module
pytest"

Exported this one to access from rule file.

Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com>
---
 recipes-python/shtab/python3-shtab_1.4.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-python/shtab/python3-shtab_1.4.2.bb b/recipes-python/shtab/python3-shtab_1.4.2.bb
index ce83d6b..554afd3 100644
--- a/recipes-python/shtab/python3-shtab_1.4.2.bb
+++ b/recipes-python/shtab/python3-shtab_1.4.2.bb
@@ -27,7 +27,7 @@ DEBIAN_BUILD_DEPENDS = " \
     python3-setuptools-scm:native, \
     "
 
-DEB_BUILD_PROFILES = "nocheck"
+export DEB_BUILD_PROFILES = "nocheck"
 
 do_prepare_build[cleandirs] += "${S}/debian"
 do_prepare_build() {
-- 
2.25.1



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

* Re: [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the DEB_BUILD_PROFILES
  2022-03-25  8:34 [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the DEB_BUILD_PROFILES Srinuvasan A
@ 2022-03-25 11:39 ` Jan Kiszka
  2022-03-25 11:53   ` Srinuvasan Arjunan
  2022-03-25 12:22   ` Moessbauer, Felix
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2022-03-25 11:39 UTC (permalink / raw)
  To: Srinuvasan A, cip-dev, Moessbauer, Felix (T CED SES-DE)

On 25.03.22 09:34, Srinuvasan A wrote:
> From: Srinuvasan A <srinuvasan_a@mentor.com>
> 
> When we build this recipes in downstream layer the DEB_BUILD_PROFILES not
> able to find by rule file hence it is not set the required build
> profiles.
> 
> Here we disable the tests `PYBUILD_DISABLE=test`, but due to this
> unavailability of DEB_BUILD_PROFILES in rule file it is building along
> with the test hence it's getting failed like "Not able to import module
> pytest"
> 
> Exported this one to access from rule file.
> 
> Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com>
> ---
>  recipes-python/shtab/python3-shtab_1.4.2.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/recipes-python/shtab/python3-shtab_1.4.2.bb b/recipes-python/shtab/python3-shtab_1.4.2.bb
> index ce83d6b..554afd3 100644
> --- a/recipes-python/shtab/python3-shtab_1.4.2.bb
> +++ b/recipes-python/shtab/python3-shtab_1.4.2.bb
> @@ -27,7 +27,7 @@ DEBIAN_BUILD_DEPENDS = " \
>      python3-setuptools-scm:native, \
>      "
>  
> -DEB_BUILD_PROFILES = "nocheck"
> +export DEB_BUILD_PROFILES = "nocheck"
>  
>  do_prepare_build[cleandirs] += "${S}/debian"
>  do_prepare_build() {

I lost overview: Do we need to export now (but Isar does not)? Will we
have to with upcoming sbuild? If we only had to with past Isar, this
would remain a downstream topic.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux


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

* Re: [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the DEB_BUILD_PROFILES
  2022-03-25 11:39 ` Jan Kiszka
@ 2022-03-25 11:53   ` Srinuvasan Arjunan
  2022-03-25 12:22   ` Moessbauer, Felix
  1 sibling, 0 replies; 4+ messages in thread
From: Srinuvasan Arjunan @ 2022-03-25 11:53 UTC (permalink / raw)
  To: cip-dev; +Cc: Srinuvasan A, Moessbauer, Felix (T CED SES-DE)

[-- Attachment #1: Type: text/plain, Size: 2156 bytes --]

On Fri, Mar 25, 2022 at 5:09 PM Jan Kiszka <jan.kiszka@siemens.com> wrote:

> On 25.03.22 09:34, Srinuvasan A wrote:
> > From: Srinuvasan A <srinuvasan_a@mentor.com>
> >
> > When we build this recipes in downstream layer the DEB_BUILD_PROFILES not
> > able to find by rule file hence it is not set the required build
> > profiles.
> >
> > Here we disable the tests `PYBUILD_DISABLE=test`, but due to this
> > unavailability of DEB_BUILD_PROFILES in rule file it is building along
> > with the test hence it's getting failed like "Not able to import module
> > pytest"
> >
> > Exported this one to access from rule file.
> >
> > Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com>
> > ---
> >  recipes-python/shtab/python3-shtab_1.4.2.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/recipes-python/shtab/python3-shtab_1.4.2.bb
> b/recipes-python/shtab/python3-shtab_1.4.2.bb
> > index ce83d6b..554afd3 100644
> > --- a/recipes-python/shtab/python3-shtab_1.4.2.bb
> > +++ b/recipes-python/shtab/python3-shtab_1.4.2.bb
> > @@ -27,7 +27,7 @@ DEBIAN_BUILD_DEPENDS = " \
> >      python3-setuptools-scm:native, \
> >      "
> >
> > -DEB_BUILD_PROFILES = "nocheck"
> > +export DEB_BUILD_PROFILES = "nocheck"
> >
> >  do_prepare_build[cleandirs] += "${S}/debian"
> >  do_prepare_build() {
>
> I lost overview: Do we need to export now (but Isar does not)? Will we
> have to with upcoming sbuild? If we only had to with past Isar, this
> would remain a downstream topic.


  Thanks jan for the confirmation, yes still we were using old ISAR in our
downstream layer, let me create a patch in the downstream layer.

>
> Jan
>
> --
> Siemens AG, Technology
> Competence Center Embedded Linux
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7823):
> https://lists.cip-project.org/g/cip-dev/message/7823
> Mute This Topic: https://lists.cip-project.org/mt/90018409/5367685
> Group Owner: cip-dev+owner@lists.cip-project.org
> Unsubscribe:
> https://lists.cip-project.org/g/cip-dev/leave/9347598/5367685/1965380532/xyzzy
> [srinuvasanasv@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3919 bytes --]

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

* Re: [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the DEB_BUILD_PROFILES
  2022-03-25 11:39 ` Jan Kiszka
  2022-03-25 11:53   ` Srinuvasan Arjunan
@ 2022-03-25 12:22   ` Moessbauer, Felix
  1 sibling, 0 replies; 4+ messages in thread
From: Moessbauer, Felix @ 2022-03-25 12:22 UTC (permalink / raw)
  To: jan.kiszka, Srinuvasan A; +Cc: cip-dev

> -----Original Message-----
> From: Kiszka, Jan (T CED) <jan.kiszka@siemens.com>
> Sent: Friday, March 25, 2022 12:40 PM
> To: Srinuvasan A <Srinuvasan_A@mentor.com>; cip-dev@lists.cip-project.org;
> Moessbauer, Felix (T CED SES-DE) <felix.moessbauer@siemens.com>
> Subject: Re: [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the
> DEB_BUILD_PROFILES
> 
> On 25.03.22 09:34, Srinuvasan A wrote:
> > From: Srinuvasan A <srinuvasan_a@mentor.com>
> >
> > When we build this recipes in downstream layer the DEB_BUILD_PROFILES
> > not able to find by rule file hence it is not set the required build
> > profiles.
> >
> > Here we disable the tests `PYBUILD_DISABLE=test`, but due to this
> > unavailability of DEB_BUILD_PROFILES in rule file it is building along
> > with the test hence it's getting failed like "Not able to import
> > module pytest"
> >
> > Exported this one to access from rule file.
> >
> > Signed-off-by: Srinuvasan A <srinuvasan_a@mentor.com>
> > ---
> >  recipes-python/shtab/python3-shtab_1.4.2.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/recipes-python/shtab/python3-shtab_1.4.2.bb
> > b/recipes-python/shtab/python3-shtab_1.4.2.bb
> > index ce83d6b..554afd3 100644
> > --- a/recipes-python/shtab/python3-shtab_1.4.2.bb
> > +++ b/recipes-python/shtab/python3-shtab_1.4.2.bb
> > @@ -27,7 +27,7 @@ DEBIAN_BUILD_DEPENDS = " \
> >      python3-setuptools-scm:native, \
> >      "
> >
> > -DEB_BUILD_PROFILES = "nocheck"
> > +export DEB_BUILD_PROFILES = "nocheck"
> >
> >  do_prepare_build[cleandirs] += "${S}/debian"
> >  do_prepare_build() {
> 
> I lost overview: Do we need to export now (but Isar does not)? Will we have to
> with upcoming sbuild? If we only had to with past Isar, this would remain a
> downstream topic.

This depends on the ISAR version. With a post "DEB_BUILD_PROFILES" version (post ffdd1b0),
you have to set this via the BB var (not via an export).

For older ISAR versions, you have to export in the do_dpkg_build via do_dpkg_build_prepend (and also in do_install_builddeps, if required).
To support both, you can manually export and set the BB variable.

Exporting at the current location (outside a task) does not look right. IIRC, this exports to the bb environment and by that is visible to all tasks [1].
Please also note, that "nocheck" has to be added to DEB_BUILD_OPTIONS as well (just having it in DEB_BUILD_PROFILES breaks the "Build Profile Spec") [2].

Regarding sbuilder: Currently, manual exports are supported by ISAR sbuilder, but deprecated.
Note, that the DEB_BUILD_PROFILES and DEB_BUILD_OPTIONS infrastructure perfectly works (using the corresponding BB vars, not exports).

[1] https://www.yoctoproject.org/docs/2.3/bitbake-user-manual/bitbake-user-manual.html#exporting-variables-to-the-environment
[2] https://wiki.debian.org/BuildProfileSpec

Felix
> 
> Jan
> 
> --
> Siemens AG, Technology
> Competence Center Embedded Linux

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

end of thread, other threads:[~2022-03-25 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25  8:34 [cip-dev][isar-cip-core][PATCH] python3-shtab: add export to the DEB_BUILD_PROFILES Srinuvasan A
2022-03-25 11:39 ` Jan Kiszka
2022-03-25 11:53   ` Srinuvasan Arjunan
2022-03-25 12:22   ` Moessbauer, Felix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).