All of lore.kernel.org
 help / color / mirror / Atom feed
* Manifest for host (nativesdk) is empty
@ 2021-12-19 12:16 Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
  2021-12-20 11:20 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco) @ 2021-12-19 12:16 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hi All,

I'm working with gatesgarth and after 'bitbake core-image-minimal -c populate_sdk' into .../deploy/sdk
contains image installer .sh and manifests *.{host/target}.manifest. Host one contains list of nativesdk packages.

In honister target manifest is ok, but host manifest is empty.
So, my question is it known behavior/done in purpose or not normal behavior?

Regards,
Oleksiy

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

* Re: [OE-core] Manifest for host (nativesdk) is empty
  2021-12-19 12:16 Manifest for host (nativesdk) is empty Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
@ 2021-12-20 11:20 ` Richard Purdie
  2021-12-21 12:10   ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
       [not found]   ` <16C2C3E6A22467AA.15364@lists.openembedded.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Purdie @ 2021-12-20 11:20 UTC (permalink / raw)
  To: oobitots, Patches and discussions about the oe-core layer

On Sun, 2021-12-19 at 12:16 +0000, Oleksiy Obitotskyy via lists.openembedded.org
wrote:
> Hi All,
> 
> I'm working with gatesgarth and after 'bitbake core-image-minimal -c populate_sdk' into .../deploy/sdk
> contains image installer .sh and manifests *.{host/target}.manifest. Host one contains list of nativesdk packages.
> 
> In honister target manifest is ok, but host manifest is empty.
> So, my question is it known behavior/done in purpose or not normal behavior?

It is unexpected and needs to be looked into...

Cheers,

Richard



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

* Re: [OE-core] Manifest for host (nativesdk) is empty
  2021-12-20 11:20 ` [OE-core] " Richard Purdie
@ 2021-12-21 12:10   ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
       [not found]   ` <16C2C3E6A22467AA.15364@lists.openembedded.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco) @ 2021-12-21 12:10 UTC (permalink / raw)
  To: Richard Purdie, Patches and discussions about the oe-core layer

Something like this helps with host manifest.
It was just a guess - I found similar workaround into meta/lib/oe/package_manager/ipk/sdk.py.
If it appropriate I could arrange it as a patch.

diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py
index 4cd3963111..37962fb689 100644
--- a/meta/lib/oe/package_manager/ipk/__init__.py
+++ b/meta/lib/oe/package_manager/ipk/__init__.py
@@ -62,6 +62,13 @@ class OpkgIndexer(Indexer):
 class PMPkgsList(PkgsList):
     def __init__(self, d, rootfs_dir):
         super(PMPkgsList, self).__init__(d, rootfs_dir)
+
+        # In sdk_list_installed_packages the call to opkg is hardcoded to
+        # always use IPKGCONF_TARGET and there's no exposed API to change this
+        # so simply override IPKGCONF_TARGET to use this separated config file.
+        ipkgconf_sdk_target = d.getVar("IPKGCONF_SDK")
+        d.setVar("IPKGCONF_TARGET", ipkgconf_sdk_target)
+
         config_file = d.getVar("IPKGCONF_TARGET")

Regards,
Oleksiy

________________________________________
From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> on behalf of Richard Purdie <richard.purdie@linuxfoundation.org>
Sent: Monday, December 20, 2021 13:20
To: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco); Patches and discussions about the oe-core layer
Subject: Re: [OE-core] Manifest for host (nativesdk) is empty

On Sun, 2021-12-19 at 12:16 +0000, Oleksiy Obitotskyy via lists.openembedded.org
wrote:
> Hi All,
>
> I'm working with gatesgarth and after 'bitbake core-image-minimal -c populate_sdk' into .../deploy/sdk
> contains image installer .sh and manifests *.{host/target}.manifest. Host one contains list of nativesdk packages.
>
> In honister target manifest is ok, but host manifest is empty.
> So, my question is it known behavior/done in purpose or not normal behavior?

It is unexpected and needs to be looked into...

Cheers,

Richard



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

* Re: [OE-core] Manifest for host (nativesdk) is empty
       [not found]   ` <16C2C3E6A22467AA.15364@lists.openembedded.org>
@ 2021-12-23  8:10     ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
  0 siblings, 0 replies; 4+ messages in thread
From: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco) @ 2021-12-23  8:10 UTC (permalink / raw)
  To: Richard Purdie, Patches and discussions about the oe-core layer,
	Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)

After further investigation we realized that this change fix host but affects target manifest.
Proposed solution is not ok for now.

Regards,
Oleksiy

________________________________________
From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> on behalf of Oleksiy Obitotskyy via lists.openembedded.org <oobitots=cisco.com@lists.openembedded.org>
Sent: Tuesday, December 21, 2021 14:10
To: Richard Purdie; Patches and discussions about the oe-core layer
Subject: Re: [OE-core] Manifest for host (nativesdk) is empty

Something like this helps with host manifest.
It was just a guess - I found similar workaround into meta/lib/oe/package_manager/ipk/sdk.py.
If it appropriate I could arrange it as a patch.

diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py
index 4cd3963111..37962fb689 100644
--- a/meta/lib/oe/package_manager/ipk/__init__.py
+++ b/meta/lib/oe/package_manager/ipk/__init__.py
@@ -62,6 +62,13 @@ class OpkgIndexer(Indexer):
 class PMPkgsList(PkgsList):
     def __init__(self, d, rootfs_dir):
         super(PMPkgsList, self).__init__(d, rootfs_dir)
+
+        # In sdk_list_installed_packages the call to opkg is hardcoded to
+        # always use IPKGCONF_TARGET and there's no exposed API to change this
+        # so simply override IPKGCONF_TARGET to use this separated config file.
+        ipkgconf_sdk_target = d.getVar("IPKGCONF_SDK")
+        d.setVar("IPKGCONF_TARGET", ipkgconf_sdk_target)
+
         config_file = d.getVar("IPKGCONF_TARGET")

Regards,
Oleksiy

________________________________________
From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> on behalf of Richard Purdie <richard.purdie@linuxfoundation.org>
Sent: Monday, December 20, 2021 13:20
To: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco); Patches and discussions about the oe-core layer
Subject: Re: [OE-core] Manifest for host (nativesdk) is empty

On Sun, 2021-12-19 at 12:16 +0000, Oleksiy Obitotskyy via lists.openembedded.org
wrote:
> Hi All,
>
> I'm working with gatesgarth and after 'bitbake core-image-minimal -c populate_sdk' into .../deploy/sdk
> contains image installer .sh and manifests *.{host/target}.manifest. Host one contains list of nativesdk packages.
>
> In honister target manifest is ok, but host manifest is empty.
> So, my question is it known behavior/done in purpose or not normal behavior?

It is unexpected and needs to be looked into...

Cheers,

Richard



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

end of thread, other threads:[~2021-12-23  8:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-19 12:16 Manifest for host (nativesdk) is empty Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
2021-12-20 11:20 ` [OE-core] " Richard Purdie
2021-12-21 12:10   ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)
     [not found]   ` <16C2C3E6A22467AA.15364@lists.openembedded.org>
2021-12-23  8:10     ` Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.