According to the documentation unarchive requires tar/unzip to work…
However it appears from my first attempt at using it that it requires GNU tar to work. Reading through the code it looks like it tries to determine what the archive format is and then supplies appropriate GNU tar options to the tar command in order to carry out its tasks.
I haven’t tested yet, but I suspect that I could provide it with an uncompressed tar file and have it work on AIX, but it certainly doesn’t work with a compressed one.
Does anyone have any thoughts on this? I’m not sure how you could improve the module though…
Since I'm already taking a look for issues with BSD directory detection, I
might take a stab at making sure it is 'POSIX tar' compliant, sadly I have
a lot of experience with that.
So it seems the big issue is having the compression support in tar (as GNU tar has), for other implementations we would need to always call the decompression program (gzip, etc).
I suppose it would be nice to test the detected tar command flags, if we detect a ‘z’ option, use it, if not - do this in 2 steps - uncomress and unarchive
We’re unlikely to want to run the extra steps to do the test all the time, and it would complicate the module considerably, I’d accept a PR to add a hint to the unarchive module though.
BTW, if we have other commands inside modules relying on GNU perhaps it will be good to have also a system level parameter that will affect all such modules.