Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61854 closed defect (fixed)

starship: missing lib dependencies

Reported by: amake (Aaron Madlon-Kay) Owned by: herbygillot (Herby Gillot)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: herbygillot (Herby Gillot)
Port: starship

Description (last modified by amake (Aaron Madlon-Kay))

I recently installed starship on a fresh installation with very few packages so I happened to notice that it died at runtime due to missing libiconv.

In fact it depends on two MacPorts libraries not noted in the portfile: libz and libiconv

% otool -L /opt/local/bin/starship   
/opt/local/bin/starship:
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 59754.41.1)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1770.106.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0, current version 9.1.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.0.0)
	/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 1.0.0)

libz will always be installed because it is a transitive dependency:

% port rdeps --no-build starship     
The following ports are dependencies of starship @0.47.0_0:
  openssl
    zlib

So I don't know if zlib should be explicitly added.

Change History (3)

comment:1 Changed 4 years ago by amake (Aaron Madlon-Kay)

Description: modified (diff)

comment:2 Changed 4 years ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: assignedclosed

In 9d2178dc318f2ced505cc19855a300a0e2606371/macports-ports (master):

starship 0.47.0: add missing lib dependencies

  • add libgit2 & zlib as dependencies

Fixes: #61854

comment:3 Changed 4 years ago by herbygillot (Herby Gillot)

Thank you for spotting this @amake. After taking a closer look, it looks like starship wants libgit2 (which in turn depends on libiconv). So I added libgit2 and zlib as dependencies.

Note: See TracTickets for help on using tickets.