All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 2/5] package: add generic support for lz archives
Date: Thu, 16 Feb 2017 09:25:55 +0100	[thread overview]
Message-ID: <19a785a4-beaf-92dd-c53b-6e81dde24c7d@mind.be> (raw)
In-Reply-To: <20170216083206.2064b783@free-electrons.com>



On 16-02-17 08:32, Thomas Petazzoni wrote:
> Hello,
> 
> On Wed, 15 Feb 2017 23:48:13 +0100, Arnout Vandecappelle wrote:
> 
>>>> +DEPENDENCIES_HOST_PREREQ += host-lzip
>>>> ++EXTRACTOR_DEPENDENCY_PRECHECKED_EXTENSIONS += .lz
>>>> +LZCAT = $(HOST_DIR)/usr/bin/lzip -d -c  
>>>
>>> But here in the case where we are building our own host-lzip, we
>>> completely ignore BR2_LZCAT, and use a hardcoded
>>> $(HOST_DIR)/usr/bin/lzip -d -c.  
>>
>>  Er, yes of course: if BR2_LZCAT doesn't work, then we use the Buildroot
>> internal lzcat. What else did you expect?
> 
> BR2_LZCAT does not specify only the path to the lzcat program, but also
> its options. And we completely ignore those custom options if the
> lzcat built by Buildroot is used.

 It is possible to provide extra options, but these are completely useless.
Well, actually, lzcat is the first one with an option that could be useful:
--threads, to decompress over several cores. Except that --threads isn't
implemented yet for decompression. So, although it is possible to add extra
options in BR2_LZCAT, it just makes no sense.

 Regards,
 Arnout

> 
>>  As I understand it, these options are provided in case you have an old build
>> host and have locally installed these tools in e.g. your homedir. However, I
>> wouldn't mind getting rid of these options completely, and instead require that
>> they are in PATH.
>>
>>  True, they could also be used to pass alternative options to the extractors,
>> but I don't see much point of that. Or they could be used to call it in an
>> alternative form, e.g. "zcat" instead of "gzip -d -c", or "busybox gzip -d -c".
>> But I also don't see much point of that.
>>
>>  While we're on the subject, I don't see much point of BR2_TAR_OPTIONS either.
>>
>>  But of course, it's not as if keeping these things is such a burden. So I at
>> least won't spend time in removing them.
> 
> See above why it doesn't make sense to me: BR2_LZCAT allows to specify
> not only the path/name of the lzip program, but also its options. And
> they get completely ignored when host-lzip is built by Buildroot.
> 
> Which means one person doing the build on a machine with lzip installed
> locally will have BR2_LZCAT taken into account, and another person
> doing the same build on a different machine that does not have lzip
> installed will not have BR2_LZCAT taken into account.
> 
> This is definitely not very consistent IMO.
> 
> Thomas
> 

-- 
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

  reply	other threads:[~2017-02-16  8:25 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-12 20:15 [Buildroot] [PATCH v3 1/5] package: refactor listing of extractor dependencies Baruch Siach
2017-02-12 20:15 ` [Buildroot] [PATCH v3 2/5] package: add generic support for lz archives Baruch Siach
2017-02-14 13:43   ` Thomas De Schampheleire
2017-02-15 21:15   ` Thomas Petazzoni
2017-02-15 22:48     ` Arnout Vandecappelle
2017-02-16  7:32       ` Thomas Petazzoni
2017-02-16  8:25         ` Arnout Vandecappelle [this message]
2017-02-16  8:34           ` Thomas Petazzoni
2017-02-16 17:24             ` Arnout Vandecappelle
2017-02-16 17:41       ` Yann E. MORIN
2017-02-16 22:03         ` Peter Korsgaard
2017-02-16 22:11           ` Yann E. MORIN
2017-02-17  7:43             ` Arnout Vandecappelle
2017-02-17 17:07               ` Yann E. MORIN
2017-02-16 22:08       ` Peter Korsgaard
2017-02-16  8:36     ` Thomas De Schampheleire
2017-02-16  8:40       ` Thomas Petazzoni
2017-02-16 10:24         ` Thomas De Schampheleire
2017-02-21 21:55   ` [Buildroot] Bug in "package: add generic support for lz archives" ? Thomas Petazzoni
2017-02-22  5:32     ` Baruch Siach
2017-02-22  8:03       ` Thomas Petazzoni
2017-02-12 20:15 ` [Buildroot] [PATCH v3 3/5] ed: use generic extract command Baruch Siach
2017-02-12 20:15 ` [Buildroot] [PATCH v3 4/5] ddrescue: " Baruch Siach
2017-02-12 20:15 ` [Buildroot] [PATCH v3 5/5] ocrad: " Baruch Siach
2017-02-14 13:42 ` [Buildroot] [PATCH v3 1/5] package: refactor listing of extractor dependencies Thomas De Schampheleire
2017-02-14 21:39 ` Thomas Petazzoni
2017-02-15  7:04   ` Baruch Siach
2017-02-15 21:13 ` Thomas Petazzoni

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=19a785a4-beaf-92dd-c53b-6e81dde24c7d@mind.be \
    --to=arnout@mind.be \
    --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.