Opened 5 years ago

Closed 5 years ago

#59127 closed defect (duplicate)

openssl @1.1.1d_0 fails to install due to extraction error with libarchive @3.3.3 installed

Reported by: jhi Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.0
Keywords: Cc:
Port: libarchive

Description

$ port install openssl
--->  Computing dependencies for openssl
--->  Activating openssl @1.1.1d_0
Error: Failed to activate openssl: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl/openssl/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port openssl failed
$ port version
Version: 2.6.0
$ sw_vers -productVersion 
10.14.6

The main.log I will attach but here seems to be the gist of it: the openssl archive extracts but with errors (, and therefore bsdtar exits with an error (bsdtar: Error exit delayed from previous errors.), and the errors seem to be about xattr extraction:

...
:info:activate bsdtar: Error exit delayed from previous errors.
:info:activate Command failed: /usr/bin/bzip2 -d -c /opt/local/var/macports/software/openssl/openssl-1.1.1d_0.darwin_18.x86_64.tbz2 | ( bsdtar -xvp --hfsCompression -f - )
...

and some sample errors:

:info:activate x ./opt/local/share/man/man5/config.5ssl.gz: Cannot restore xattr: com.apple.ResourceFork at 272 pos 7337 bytes
:info:activate x ./opt/local/share/man/man3/DH_new_by_nid.3ssl.gz: Cannot restore xattr:com.apple.decmpfs

About 3700 of the 8000 files in the archive have these "Cannot restore" errors, but they all seem to happen on the man pages.

$ which bsdtar
/opt/local/bin/bsdtar
$ bsdtar --version
bsdtar 3.3.3 - libarchive 3.3.3 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.8.3 libzstd/1.3.8 
$ /usr/bin/bzip2 --version
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.
...

Attachments (1)

main.log (4.3 MB) - added by jhi 5 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl/openssl/main.log

Change History (3)

Changed 5 years ago by jhi

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_openssl/openssl/main.log

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Looks like your libarchive port is outdated.

% /opt/local/bin/bsdtar --version
bsdtar 3.4.0 - libarchive 3.4.0 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.9.1 libzstd/1.4.3

Try updating it.

comment:2 Changed 5 years ago by jmroot (Joshua Root)

Port: libarchive added; openssl removed
Resolution: duplicate
Status: newclosed
Summary: openssl @1.1.1d_0 fails to install due to extraction erroropenssl @1.1.1d_0 fails to install due to extraction error with libarchive @3.3.3 installed
Note: See TracTickets for help on using tickets.