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

Jean-Marie LEMETAYER jean-marie.lemetayer at savoirfairelinux.com
Mon Jan 20 10:27:08 UTC 2020

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:

--- V4

These patches can be found here:

 - 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:
   is converted as:

 - 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:

 - 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


More information about the bitbake-devel mailing list