Re: [OE-core] [PATCH] package management: Allow dynamic loading of PM

2020-09-08 Thread Fredrik Gustafsson
From: Richard Purdie Sent: Tuesday, September 8, 2020 1:25 PM To: Fredrik Gustafsson; Fredrik Gustafsson Cc: openembedded-core@lists.openembedded.org; tools-cfpbuild-internal Subject: Re: [OE-core] [PATCH] package management: Allow dynamic loading of PM

[OE-core] [PATCH] package management: Allow dynamic loading of PM

2020-09-08 Thread Fredrik Gustafsson
* Run those 16 tests on master and verify that they fail there as well * Fix errors making tests works on master but not with this patch. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 10 ++ meta/lib/oe/package_manager/deb/__init__.py | 4 +-- meta/lib/oe

[OE-core] [PATCH v6 05/13] rpm: Move rootfs to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/rpm/rootfs.py | 148 ++ meta/lib/oe/rootfs.py

[OE-core] [PATCH v6 08/13] rpm: Move sdk to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/rpm/sdk.py | 114 + meta/lib/oe/sdk.py | 106

[OE-core] [PATCH v6 04/13] deb: Move deb manifest to its own subdir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 21 + meta/lib/oe/package_manager/deb/__init__.py | 3

[OE-core] [PATCH v6 07/13] deb: Move rootfs to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/deb/rootfs.py | 209 ++ meta/lib/oe/rootfs.py

[OE-core] [PATCH v6 13/13] deb: Move package manager to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/__init__.py | 487 meta/lib/oe/package_manager/deb/__init__.py

[OE-core] [PATCH v6 12/13] ipk: Move package manager to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/__init__.py | 432 - meta/lib/oe/package_manager/ipk/__init__.py | 501

[OE-core] [PATCH v6 03/13] ipk: Move ipk manifest to its own subdir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 72 +--- meta/lib/oe/package_manager/ipk/__init__.py

[OE-core] [PATCH v6 10/13] deb: Move sdk to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/deb/sdk.py | 95 ++ meta/lib/oe/sdk.py | 87

[OE-core] [PATCH v6 01/13] package_manager: Move to package_manager/__init__.py

2020-07-24 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/{package_manager.py => package_manager/__init__.py} | 0 1 file changed, 0 insertions(+), 0 deleti

[OE-core] [PATCH v6 09/13] ipk: Move sdk to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/ipk/sdk.py | 96 ++ meta/lib/oe/sdk.py | 87

[OE-core] [PATCH v6] Add package managers as a plugin

2020-07-24 Thread Fredrik Gustafsson
OE-core today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

[OE-core] [PATCH v6 02/13] rpm: Move manifest to its own subdir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 53 +--- meta/lib/oe/package_manager/rpm/__init__.py

[OE-core] [PATCH v6 11/13] rpm: Move package manager to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/__init__.py | 398 --- meta/lib/oe/package_manager/rpm/__init__.py | 399

[OE-core] [PATCH v6 06/13] ipk: Move rootfs to its own dir

2020-07-24 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/ipk/rootfs.py | 385 ++ meta/lib/oe/rootfs.py

Re: [OE-core] [PATCH v4 01/12] Move rpm manifest to its own subdir

2020-07-22 Thread Fredrik Gustafsson
don't take my silence then as a lack of interest. This has my highest priority. Best regards Fredrik From: Paul Barker Sent: Saturday, July 18, 2020 5:29 PM To: Fredrik Gustafsson Cc: openembedded-core@lists.openembedded.org; tools-cfpbuild-internal; Richard

[OE-core] [PATCH v5 06/13] ipk: Move rootfs to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/ipk/rootfs.py | 385 ++ meta/lib/oe/rootfs.py

[OE-core] [PATCH v5 09/13] ipk: Move sdk to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/ipk/sdk.py | 96 ++ meta/lib/oe/sdk.py | 87

[OE-core] [PATCH v5 13/13] deb: Move package manager to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/__init__.py | 487 - .../oe/package_manager/deb/package_manager.py

[OE-core] [PATCH v5 04/13] deb: Move deb manifest to its own subdir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 21 + meta/lib/oe/package_manager/deb/__init__.py | 3

[OE-core] [PATCH v5 05/13] rpm: Move rootfs to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/rpm/rootfs.py | 148 ++ meta/lib/oe/rootfs.py

[OE-core] [PATCH v5 11/13] rpm: Move package manager to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/__init__.py | 398 - .../oe/package_manager/rpm/package_manager.py

[OE-core] [PATCH v5 03/13] ipk: Move ipk manifest to its own subdir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 72 +--- meta/lib/oe/package_manager/ipk/__init__.py

[OE-core] [PATCH v5 01/13] package_manager: Move to package_manager/__init__.py

2020-07-22 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. --- meta/lib/oe/{package_manager.py => package_manager/__init__.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename meta/lib/oe/{package_manager.py

[OE-core] [PATCH v5 02/13] rpm: Move manifest to its own subdir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 53 +--- meta/lib/oe/package_manager/rpm/__init__.py

[OE-core] [PATCH v5] Add package managers as a plugin

2020-07-22 Thread Fredrik Gustafsson
OE-core today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

[OE-core] [PATCH v5 07/13] deb: Move rootfs to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/deb/rootfs.py | 209 ++ meta/lib/oe/rootfs.py

[OE-core] [PATCH v5 12/13] ipk: Move package manager to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/__init__.py | 432 --- .../oe/package_manager/ipk/package_manager.py | 504

[OE-core] [PATCH v5 08/13] rpm: Move sdk to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/rpm/sdk.py | 114 + meta/lib/oe/sdk.py | 106

[OE-core] [PATCH v5 10/13] deb: Move sdk to its own dir

2020-07-22 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager/deb/sdk.py | 95 ++ meta/lib/oe/sdk.py | 87

Re: [OE-core] [PATCH v4 01/12] Move rpm manifest to its own subdir

2020-07-14 Thread Fredrik Gustafsson
Thank you, just let me know if I can make it any easier to review this, I know it's a big patch. BR Fredrik From: Paul Barker Sent: Thursday, July 9, 2020 6:19 PM To: Fredrik Gustafsson Cc: openembedded-core@lists.openembedded.org; tools-cfpbuild-internal

Re: [OE-core] [PATCH v4 01/12] Move rpm manifest to its own subdir

2020-07-09 Thread Fredrik Gustafsson
Hi, is there something I can do to make this series move forward? /Fredrik From: Fredrik Gustafsson Sent: Friday, July 3, 2020 1:43 PM To: openembedded-core@lists.openembedded.org Cc: tools-cfpbuild-internal; Fredrik Gustafsson Subject: [PATCH v4 01/12

Re: [OE-core] [PATCH v3] nopackages.bbclass: Get tasks from variable

2020-07-09 Thread Fredrik Gustafsson
Hi Richard, is there something I can do to make this move forward? /Fredrik From: Fredrik Gustafsson Sent: Wednesday, July 1, 2020 10:46 AM To: openembedded-core@lists.openembedded.org Cc: tools-cfpbuild-internal; Fredrik Gustafsson Subject: [PATCH v3

Re: [OE-core] Add package managers as a plugin

2020-07-03 Thread Fredrik Gustafsson
From: Paul Barker Sent: Thursday, July 2, 2020 10:28 PM To: Fredrik Gustafsson Cc: openembedded-core; tools-cfpbuild-internal Subject: Re: [OE-core] Add package managers as a plugin On Thu, 2 Jul 2020 at 20:29, Fredrik Gustafsson wrote: > > O

[OE-core] [PATCH v4 03/12] Move deb manifest to its own subdir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 21 +--- meta/lib/oe/package_managers/deb/__init__.py | 3

[OE-core] [PATCH v4 01/12] Move rpm manifest to its own subdir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 51 +- meta/lib/oe/package_managers/rpm/__init__.py

[OE-core] [PATCH v4 08/12] Move ipk sdk to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/ipk/sdk.py | 98 + meta/lib/oe/sdk.py | 87

[OE-core] [PATCH v4 10/12] Move rpm package manager to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 398 - .../package_managers/rpm/package_manager.py

[OE-core] [PATCH v4 11/12] Move ipk package manager to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 407 -- .../package_managers/ipk/package_manager.py

[OE-core] [PATCH v4 09/12] Move deb sdk to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/sdk.py | 98 + meta/lib/oe/sdk.py | 87

[OE-core] [PATCH v4 07/12] Move rpm sdk to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/rpm/sdk.py | 117 meta/lib/oe/sdk.py | 106

[OE-core] [PATCH v4 05/12] Move ipk rootfs to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/ipk/rootfs.py | 385 + meta/lib/oe/rootfs.py

[OE-core] [PATCH v4 06/12] Move deb rootfs to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/rootfs.py | 211 + meta/lib/oe/rootfs.py

[OE-core] [PATCH v4 04/12] Move rpm rootfs to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/rpm/rootfs.py | 150 + meta/lib/oe/rootfs.py

[OE-core] [PATCH v4 12/12] Move deb package manager to its own dir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 512 -- .../package_managers/deb/package_manager.py

[OE-core] [PATCH v4 02/12] Move ipk manifest to its own subdir

2020-07-03 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 71 +- meta/lib/oe/package_managers/ipk/__init__.py

[OE-core] [PATCH v4] Add package managers as a plugin

2020-07-03 Thread Fredrik Gustafsson
OE-core today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

Re: [OE-core] ✗ patchtest: failure for "[v3] Move rpm manifest to its ..." and 2 more

2020-07-02 Thread Fredrik Gustafsson
Since I've edited four files, which one should be used as ? /Fredrik From: Patchwork Sent: Thursday, July 2, 2020 9:32 PM To: Fredrik Gustafsson Cc: openembedded-core@lists.openembedded.org Subject: ✗ patchtest: failure for "[v3] Move rpm manifest t

[OE-core] Add package managers as a plugin

2020-07-02 Thread Fredrik Gustafsson
OE-core today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

[OE-core] [PATCH v3 1/3] Move rpm manifest to its own subdir

2020-07-02 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 51 +- meta/lib/oe/package_managers/rpm/__init__.py

[OE-core] [PATCH v3 3/3] Move deb manifest to its own subdir

2020-07-02 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 21 +--- meta/lib/oe/package_managers/deb/__init__.py | 3

[OE-core] [PATCH v3 2/3] Move ipk manifest to its own subdir

2020-07-02 Thread Fredrik Gustafsson
This is a part of a refactor that will split the package manager code so that it's possible to use other package managers in other layers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 71 +- meta/lib/oe/package_managers/ipk/__init__.py

Re: [OE-core] [PATCH v3] nopackages.bbclass: Get tasks from variable

2020-07-01 Thread Fredrik Gustafsson
ing like EXTRA_NOPACKAGE_DELTASKS_append() be used? /Fredrik From: Paul Barker Sent: Wednesday, July 1, 2020 12:22 PM To: Richard Purdie Cc: Fredrik Gustafsson; openembedded-core; tools-cfpbuild-internal; Fredrik Gustafsson Subject: Re: [OE-core] [PATCH v3] nop

[OE-core] Add package managers as a plugin

2020-07-01 Thread Fredrik Gustafsson
OE-core today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

[OE-core] [PATCH v3] nopackages.bbclass: Get tasks from variable

2020-07-01 Thread Fredrik Gustafsson
Get tasks from a variable instead of having them hardcoded. This will enable other layers to add tasks that should be deleted when nopackages is used. Signed-off-by: Fredrik Gustafsson --- meta/classes/nopackages.bbclass | 19 +++ 1 file changed, 7 insertions(+), 12 deletions

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
IG2P9k6EjA BR Fredrik From: Martin Jansa Sent: Tuesday, June 30, 2020 11:54 PM To: Fredrik Gustafsson Cc: Ross Burton; OE-core; tools-cfpbuild-internal Subject: Re: [OE-core] Add package managers as a plugin On Tue, Jun 30, 2020 at 07:01:23PM +0000, Fredrik

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
, and we do a lot (I guess we might approach 100 000 builds/week in the next year). Then this will save 92.5 days build time each week. That's why I'm passionated about this. /Fredrik From: Ross Burton Sent: Friday, June 26, 2020 12:52 PM To: Fredrik Gustafsson

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
, 2020 5:43 PM To: Fredrik Gustafsson Cc: OE-core; tools-cfpbuild-internal; Hugo Cedervall Subject: Re: [OE-core] Add package managers as a plugin What I meant is that 15s vs 20s on a small image could have been 5 min vs 5min5s on a bigger image, so I wanted to see that the difference does scale up

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
Hi Paul, thank you for your effort on this. It's appreciated! I'll go through ýour advice and see if I can improve this series. BR Fredrik From: Paul Barker Sent: Thursday, June 25, 2020 12:40 PM To: Fredrik Gustafsson Cc: openembedded-core; tools

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
y, June 24, 2020 5:18 PM To: Fredrik Gustafsson; openembedded-core@lists.openembedded.org Cc: tools-cfpbuild-internal; Hugo Cedervall; Alejandro Del Castillo Subject: Re: [OE-core] Add package managers as a plugin On 6/23/20 6:13 AM, Fredrik Gustafsson wrote: > When building and having a g

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
To: Fredrik Gustafsson Cc: openembedded-core@lists.openembedded.org; tools-cfpbuild-internal; Hugo Cedervall Subject: Re: [OE-core] Add package managers as a plugin You mentioned Poky few times below - why is it Poky-specific? Since you are not submitting this change to Poky, but to OE-Core instead

Re: [OE-core] Add package managers as a plugin

2020-06-30 Thread Fredrik Gustafsson
___ From: Alexander Kanavin Sent: Thursday, June 25, 2020 12:24 PM To: Fredrik Gustafsson Cc: OE-core; tools-cfpbuild-internal; Hugo Cedervall Subject: Re: [OE-core] Add package managers as a plugin Apologies, but these metrics do not look particularly convincing - 15s vs 20s? Can you try

[OE-core] [PATCH v2 24/26] package_manager.py: Move OpkgPkgsList

2020-06-25 Thread Fredrik Gustafsson
Let the code that is only used by opkg package manager live in that package manager owned directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 27 -- .../package_managers/ipk/package_manager.py | 85 +++ meta/lib/oe/rootfs.py

[OE-core] [PATCH v2 07/26] sdk.py: Move RpmSdk

2020-06-25 Thread Fredrik Gustafsson
Let the sdk only used by the rpm package manager live in the rpm directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/rpm/sdk.py | 113 meta/lib/oe/sdk.py | 106 +- 2 files changed, 115 insertions(+), 104

[OE-core] [PATCH v2 02/26] package_managers: Add directory structure

2020-06-25 Thread Fredrik Gustafsson
This is first part of a refactoring to split up the package managers to different files making it easier to extend OE-Core with more package managers. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/__init__.py | 3 +++ meta/lib/oe/package_managers/ipk/__init__.py | 3

[OE-core] [PATCH v2 21/26] package_manager.py: Move DpkgIndexer

2020-06-25 Thread Fredrik Gustafsson
Let the code that is only used by opkg package manager live in that package manager owned directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 74 --- .../package_managers/deb/package_manager.py | 74 +++ 2 files

[OE-core] [PATCH v2 06/26] manifest.py: Dynamic load of manifest

2020-06-25 Thread Fredrik Gustafsson
Decide which manifest we should load in run time without any hard coded values but look at which package type that is used. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 10 ++-- meta/lib/oe/package_managers/deb/manifest.py | 2 +- meta/lib/oe

[OE-core] [PATCH v2 20/26] package_manager.py: Move OpkgIndexer

2020-06-25 Thread Fredrik Gustafsson
Let the code that is only used by opkg package manager live in that package manager owned directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 53 --- .../package_managers/ipk/package_manager.py | 52 ++ 2 files

[OE-core] [PATCH v2 18/26] package_manager: Rename RpmPM to PkgPM, etc.

2020-06-25 Thread Fredrik Gustafsson
Rename all *PM classeds to PkgPM for consistency sake and cleanup some naming that now can be improved. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 4 +-- .../package_managers/deb/package_manager.py | 4 +-- meta/lib/oe/package_managers/deb

[OE-core] [PATCH v2 17/26] package_manager.py: Move OpkgPM

2020-06-25 Thread Fredrik Gustafsson
Let the package_manager only used by the ipk package manager live in the ipk directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 419 - .../package_managers/ipk/package_manager.py | 426 ++ meta/lib/oe

[OE-core] [PATCH v2 13/26] rootfs.py: Move OpkgRootfs

2020-06-25 Thread Fredrik Gustafsson
Let the rootfs only used by the ipk package manager live in the ipk directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/ipk/rootfs.py | 381 + meta/lib/oe/rootfs.py | 268 +-- 2 files changed, 383 insertions(+), 266

[OE-core] [PATCH v2 22/26] package_manager: Rename Indexer classes

2020-06-25 Thread Fredrik Gustafsson
Rename all *Indexer classeds to PkgIndexer to enable dynamic calling. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 22 +-- .../package_managers/deb/package_manager.py | 8 +-- .../package_managers/ipk/package_manager.py | 7

[OE-core] [PATCH v2 10/26] sdk.py: Dynamic load of sdk

2020-06-25 Thread Fredrik Gustafsson
Decide which sdk we should load in run time without any hard coded values but look at which package type that is used. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/sdk.py | 4 ++-- meta/lib/oe/package_managers/ipk/sdk.py | 4 ++-- meta/lib/oe/package_managers/rpm

[OE-core] [PATCH v2 16/26] package_manager.py: Move DpkgPM

2020-06-25 Thread Fredrik Gustafsson
Let the package_manager only used by the dpkg package manager live in the dpkg directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 328 -- .../package_managers/deb/package_manager.py | 402 ++ meta/lib/oe

[OE-core] [PATCH v2 19/26] package_manager.py: Move RpmIndexer

2020-06-25 Thread Fredrik Gustafsson
Let the code that is only used by rpm package manager live in that package manager owned directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 36 --- .../package_managers/rpm/package_manager.py | 36 +++ 2 files

[OE-core] [PATCH v2 15/26] package_manager.py: Move RpmPM

2020-06-25 Thread Fredrik Gustafsson
Let the package_manager only used by the rpm package manager live in the rpm directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 358 + .../package_managers/rpm/package_manager.py | 363 ++ 2 files changed, 364

[OE-core] [PATCH v2 11/26] rootfs.py: Move RpmRootfs

2020-06-25 Thread Fredrik Gustafsson
Let the rootfs only used by the rpm package manager live in the rpm directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/rpm/rootfs.py | 147 + meta/lib/oe/rootfs.py | 142 +--- 2 files changed, 149 insertions

[OE-core] [PATCH v2 12/26] rootfs.py: Move DpkgRootfs

2020-06-25 Thread Fredrik Gustafsson
Let the rootfs only used by the dpkg package manager live in the dpkg directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/rootfs.py | 473 + meta/lib/oe/rootfs.py | 93 +--- 2 files changed, 475 insertions(+), 91 deletions

[OE-core] [PATCH v2 25/26] package_manager.py: Move DpkgPkgsList

2020-06-25 Thread Fredrik Gustafsson
Let the code that is only used by dpkg package manager live in that package manager owned directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py| 79 --- .../package_managers/deb/package_manager.py | 79 +++ meta/lib/oe

[OE-core] [PATCH v2 14/26] rootfs.py: Dynamic load of rootfs

2020-06-25 Thread Fredrik Gustafsson
Decide which rootfs we should load in run time without any hard coded values but look at which package type that is used. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/rootfs.py | 4 +- meta/lib/oe/package_managers/ipk/rootfs.py | 4 +- meta/lib/oe/package_managers

[OE-core] [PATCH v2 23/26] package_manager.py: Move RpmPkgsList

2020-06-25 Thread Fredrik Gustafsson
Let the code that is only used by rpm package manager live in that package manager owned directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_manager.py | 5 - meta/lib/oe/package_managers/rpm/package_manager.py | 4 meta/lib/oe/rootfs.py

[OE-core] [PATCH v2 05/26] manifest: Move OpkgManifest

2020-06-25 Thread Fredrik Gustafsson
Let the manifest only used by the ipk package manager live in the ipk directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 71 +- meta/lib/oe/package_managers/ipk/manifest.py | 76 meta/lib/oe/rootfs.py

[OE-core] [PATCH v2 26/26] package_manager: Rename PkgsList classes

2020-06-25 Thread Fredrik Gustafsson
Rename all *PkgsList classeds to PkgsList to enable dynamic calling. Signed-off-by: Fredrik Gustafsson --- .../oe/package_managers/deb/package_manager.py| 4 ++-- .../oe/package_managers/ipk/package_manager.py| 12 +++- .../oe/package_managers/rpm/package_manager.py| 2

[OE-core] [PATCH v2 03/26] manifest: Move RpmManifest

2020-06-25 Thread Fredrik Gustafsson
Let the manifest only used by the rpm package manager live in the rpm directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 51 +- meta/lib/oe/package_managers/rpm/manifest.py | 57 meta/lib/oe/rootfs.py

[OE-core] [PATCH v2 09/26] sdk.py: Move OpkgSdk

2020-06-25 Thread Fredrik Gustafsson
Let the sdk only used by the ipk package manager live in the ipk directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/ipk/sdk.py | 93 + meta/lib/oe/sdk.py | 84 +- 2 files changed, 94 insertions(+), 83

[OE-core] Add package managers as a plugin

2020-06-25 Thread Fredrik Gustafsson
Poky today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

[OE-core] [PATCH v2 01/26] nopackages.bbclass: Get tasks from variable

2020-06-25 Thread Fredrik Gustafsson
Get tasks from a variable instead of having them hardcoded. This will enable other layers to add tasks that should be deleted when nopackages is used. Signed-off-by: Fredrik Gustafsson --- meta/classes/nopackages.bbclass | 19 +++ 1 file changed, 7 insertions(+), 12 deletions

[OE-core] [PATCH v2 08/26] sdk.py: Move DpkgSdk

2020-06-25 Thread Fredrik Gustafsson
Let the sdk only used by the dpkg package manager live in the dpkg directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/package_managers/deb/sdk.py | 94 + meta/lib/oe/sdk.py | 86 +- 2 files changed, 95 insertions(+), 85

[OE-core] [PATCH v2 04/26] manifest: Move DpkgManifest

2020-06-25 Thread Fredrik Gustafsson
Let the manifest only used by the dpkg package manager live in the dpkg directory. Signed-off-by: Fredrik Gustafsson --- meta/lib/oe/manifest.py | 23 + meta/lib/oe/package_managers/deb/manifest.py | 27 meta/lib/oe/rootfs.py

[OE-core] Add package managers as a plugin

2020-06-25 Thread Fredrik Gustafsson
Poky today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

Re: [OE-core] [PATCH 2/2] lib/oe: Split package manager code to multiple files

2020-06-23 Thread Fredrik Gustafsson
From: Richard Purdie Sent: Tuesday, June 23, 2020 2:02 PM To: Fredrik Gustafsson; openembedded-core@lists.openembedded.org Cc: tools-cfpbuild-internal; Hugo Cedervall; Fredrik Gustafsson Subject: Re: [OE-core] [PATCH 2/2] lib/oe: Split package manager

[OE-core] Add package managers as a plugin

2020-06-23 Thread Fredrik Gustafsson
Poky today has three different package managers, the well-known formats deb and rpm is supported as well as ipkg that is good for embedded devices. When building and having a good cache hit, a significant amount of time is spent in the phase of generating a rootfs, which is really about the

[OE-core] [PATCH 1/2] nopackages.bbclass: Move to nopackages_base.bbclass

2020-06-23 Thread Fredrik Gustafsson
easier to maintain. Signed-off-by: Fredrik Gustafsson --- meta/classes/nopackages.bbclass | 15 +++ meta/classes/nopackages_base.bbclass | 12 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 meta/classes/nopackages_base.bbclass diff --git a/meta