[Buildroot] [PATCH v3 2/5] package: add generic support for lz archives

Arnout Vandecappelle arnout at mind.be
Fri Feb 17 07:43:07 UTC 2017



On 16-02-17 23:11, Yann E. MORIN wrote:
> Peter, All,
> 
> On 2017-02-16 23:03 +0100, Peter Korsgaard spake thusly:
>>>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
>>  > Actually, there is a use-case for being able to specify some of those,
>>  > at least the downloaders: git, wget, svn, scp...
>>
>>  > I use a script that is called in lieue of each downloader:
>>
>>  >     BR2_WGET="/path/to/wrapper wget --passive-ftp -nd -t 3"
>>  >     BR2_GIT="/path/to/wrapper git"
>>  >     and so on...
>>
>>  > That script is responsible for memorising, for each package, whether it
>>  > was downloaded from the primary mirror, the official site, or the backup
>>  > mirror, then acts according to where the package was downloaded:
> [--SNIP--]
>> Nice, but presumably you could also simply create a directory with
>> wget/git/svn/.. symlinks to your wrapper and prepend that to your path
>> before running buildroot, and then change the wrapper to do its stuff
>> and call further in the path for the real tool, similar to the recently
>> added date wrapper for reproducable builds?
> 
> Indeed, that would be doable, if a little bit more involved in the
> wrapper. But not something overly complex either.
> 
> So, overriding the downloaders is in fact not strictly required.

 Actually, for the downloaders there *are* useful options to override, e.g.
proxies, authentication, certificate stores, ... The configuration variables are
not the most convenient way to use those (especially since you may need to use
different options for different packages, e.g. internal vs. external), but it's
the only thing we have now. Apart from wrapper scripts, of course.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF



More information about the buildroot mailing list