[Scons-dev] packaging tests: tar; and an xz question
Bill Deegan
bill at baddogconsulting.com
Thu Sep 6 12:52:05 EDT 2018
bz2= test.where_is('bzip2')
...
On Thu, Sep 6, 2018 at 12:40 PM Mats Wichmann <mats at wichmann.us> wrote:
> On 09/06/2018 09:25 AM, Bill Deegan wrote:
> > So it sounds like if there's native windows tar, then there's no need to
> > check for bzip2 executable for windows to be able to handle .tar.bz2
> files?
>
> no, if there's native windows tar it tries to use bzip2 which doesn't
> exist, and the test fails. that's why it never failed before... it never
> found tar before.
>
> so rather, I think in this case we do have to check for bzip2 (we don't
> now). it's less likely to be missing on Linux, but a quick experiment
> shows if I manually get rid of bzip2, tar fails the same way:
>
> # tar -tjf glibc-2.9.tar.bz2
> tar (child): bzip2: Cannot exec: No such file or directory
> tar (child): Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error is not recoverable: exiting now
>
> > If that's the case then the test should be updated to figure out which
> tar
> > and if bzip2 is indeed needed to run skip otherwise.
>
> would a check for bzip2 look like this?
>
> bz2 = test.Environment().WhereIs('bzip2')
>
> looks like "figure out which tar" is not needed, just figure out if
> bzip2 is there.
>
> >
> > Regarding xz, pull requests welcome.. ;)
> >
> > -Bill
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20180906/2edf66a0/attachment-0001.html>
More information about the Scons-dev
mailing list