Subject: | Tarball extraction problems using older Archive::Tar (pax extended headers) |
With P-1.1.3.tar.gz and P-1.1.4.tar.gz there are extraction problems with older Archive::Tar. I observed this on an old Debian squeeze system while building P using CPAN.pm, which is configured to use Archive::Tar for extraction (the default setting then).
"ptar -t -z -f P-1.1.4.tar.gz" shows the following output:
./PaxHeaders.72794/P-1.1.4
P-1.1.4/
P-1.1.4/PaxHeaders.72794/MANIFEST
P-1.1.4/MANIFEST
P-1.1.4/PaxHeaders.72794/lib
P-1.1.4/lib/
P-1.1.4/lib/PaxHeaders.72794/P.pm
P-1.1.4/lib/P.pm
P-1.1.4/PaxHeaders.72794/t
P-1.1.4/t/
P-1.1.4/t/PaxHeaders.72794/P.t
P-1.1.4/t/P.t
P-1.1.4/PaxHeaders.72794/Changes
P-1.1.4/Changes
P-1.1.4/PaxHeaders.72794/Makefile.PL
P-1.1.4/Makefile.PL
P-1.1.4/PaxHeaders.72794/LICENSE
P-1.1.4/LICENSE
P-1.1.4/PaxHeaders.72794/README
P-1.1.4/README
P-1.1.4/PaxHeaders.72794/META.yml
P-1.1.4/META.yml
P-1.1.4/PaxHeaders.72794/META.json
P-1.1.4/META.json
So during extraction extra "PaxHeaders" directories are created. The multiple toplevel directories are confusing CPAN.pm, and the build eventually fails.
This is an Archive::Tar problem, and it's described in https://rt.cpan.org/Ticket/Display.html?id=64038 and solved in Archive::Tar 1.74. But it would be good if you could find a way to build the distribution with a different tool or different options or maybe on an other OS.
Regards,
Slaven