Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Thomas Devoogdt <thomas@devoogdt.com>
Cc: eric.le.bihan.dev@free.fr, Julien Olivain <ju.o@free.fr>,
	buildroot@buildroot.org, Romain Naour <romain.naour@smile.fr>,
	guillaume.chaye@zeetim.com, fontaine.fabrice@gmail.com
Subject: Re: [Buildroot] [PATCH v6 1/3] package/pkg-cargo: add support to bundle a custom Cargo.lock file
Date: Thu, 1 Jan 2026 17:36:30 +0100	[thread overview]
Message-ID: <20260101173630.10079d1b@windsurf> (raw)
In-Reply-To: <20251019064503.2583945-1-thomas@devoogdt.com>

Hello Thomas,

Adding Buildroot maintainers in Cc.

On Sun, 19 Oct 2025 08:45:01 +0200
Thomas Devoogdt <thomas@devoogdt.com> wrote:

> E.g. https://github.com/lu-zero/cargo-c/releases/tag/v0.10.15
> 
> Cargo-c releases a separate Cargo.lock file, but doesn't bundle
> one in its normal .tar.gz code source target.
> 
> We can't use extra downloads/patches/... as cargo is a vendored
> package, which is done quite early in the chain.
> 
> This patch allows us to define a custom Cargo.lock source.
> Both a local bundled file and remote (only wget) file can be linked.
> 
> Usage:
> 
> <PKG>_CARGO_LOCK_FILE = <PKG>_PKGDIR/Cargo.lock
> 
> <PKG>_CARGO_LOCK_FILE = https://.../Cargo.lock
> 
> Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>

Thanks for this patch.

I understand the need, but I am wondering if we shouldn't craft a more
generic solution, such as providing the ability to apply patches
*before* the vendoring step. This would allow many more things than
just adding the Cargo.lock in this case: it would allow to fix issues
that exist prior to vendoring, which is something that has already
popped up a few times (I don't remember if it was for Cargo packages or
Go packages though).

The one thing I'm not sure about is (of course) naming. Should we have
something like *.patch-prevendoring ? Or a dedicated variable in the
.mk file ? Or what other convention ?

Feedback from the other maintainers on this topic?

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  parent reply	other threads:[~2026-01-01 16:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-30  8:07 [Buildroot] [PATCH v5 1/3] package/pkg-cargo: add support to bundle a custom Cargo.lock file Thomas Devoogdt
2025-09-30  8:07 ` [Buildroot] [PATCH v5 2/3] package/cargo-c: add new package Thomas Devoogdt
2025-09-30  8:07 ` [Buildroot] [PATCH v5 3/3] package/librsvg: bump version to 2.61.1 Thomas Devoogdt
2025-10-11  8:56 ` [Buildroot] [PATCH v5 1/3] package/pkg-cargo: add support to bundle a custom Cargo.lock file Thomas Devoogdt
2025-10-19  6:45   ` [Buildroot] [PATCH v6 " Thomas Devoogdt
2025-10-19  6:45     ` [Buildroot] [PATCH v6 2/3] package/cargo-c: add new package Thomas Devoogdt
2025-10-19  6:45     ` [Buildroot] [PATCH v6] package/librsvg: bump version to 2.61.1 Thomas Devoogdt
2026-01-01 17:00       ` Thomas Petazzoni via buildroot
2026-01-03 11:20         ` Thomas Devoogdt
2026-01-01 16:36     ` Thomas Petazzoni via buildroot [this message]
2026-02-04 14:10       ` [Buildroot] [PATCH v7 1/2] package/pkg-cargo: add support for prevendored Cargo.lock Thomas Devoogdt
2026-02-04 14:10         ` [Buildroot] [PATCH v7 2/2] package/cargo-c: add new package Thomas Devoogdt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260101173630.10079d1b@windsurf \
    --to=buildroot@buildroot.org \
    --cc=eric.le.bihan.dev@free.fr \
    --cc=fontaine.fabrice@gmail.com \
    --cc=guillaume.chaye@zeetim.com \
    --cc=ju.o@free.fr \
    --cc=romain.naour@smile.fr \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=thomas@devoogdt.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox