* [Buildroot] Source download overwrite
@ 2014-11-14 9:24 Mathieu Slabbinck
2014-11-14 13:14 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Slabbinck @ 2014-11-14 9:24 UTC (permalink / raw)
To: buildroot
Hi,
I'm looking for a way to overwrite the internal download system of buidroot
for a specific homebrew package.
The goal of the package is to download multiple files and install them
accordingly.
LIBFOO_SITE contains the common part of the download link. For example
ftp://myftpserver.mydomain.com/libfoo/.
Then I'd like to have a pre-install hook that downloads some specific files
from that url, for example
- ftp://myftpserver.mydomain.com/libfoo/file1.deb
- ftp://myftpserver.mydomain.com/libfoo/file2.rpm
- ftp://myftpserver.mydomain.com/libfoo/file3.someExtension
This all works fine, but the package still tries to fetch
ftp://myftpserver.mydomain.com/libfoo/.tar.gz because of the internal way
of working of buildroot.
So how can I overwrite this method or disable it?
Kind regards,
Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141114/a6b7c01b/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Source download overwrite
2014-11-14 9:24 [Buildroot] Source download overwrite Mathieu Slabbinck
@ 2014-11-14 13:14 ` Thomas Petazzoni
2014-11-14 14:27 ` Mathieu Slabbinck
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-11-14 13:14 UTC (permalink / raw)
To: buildroot
Dear Mathieu Slabbinck,
On Fri, 14 Nov 2014 10:24:58 +0100, Mathieu Slabbinck wrote:
> Hi,
>
> I'm looking for a way to overwrite the internal download system of buidroot
> for a specific homebrew package.
>
> The goal of the package is to download multiple files and install them
> accordingly.
> LIBFOO_SITE contains the common part of the download link. For example
> ftp://myftpserver.mydomain.com/libfoo/.
>
> Then I'd like to have a pre-install hook that downloads some specific files
> from that url, for example
> - ftp://myftpserver.mydomain.com/libfoo/file1.deb
> - ftp://myftpserver.mydomain.com/libfoo/file2.rpm
> - ftp://myftpserver.mydomain.com/libfoo/file3.someExtension
>
> This all works fine, but the package still tries to fetch
> ftp://myftpserver.mydomain.com/libfoo/.tar.gz because of the internal way
> of working of buildroot.
>
> So how can I overwrite this method or disable it?
Why don't you simply use the <pkg>_EXTRA_DOWNLOADS variable? It allows
you to download additional files from the same site, which seems to be
exactly what you're trying to achieve.
LIBFOO_SITE = ftp://myftpserver.mydomain.com/libfoo/
LIBFOO_SOURCE = <one file>
LIBFOO_EXTRA_DOWNLOADS = <another file> <yet another file>
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Source download overwrite
2014-11-14 13:14 ` Thomas Petazzoni
@ 2014-11-14 14:27 ` Mathieu Slabbinck
2014-11-14 14:33 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Slabbinck @ 2014-11-14 14:27 UTC (permalink / raw)
To: buildroot
Thomas,
thanks for pointing this out. Was looking for this kind of variable but
didn't really find any docs about it.
Managed to get it working now.
Thanks!
Mathieu
2014-11-14 14:14 GMT+01:00 Thomas Petazzoni <
thomas.petazzoni@free-electrons.com>:
> Dear Mathieu Slabbinck,
>
> On Fri, 14 Nov 2014 10:24:58 +0100, Mathieu Slabbinck wrote:
> > Hi,
> >
> > I'm looking for a way to overwrite the internal download system of
> buidroot
> > for a specific homebrew package.
> >
> > The goal of the package is to download multiple files and install them
> > accordingly.
> > LIBFOO_SITE contains the common part of the download link. For example
> > ftp://myftpserver.mydomain.com/libfoo/.
> >
> > Then I'd like to have a pre-install hook that downloads some specific
> files
> > from that url, for example
> > - ftp://myftpserver.mydomain.com/libfoo/file1.deb
> > - ftp://myftpserver.mydomain.com/libfoo/file2.rpm
> > - ftp://myftpserver.mydomain.com/libfoo/file3.someExtension
> >
> > This all works fine, but the package still tries to fetch
> > ftp://myftpserver.mydomain.com/libfoo/.tar.gz because of the internal
> way
> > of working of buildroot.
> >
> > So how can I overwrite this method or disable it?
>
> Why don't you simply use the <pkg>_EXTRA_DOWNLOADS variable? It allows
> you to download additional files from the same site, which seems to be
> exactly what you're trying to achieve.
>
> LIBFOO_SITE = ftp://myftpserver.mydomain.com/libfoo/
> LIBFOO_SOURCE = <one file>
> LIBFOO_EXTRA_DOWNLOADS = <another file> <yet another file>
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141114/2283781e/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Source download overwrite
2014-11-14 14:27 ` Mathieu Slabbinck
@ 2014-11-14 14:33 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-11-14 14:33 UTC (permalink / raw)
To: buildroot
Dear Mathieu Slabbinck,
On Fri, 14 Nov 2014 15:27:43 +0100, Mathieu Slabbinck wrote:
> Thomas,
>
> thanks for pointing this out. Was looking for this kind of variable but
> didn't really find any docs about it.
I just checked, and at
http://buildroot.org/downloads/manual/manual.html#_infrastructure_for_packages_with_specific_build_systems,
under the section "16.5.2. generic-package reference", we do document
the EXTRA_DOWNLOADS variable:
"""
LIBFOO_EXTRA_DOWNLOADS lists a number of additional files that
Buildroot should download from LIBFOO_SITE in addition to the main
LIBFOO_SOURCE (which usually is a tarball). Buildroot will not do
anything with those additional files, except download files: it will be
up to the package recipe to use them from $(BR2_DL_DIR).
"""
Though I agree the manual is now very long, and it is easy to overlook
certain possibilities provided by Buildroot.
> Managed to get it working now.
Cool!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-14 14:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 9:24 [Buildroot] Source download overwrite Mathieu Slabbinck
2014-11-14 13:14 ` Thomas Petazzoni
2014-11-14 14:27 ` Mathieu Slabbinck
2014-11-14 14:33 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox