From: Luca Ceresoli <list@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/RFC] Download sources from Git (and more)
Date: Tue, 13 Jul 2010 22:49:34 +0200 [thread overview]
Message-ID: <4C3CD15E.8010607@lucaceresoli.net> (raw)
In-Reply-To: <20100713200820.1a5fcc60@surf>
Thomas Petazzoni wrote:
> Hello,
>
> On Tue, 13 Jul 2010 15:43:39 +0100
> Quotient Remainder <quotientvremainder@gmail.com> wrote:
>
>
>> - Do you see any way of making it possible to use the clone as the
>> actual working copy used by buildroot? That is, if I clone a
>> repository (as opposed to archive) and then want to make changes, I
>> can edit the source and build/test the change in-place (in
>> output/build/package/) . As it stands with this patch set, I think it
>> would be necessary to make a change in the source in
>> $(PKG_NAME).git/, commit the change, note the new version, change the
>> package version in package/Makefile to the same and make will then
>> copy an entire snapshot to a new build-dir/pkg-newversion/.
>>
>
> I understand this need: use Buildroot not only as an integration system
> to produce the final system, but also during the development of the
> application. For the moment, our recommended practice for this is to
> work on the application outside of Buildroot, as Buildroot is not
> well-suited for doing this.
>
> Adding such a capability to Buildroot requires a fairly wide
> brainstorming and discussion to propose a global design that solves
> this question. What do we want to achieve ? What is the exact use
> case ? How all development steps are going to work ?
>
I understand your point, and I think the threads seen so far are a good
starting point for this discussion.
> For that reason, I think Maxime's patch is saner: it adds the simple
> capability of downloading a package from GIT/SVN, without changing the
> existing Buildroot workflow.
>
After reviewing once again the two patches, I've come to the conclusion
that they are quite similar apart from a matter of code style.
Practically I don't think they have big pros/cons over each other.
Creating a tarball would be trivial to add to my patches.
Enabling `git pull` in Maxime's code would probably be easy if the
clone were put in a suitable directory.
Supporting more complex workflows (such as working copies within
the buildroot tree, or integrating git submodules) would require a
deeper analysis and substantial work in both cases.
The choice of which download helper to use is more readable in
Maxime's code (case-based) but I suspect is more efficient in my
macro-based system which is also more uniform with the rest of
Makefile.package.in.
That said, I think both approaches are sane enough (after the few
discussed improvements) to be applied. I'd like to hear the
maintainer's opinion about this choice. The only one that I wouldn't
agree with is to reject both.
Luca
next prev parent reply other threads:[~2010-07-13 20:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-12 21:30 [Buildroot] [PATCH/RFC] Download sources from Git (and more) Luca Ceresoli
2010-07-12 21:30 ` [Buildroot] [PATCH 1/5] packages: pass the package name to the DOWNLOAD macro Luca Ceresoli
2010-07-12 21:30 ` [Buildroot] [PATCH 2/5] packages: allow different download protocols, with auto detection Luca Ceresoli
2010-07-12 21:42 ` Michael S. Zick
2010-07-12 21:30 ` [Buildroot] [PATCH 3/5] Unleash all of git's power: not only clones Luca Ceresoli
2010-07-12 21:30 ` [Buildroot] [PATCH 4/5] packages: add DOWNLOAD_GIT Luca Ceresoli
2010-07-12 21:30 ` [Buildroot] [PATCH 5/5] FOR TESTING ONLY: Add a GIT-downloaded test package Luca Ceresoli
2010-07-13 14:43 ` [Buildroot] [PATCH/RFC] Download sources from Git (and more) Quotient Remainder
2010-07-13 18:08 ` Thomas Petazzoni
2010-07-13 20:49 ` Luca Ceresoli [this message]
2010-07-14 12:28 ` Quotient Remainder
2010-07-13 20:14 ` Luca Ceresoli
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=4C3CD15E.8010607@lucaceresoli.net \
--to=list@lucaceresoli.net \
--cc=buildroot@busybox.net \
/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 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.