All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 00/20 v2] support/download: allow downloading unlocked cargo packages (branch yem/cargo-unchained)
@ 2024-06-07 17:05 Yann E. MORIN
  2024-06-07 17:05 ` [Buildroot] [PATCH 01/20 v2] package/pkg-download: symplify calling parameters Yann E. MORIN
                   ` (20 more replies)
  0 siblings, 21 replies; 33+ messages in thread
From: Yann E. MORIN @ 2024-06-07 17:05 UTC (permalink / raw)
  To: buildroot
  Cc: Ricardo Martincoski, James Hilliard, Asaf Kahlon,
	Thomas Petazzoni, Yann E . MORIN

Hello All!

Some maintainers refuse to commit a Cargo.lock in their repository [0],
so there are cargo packages that are unlocked.

However, we currently require that a Cargo.lock be present: we call
"cargo venodor --locked"; if there is no Cargo.lock, cargo fails.

This series adds support for downloading unlocked cargo packages; the
series is articulated in three steps:

 1. preparatory cleanups (shelcheck, readability...)

 2. extend the download infra to pass arbitrary options to the
    post-process helpers; use that to pass the path of the manifest
    instead of using an environment variable

 3. add support for unlocked cargo packages by passing a new option to
    the cargo post-process helper; add documentation and check-package.

 4. (off-by-one error) add an RFC-style package to demonstrate the
    unlocked cargo package.

Unlocked packages can be handled in two ways: totally unlocked, in which
case they are not reproducible, or by providing a Cargo.lock in the
Buildroot package directory, in which case it is reproducible, but there
is a little bit more complexity to it, so this is implemented separately
in case it is deemed too heavy-weight.

Regards,
Yann E. MORIN.


----------------------------------------------------------------
Yann E. MORIN (20):
      package/pkg-download: symplify calling parameters
      package/pkg-generic: split long, unreadable DOWNLOAD line
      utils/check-package: add option to run the test-suite
      utils/checkpackagelib: instruct shellcheck to follow included files
      support/download/dl-wrapper: fix shellcheck errors
      support/download/cargo-post-process: fix shellcheck
      support/download: move tracing functions to helpers
      support/download: pass post-process options to post-process helper
      support/download: accept manifest path as a post-process option
      pakcage/pkg-cargo: use post-process opts to pass manifest path
      package/pkg-python: use post-process opts to pass Cargo manifest path
      package/python-bcrypt: use post-process opts to pass Cargo manifest path
      support/download: no longer support BR_CARGO_MANIFEST_PATH in cargo post-process
      docs/manual: rephrase end of vendoring section
      package/pkg-cargo: add support for unlocked packages
      utils/checkpackagelib: add test for default _CARGO_LOCKED
      RFC: package/anvil: new package
      package/pkg-utils: accept pacakge-specific archive format version
      package/pkg-cargo: allow unlocked packages to provide local Cargo.lock
      RFC: package/anvil: add local Cargo.lock

 .checkpackageignore                    |    2 -
 docs/manual/adding-packages-cargo.adoc |   34 +-
 package/Config.in                      |    1 +
 package/anvil/Cargo.lock               | 3464 ++++++++++++++++++++++++++++++++
 package/anvil/Config.in                |   20 +
 package/anvil/anvil.hash               |    2 +
 package/anvil/anvil.mk                 |   31 +
 package/pkg-cargo.mk                   |   31 +-
 package/pkg-download.mk                |   33 +-
 package/pkg-generic.mk                 |   12 +-
 package/pkg-python.mk                  |    6 +-
 package/pkg-utils.mk                   |    3 +-
 package/python-bcrypt/python-bcrypt.mk |    5 +-
 support/download/cargo-post-process    |   62 +-
 support/download/dl-wrapper            |   32 +-
 support/download/helpers               |    4 +
 utils/check-package                    |   10 +
 utils/checkpackagelib/lib_mk.py        |    8 +
 utils/checkpackagelib/readme.txt       |    1 +
 utils/checkpackagelib/test_lib_mk.py   |   18 +
 utils/checkpackagelib/tool.py          |    2 +-
 21 files changed, 3728 insertions(+), 53 deletions(-)
 create mode 100644 package/anvil/Cargo.lock
 create mode 100644 package/anvil/Config.in
 create mode 100644 package/anvil/anvil.hash
 create mode 100644 package/anvil/anvil.mk

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-07-14  9:13 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 17:05 [Buildroot] [PATCH 00/20 v2] support/download: allow downloading unlocked cargo packages (branch yem/cargo-unchained) Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 01/20 v2] package/pkg-download: symplify calling parameters Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 02/20 v2] package/pkg-generic: split long, unreadable DOWNLOAD line Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 03/20 v2] utils/check-package: add option to run the test-suite Yann E. MORIN
2024-07-14  7:37   ` Arnout Vandecappelle via buildroot
2024-06-07 17:05 ` [Buildroot] [PATCH 04/20 v2] utils/checkpackagelib: instruct shellcheck to follow included files Yann E. MORIN
2024-07-14  7:41   ` Arnout Vandecappelle via buildroot
2024-06-07 17:05 ` [Buildroot] [PATCH 05/20 v2] support/download/dl-wrapper: fix shellcheck errors Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 06/20 v2] support/download/cargo-post-process: fix shellcheck Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 07/20 v2] support/download: move tracing functions to helpers Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 08/20 v2] support/download: pass post-process options to post-process helper Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 09/20 v2] support/download: accept manifest path as a post-process option Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 10/20 v2] pakcage/pkg-cargo: use post-process opts to pass manifest path Yann E. MORIN
2024-07-14  8:29   ` Arnout Vandecappelle via buildroot
2024-06-07 17:05 ` [Buildroot] [PATCH 11/20 v2] package/pkg-python: use post-process opts to pass Cargo " Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 12/20 v2] package/python-bcrypt: " Yann E. MORIN
2024-06-07 22:04   ` James Hilliard
2024-06-08  8:49     ` Yann E. MORIN
2024-07-14  8:32     ` Arnout Vandecappelle via buildroot
2024-06-07 17:05 ` [Buildroot] [PATCH 13/20 v2] support/download: no longer support BR_CARGO_MANIFEST_PATH in cargo post-process Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 14/20 v2] docs/manual: rephrase end of vendoring section Yann E. MORIN
2024-07-14  8:45   ` Arnout Vandecappelle via buildroot
2024-06-07 17:05 ` [Buildroot] [PATCH 15/20 v2] package/pkg-cargo: add support for unlocked packages Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 16/20 v2] utils/checkpackagelib: add test for default _CARGO_LOCKED Yann E. MORIN
2024-06-07 17:05 ` [Buildroot] [PATCH 17/20 v2] RFC: package/anvil: new package Yann E. MORIN
2024-07-14  9:01   ` Arnout Vandecappelle via buildroot
2024-06-07 17:05 ` [Buildroot] [PATCH 18/20 v2] package/pkg-utils: accept pacakge-specific archive format version Yann E. MORIN
2024-06-07 17:06 ` [Buildroot] [PATCH 19/20 v2] package/pkg-cargo: allow unlocked packages to provide local Cargo.lock Yann E. MORIN
2024-06-07 19:49   ` Yann E. MORIN
2024-07-14  9:11   ` Arnout Vandecappelle via buildroot
2024-06-07 17:06 ` [Buildroot] [PATCH 20/20 v2] RFC: package/anvil: add " Yann E. MORIN
2024-07-14  9:13   ` Arnout Vandecappelle via buildroot
2024-07-14  8:59 ` [Buildroot] [PATCH 00/20 v2] support/download: allow downloading unlocked cargo packages (branch yem/cargo-unchained) Arnout Vandecappelle via buildroot

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.