[Buildroot] [PATCH 1/1] package/libarchive: add optional support for bzip2

Arnout Vandecappelle arnout at mind.be
Sat Feb 20 23:45:54 UTC 2016


On 02/20/16 14:49, Bernd Kuhls wrote:
> Am Wed, 10 Feb 2016 22:19:07 +0100 schrieb Arnout Vandecappelle:
> 
>>  No --with-bz2lib? If there is a good reason, mention it in the commit
>>  log.
> 
> Hi Arnout,
> 
> libarchive always checks for bzip2 unless --without-bz2lib is used:
> https://github.com/libarchive/libarchive/blob/master/configure.ac#L300
> 
> Therefore I see no need for --with-bz2lib and I also should not have 
> added --with-lzma as well, I will send a patch removing it along with v2 
> of this patch explaining why --with-bz2lib is not needed.

 We prefer to have both an explicit enable and disable (or with and without)
because:

- it makes it simpler in case the default changes after a version bump;

- it makes it easier for other people to understand that the right thing is done
(no need to check in configure what the default is);

- AFAIK the typical --enable/--with will give an error if the dependency is not
found, which gives an extra safety net;

- we do it like this in other places, it's nice to see the same pattern everywhere.


 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