Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#64109 closed defect (fixed)

libarchive opportunistically links with libb2.dylib

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jmroot (Joshua Root)
Port: libarchive

Description

If the libb2 port is installed and libarchive is built from source, it links with libb2.dylib:

% otool -L /opt/local/lib/libarchive.13.dylib         
/opt/local/lib/libarchive.13.dylib:
	/opt/local/lib/libarchive.13.dylib (compatibility version 19.0.0, current version 19.2.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current version 9.1.0)
	/opt/local/lib/liblzo2.2.dylib (compatibility version 3.0.0, current version 3.0.0)
	/opt/local/lib/liblzma.5.dylib (compatibility version 8.0.0, current version 8.5.0)
	/opt/local/lib/libzstd.1.dylib (compatibility version 1.0.0, current version 1.5.0)
	/opt/local/lib/liblz4.1.dylib (compatibility version 1.0.0, current version 1.9.3)
	/opt/local/lib/libcharset.1.dylib (compatibility version 2.0.0, current version 2.0.0)
	/opt/local/lib/libb2.1.dylib (compatibility version 2.0.0, current version 2.4.0)
	/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.8)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.12.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)

Please either add a dependency on port:libb2 or make the port not use libb2 even if it is present, and increase the revision.

Change History (6)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

In dc6e0304cb7152d5e9370be4934ba0e145390450/macports-ports (master):

Aseprite: Use libb2 in bundled libarchive build

Closes: #64103
See: #64109

comment:2 Changed 3 years ago by tobypeterson

Resolution: fixed
Status: assignedclosed

In af4cc2bdcfbb58bca9dfde07a4096b3c443ff7d2/macports-ports (master):

libarchive: add missing libb2 dependency

Closes: #64109

comment:3 Changed 3 years ago by jmroot (Joshua Root)

In f5fc44c11a3e48f715e36eb57d145b4590c24fdf/macports-ports (master):

libb2: add clang_dependency pg

Needed since af4cc2b.

See: #64109

comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jmroot added

Oh, I wasn't expecting that. How did [af4cc2bdcfbb58bca9dfde07a4096b3c443ff7d2/macports-ports] cause libarchive to become a clang dependency?

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

Well libarchive already was a clang dependency, so all its dependencies are also. The portgroup was added to libb2 as a new dependency of libarchive.

Last edited 3 years ago by jmroot (Joshua Root) (previous) (diff)

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Oh right. libb2 became a clang dependency. libarchive was already a clang dependency.

Note: See TracTickets for help on using tickets.