[bitbake-devel] [PATCH v5 00/12] NPM refactoring

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Jan 24 15:36:21 UTC 2020


You should remove the "bitbake: " prefix from the subject line for 
all the patches in this series. It is added automatically when the 
bitbake repository is "merged" to the poky repository. Otherwise 
you will see them as "bitbake: bitbake: ..." in poky, which you 
can see now on the master-next branch.

//Peter

> -----Original Message-----
> From: bitbake-devel-bounces at lists.openembedded.org <bitbake-devel-
> bounces at lists.openembedded.org> On Behalf Of Jean-Marie LEMETAYER
> Sent: den 20 januari 2020 11:27
> To: bitbake-devel at lists.openembedded.org
> Cc: rennes-dev at savoirfairelinux.com; paul.eggleton at linux.intel.com
> Subject: [bitbake-devel] [PATCH v5 00/12] NPM refactoring
> 
> Hi folks and happy new year,
> 
> These patches are part of a set which are mainly in OE-core.
> More infos can be found on the openembedded-core list.
> 
> For readability here is a link if you want the history of this patchset:
> http://lists.openembedded.org/pipermail/openembedded-core/2019-
> December/290298.html
> 
> --- V4
> 
> These patches can be found here:
> https://github.com/savoirfairelinux/bitbake/tree/npm-refactoring-v4
> 
>  - As suggested by Richard, a new npmsw fetcher have been implemented to
> handle
>    the npm dependencies. Now the fetch of the main package is separated
> from the
>    fetch of its dependencies.
> 
>  - Add the support of "proxy" fetchers. These fetchers (npm and npmsw)
> just
>    resolves an url and forwards it to a "raw" fetcher (wget, git, ...).
>    For example an npm url like:
>      npm://registry...;package=...;version=...
>    is converted as:
>      https://registry.../...tgz;downloadfilename=npm2/...tgz;sha256sum=...
> 
>  - Add more hash functions for checksum verification to be able to support
> the
>    subresource integrity [1] returned by the npm registry. The supported
> hash
>    functions are now: md5, sha1, sha256, sha384, sah512
> 
>  - More tests have been added for the npm and the npmsw fetchers including
> tests
>    for the proxy forwarding thing (checksum, mirrors).
> 
> 1: https://www.w3.org/TR/SRI/
> 
> --- V5
> 
> These patches can be found here:
> https://github.com/savoirfairelinux/bitbake/tree/npm-refactoring-v5
> 
>  - As suggested by Christopher, the fetchers now use the shlex.quote()
> function
>    to handle arguments to shell function.
> 
> Jean-Marie LEMETAYER (12):
>   bitbake: utils: add sha384_file and sha512_file functions
>   bitbake: utils: add is_semver function
>   bitbake: fetch2: refactor checksum verification
>   bitbake: fetch2: add more hash functions for checksum verification
>   bitbake: fetch2: allow fetchers to forward the donestamp management
>   bitbake: fetch2: allow fetchers to forward the mirrors management
>   bitbake: fetch2: allow fetchers to forward the done condition
>   bitbake: fetch2/wget: fix downloadfilename parameter
>   bitbake: fetch2/npm: refactor the npm fetcher
>   bitbake: tests/fetch: add npm tests
>   bitbake: fetch2: add the npmsw fetcher
>   bitbake: tests/fetch: add npmsw tests
> 
>  lib/bb/fetch2/__init__.py | 215 +++++++++------
>  lib/bb/fetch2/npm.py      | 538 +++++++++++++++++++-------------------
>  lib/bb/fetch2/npmsw.py    | 255 ++++++++++++++++++
>  lib/bb/fetch2/wget.py     |   7 +-
>  lib/bb/tests/fetch.py     | 434 ++++++++++++++++++++++++++++++
>  lib/bb/utils.py           |  40 +++
>  6 files changed, 1129 insertions(+), 360 deletions(-)
>  create mode 100644 lib/bb/fetch2/npmsw.py
> 
> --
> 2.20.1
> 
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel


More information about the bitbake-devel mailing list