From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Custom packages: downloading non-tarball packages
Date: Wed, 19 May 2010 12:21:40 +0200 [thread overview]
Message-ID: <20100519122140.51743f4e@surf> (raw)
In-Reply-To: <AANLkTin1HjC23NvIyQVP2yzNQIYGaNLUIa88NWWnWIKn@mail.gmail.com>
Hello Jonathan,
On Mon, 17 May 2010 21:42:30 -0400
Jonathan Bowman <bowmanjd@gmail.com> wrote:
> I am new to buildroot, but thanks to an elegant interface and clear
> documentation, it is serving my needs quite nicely.
Thank you :)
> However, I do have a question regarding best practices. I note that in
> the documentation it is not recommended to use the "manual" method in
> the makefiles of new packages.
Yes, correct.
> However, I do not see in the other methods how to deal with sources
> that are not tarballs. Some code (strangely) only comes in zip files,
> while other code I would prefer to download using svn, git, or
> another system.
>
> Is there a recommended practice for these scenarios?
It is true that today both package infrastructure (generic and
autotools) assume that the package is retrieved as a tarball from a
http or ftp server. These infrastructures could of course be extended
to handle svn, git or even zip files.
.zip files should be handled automatically just as we handle .tar.gz
and .tar.bz2 today. This would require some modifications in
package/Makefile.package.in in the $(BUILD_DIR)/%/.stamp_extracted
target.
For git/svn, we could probably act differently in the download stage if
the URL starts with git:// or svn://. But we need to define what the
semantic of <pkg>_VERSION, <pkg>_SOURCE, <pkg>_SITE will be, how this
should interact with the directory that caches downloads and how build
directories should be named.
Don't hesitate to make proposals, either in the form of patches or in
the form of small design documents.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2010-05-19 10:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 1:42 [Buildroot] Custom packages: downloading non-tarball packages Jonathan Bowman
2010-05-19 10:21 ` Thomas Petazzoni [this message]
2010-05-19 10:33 ` Jonathan Bowman
2010-06-01 16:10 ` Quotient Remainder
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=20100519122140.51743f4e@surf \
--to=thomas.petazzoni@free-electrons.com \
--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.