Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Jesse Van Gavere <jesseevg@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] Forcing fresh clone/checkout of custom linux/uboot SVN urls
Date: Tue, 20 Sep 2022 17:11:49 +0200	[thread overview]
Message-ID: <20220920151149.GE1127102@scaer> (raw)
In-Reply-To: <CAMdwsN8FyQD4ofHfVgorNvX4kBDArfK6t9dBqgG=3xHrkFOuag@mail.gmail.com>

Jesse, All,

On 2022-09-20 16:43 +0200, Jesse Van Gavere spake thusly:
> I wanted to gauge for interest (or if I could be given the opportunity
> to) for adding an option to buildroot that would instead of making a
> tarball of a custom version, force a new checkout to be done rather
> than an extraction of an existing tarball. (along with the option of
> making it a checkout rather than an export as it does initially)
> My use case for this is the following:
> We have our own linux/uboot (svn) repositories, however we currently
> have to modify the linux/uboot makefiles because trunk development for
> us is not possible if we point to the trunk url of our linux/uboot
> repository and then use "HEAD" as the custom repo_version. It will do
> an export once, put it in the download folder and extract that later
> on.

Please, look at my proposal about the notion of "transient downloads":

    https://lore.kernel.org/buildroot/20200930173030.2461586-1-yann.morin.1998@free.fr/

IIRC, the conclusion was that the implemetation was OK (maybe barring a
few minor details, I can't remember exactly), but there was no consensus
on the wording to describe that feature in the manual and in the commit
log.

Since I did not agree on changing the wording, and since noone picked it
up to rewrite it, it was not applied.

I ultimately believe this transient stuff was a mis-feature and a bad
idea to begin with, and would be better served by people providing the
appropriate FOO_OVERIDE_SRCDIR in their local.mk, and/or have their CI
setups actually do the checkouts of the appropriate components and
set corresponding FOO_OVERRIDE_SRCDIR before spawning the build.

I don't think adding new features for which we already have a technical
superior solution, is a good addition to Buildroot.

Finally, using a branch name in FOO_VERSION is also a very bad idea, as
this makes the build non-reproducible, and non-predictable. See the
manual for more explanations, section 18.6.2. generic-package reference
about LIBFOO_VERSION:
    https://buildroot.org/downloads/manual/manual.html#generic-package-reference

Regards,
Yann E. MORIN.

> We would have to remove the tarball in the download folder for every
> change in our trunk repos and because it's an export we also can't
> develop on it.
> My idea was to add 2 new config options that are enabled if
> KERNEL_CUSTOM_SVN or UBOOT_COSTOM_SVN is selected, one that would
> override the extract command so it won't look at the download folder,
> and another one that would make it perform a checkout instead of an
> extract.
> Is this something I could add to the main buildroot or do I best just
> keep this inside our own buildroot repo?
> 
> Regards,
> Jesse
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

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

      reply	other threads:[~2022-09-20 15:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-20 14:43 [Buildroot] Forcing fresh clone/checkout of custom linux/uboot SVN urls Jesse Van Gavere
2022-09-20 15:11 ` Yann E. MORIN [this message]

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=20220920151149.GE1127102@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=jesseevg@gmail.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