All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Use frozen flag for cargo build
@ 2023-07-31  9:44 frederic.martinsons
  2023-07-31  9:44 ` [PATCH 1/3] cargo.bbclass: Use --frozen flag for cargo operations frederic.martinsons
                   ` (3 more replies)
  0 siblings, 4 replies; 21+ messages in thread
From: frederic.martinsons @ 2023-07-31  9:44 UTC (permalink / raw)
  To: openembedded-core; +Cc: Randy.MacLeod

From: Frederic Martinsons <frederic.martinsons@gmail.com>

This patch series force the usage of --frozen instead of --offline during cargo build.
This has the advantage to be sure that Cargo.lock file will not be modified.
Moreover, raise a clear error when Cargo.lock is not present.
For this to work, we must modify ourself the Cargo.lock before building
in case there are git repo that have been patched.

The last commit is to handle the specific case of rust-hello-world recipe.
If this recipe is no more necessary, we can drop this last patch.

The following changes since commit 9b5b850d6a6982bb8ff14dcfbb6769b293638293:

  libarchive: ignore CVE-2023-30571 (2023-07-30 12:00:13 +0100)

are available in the Git repository at:

  https://gitlab.com/fmartinsons/openembedded-core 15104-check-cargo-lock

Frederic Martinsons (3):
  cargo.bbclass: Use --frozen flag for cargo operations
  cargo_common.bbclass: Handle Cargo.lock modifications for git
    dependencies
  cargo.bbclass: Offer a way to use --offline instead of --frozen

 meta/classes-recipe/cargo.bbclass             |  9 +++-
 meta/classes-recipe/cargo_common.bbclass      | 43 +++++++++++++++++++
 .../rust-example/rust-hello-world_git.bb      |  2 +
 3 files changed, 53 insertions(+), 1 deletion(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 21+ messages in thread
* [PATCH 0/3] Use frozen flag for cargo build
@ 2023-08-02 13:16 frederic.martinsons
  2023-08-02 15:06 ` Frédéric Martinsons
  0 siblings, 1 reply; 21+ messages in thread
From: frederic.martinsons @ 2023-08-02 13:16 UTC (permalink / raw)
  To: openembedded-core; +Cc: Frederic Martinsons

From: Frederic Martinsons <frederic.martinsons@gmail.com>

This patch series force the usage of --frozen instead of --offline during cargo build.
This has the advantage to be sure that Cargo.lock file will not be modified.
Moreover, raise a clear error when Cargo.lock is not present.
For this to work, we must modify ourself the Cargo.lock before building
in case there are git repo that have been patched.

The last commit was for removing rust-hello-world, patch to the
documentation project will follow.

The following changes since commit 692e414aed5313ff275b69e93179aa7c559700f3:

  ffmpeg: Fix wrong code found with gas/2.41 (2023-08-01 09:49:14 +0100)

are available in the Git repository at:

  https://gitlab.com/fmartinsons/openembedded-core 15104-check-cargo-lock

Frederic Martinsons (3):
  cargo.bbclass: Use --frozen flag for cargo operations
  cargo_common.bbclass: Handle Cargo.lock modifications for git
    dependencies
  drop rust-hello-world recipe

 meta/classes-recipe/cargo.bbclass             |  7 +++-
 meta/classes-recipe/cargo_common.bbclass      | 41 +++++++++++++++++++
 meta/conf/distro/include/maintainers.inc      |  1 -
 meta/lib/oeqa/runtime/cases/rust.py           | 12 ------
 .../packagegroup-core-tools-testapps.bb       |  3 --
 .../rust-hello-world/0001-enable-LTO.patch    | 24 -----------
 .../rust-example/rust-hello-world_git.bb      | 19 ---------
 7 files changed, 47 insertions(+), 60 deletions(-)
 delete mode 100644 meta/recipes-extended/rust-example/rust-hello-world/0001-enable-LTO.patch
 delete mode 100644 meta/recipes-extended/rust-example/rust-hello-world_git.bb

-- 
2.34.1



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

end of thread, other threads:[~2023-08-02 15:06 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-31  9:44 [PATCH 0/3] Use frozen flag for cargo build frederic.martinsons
2023-07-31  9:44 ` [PATCH 1/3] cargo.bbclass: Use --frozen flag for cargo operations frederic.martinsons
2023-07-31  9:44 ` [PATCH 2/3] cargo_common.bbclass: Handle Cargo.lock modifications for git dependencies frederic.martinsons
2023-08-01  8:44   ` [OE-core] " Richard Purdie
2023-08-01  9:02     ` Frédéric Martinsons
2023-07-31  9:44 ` [PATCH 3/3] cargo.bbclass: Offer a way to use --offline instead of --frozen frederic.martinsons
2023-08-01  8:46   ` [OE-core] " Richard Purdie
2023-08-01  9:00     ` Frédéric Martinsons
2023-08-01  9:07       ` Richard Purdie
2023-08-01  9:20         ` Frédéric Martinsons
2023-08-01  9:38           ` Richard Purdie
2023-08-01  9:41             ` Alexander Kanavin
2023-08-01  9:55               ` Frédéric Martinsons
2023-08-01 10:01                 ` Richard Purdie
2023-08-01 10:04                   ` Alex Kiernan
2023-08-01 11:33                     ` Frédéric Martinsons
2023-07-31 17:48 ` [OE-core] [PATCH 0/3] Use frozen flag for cargo build Alexander Kanavin
2023-08-01  9:09   ` Frédéric Martinsons
2023-08-01  9:42     ` Alexander Kanavin
  -- strict thread matches above, loose matches on Subject: below --
2023-08-02 13:16 frederic.martinsons
2023-08-02 15:06 ` Frédéric Martinsons

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.