On 2025-10-03 at 03:05:25 UTC-0400 (Fri, 3 Oct 2025 17:05:25 +1000)
Horst B Simon via macports-users <[email protected]>
is rumored to have said:
I am trying to install amavisd-new on an MacBook Pro 2010 with macOS
High Sierra.
It fails when it tries to install the dependency p5.34-net-patricia as
follow:
:info:extract Executing: cd
"/opt/local/var/macports/build/p5.34-net-patricia-f9e99c70/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Net-Patricia-1.23.tar.gz' |
/usr/bin/tar -xf -
:debug:extract system: cd
"/opt/local/var/macports/build/p5.34-net-patricia-f9e99c70/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Net-Patricia-1.23.tar.gz' |
/usr/bin/tar -xf -
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Error exit delayed from previous errors.
:info:extract Command failed: cd
"/opt/local/var/macports/build/p5.34-net-patricia-f9e99c70/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Net-Patricia-1.23.tar.gz' |
/usr/bin/tar -xf -
:info:extract Exit code: 1
:error:extract Failed to extract p5.34-net-patricia: command execution
failed
:debug:extract Error code: NONE
:debug:extract Backtrace: command execution failed
:debug:extract while executing
:debug:extract "$procedure $targetname"
Does this indicate the file is corrupted or any other error, have the
main.log attached.
That log shows a failure to download a built package (indeed, I see no
builds on the MacPorts server for darwin_13 through darwin_18) but
success getting the source, and the source package has the right
contents:
:notice:checksum ---> Verifying checksums for p5.34-net-patricia
:debug:checksum Executing org.macports.checksum (p5.34-net-patricia)
:info:checksum ---> Checksumming Net-Patricia-1.23.tar.gz
:debug:checksum Calculated (rmd160) is
9f9b15985263c2743ccc9c273249c1f0580eb0cf
:debug:checksum Correct (rmd160) checksum for Net-Patricia-1.23.tar.gz
:debug:checksum Calculated (sha256) is
3d23c44dfae73da027f02a2f52e5925b99d6f6ef4a005af6b3c65144319c7d52
:debug:checksum Correct (sha256) checksum for Net-Patricia-1.23.tar.gz
:debug:checksum Calculated (size) is 28761
:debug:checksum Correct (size) checksum for Net-Patricia-1.23.tar.gz
However, the unpacking of that archive fails:
:info:extract Executing: cd
"/opt/local/var/macports/build/p5.34-net-patricia-f9e99c70/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Net-Patricia-1.23.tar.gz' |
/usr/bin/tar -xf -
:debug:extract system: cd
"/opt/local/var/macports/build/p5.34-net-patricia-f9e99c70/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Net-Patricia-1.23.tar.gz' |
/usr/bin/tar -xf -
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Ignoring malformed pax extended attribute
:info:extract tar: Error exit delayed from previous errors.
:info:extract Command failed: cd
"/opt/local/var/macports/build/p5.34-net-patricia-f9e99c70/work" &&
/usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Net-Patricia-1.23.tar.gz' |
/usr/bin/tar -xf -
That is strange, as it implies that your '/usr/bin/tar' is an antique,
more so that I'd expect on High Sierra. I have confirmed that the
package from CPAN has the right checksums and confirmed that it unpacks
without errors using the 'tar' in Sonoma (which is actually
/usr/bin/bsdtar.)
One solution appears to be to get the packager to change how they
package the CPAN archive, as in this case opened by Ryan for a MacPorts
issue: https://github.com/leejo/CGI.pm/issues/264.
Another option is to install either the gnutar port or the libarchive
port and tweak the MacPorts code to use one of the the 'tar' variants
those install.
A quick scan shows 4 places in the MacPorts code where the explicit path
to tar occurs:
billbook:macports root# pwd
/opt/local/libexec/macports
billbook:macports root# grep -rn 'usr/bin/tar' ./
.//lib/port1.0/port_autoconf.tcl:70: variable tar_command
"/usr/bin/tar"
.//lib/port1.0/port_autoconf.tcl:71: variable tar_path "/usr/bin/tar"
.//lib/macports1.0/macports_autoconf.tcl:56: variable tar_command
"/usr/bin/tar"
.//lib/macports1.0/macports_autoconf.tcl:57: variable tar_path
"/usr/bin/tar"
The places where gnutar and libarchive ports drop tar-like binaries or
li=nks are as follows:
billbook:macports root# port contents gnutar libarchive |grep tar$
/opt/local/bin/gnutar
/opt/local/bin/gtar
/opt/local/libexec/gnubin/tar
/opt/local/bin/bsdtar
/opt/local/libexec/libarchive/bsdtar
Note: those bsdtar's (from libarchive) are the same version that works
for me with the Net-Patricia archive in Sonoma, so they should work for
you. There's a strong chance that you already have libarchive installed.
--
Bill Cole
[email protected] or [email protected]
(AKA @[email protected] and many *@billmail.scconsult.com
addresses)
Not Currently Available For Hire