Re: some permissions failures with Archive::Tar::Wrapper

[email protected] (David Precious)
Newsgroups perl.cpan.testers.discuss
Message-ID <[email protected]>
On Wed, 8 May 2024 12:40:24 +1000
Tony Cook <[email protected]> wrote:

> It's possible his VM is using the BusyBox tar (the default on Alpine)
> instead of GNU tar which may make a difference.

I'd say that's very likely the problem.

Having the Archive::Tar::Wrapper tests output a bit of diagnostic info
at the start of a test run would probably help, so you can see what tar
it's running against and have a chance of reproducing it yourself.

In fact, it already sort-of does, but using `note()` which you won't
see in the test output if running via a test harness, rather than
`diag()` which you will see - flipping to diag() would help:
https://github.com/glasswalk3r/archive-tar-wrapper-perl/pull/26


`_acquire_tar_info` already runs `tar --version` to find out what
version it is (which is what's output above)...

From a quick Google, it looks like some busybox tar versions will return
something useful, e.g. `tar (busybox) 1.28.4`

On an old Unifi device I just tried it on, though, I get an error with
exit code 1:

  Workshop-BZ.v4.3.28# tar --version
  tar: unrecognized option: version
  BusyBox v1.25.1 () multi-call binary.
  Workshop-BZ.v4.3.28# echo $?
  1

If you get a release out with the test showing the diagnostic output,
you'll at least know exactly what it's running against and have a
fighting chance of reproducing it yourself, and seeing whether it's a
problem in the Archive::Tar::Wrapper code, or an oddity of that BusyBox
tar binary and just need to skip that test.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.