Opened 7 years ago

Last modified 7 years ago

#44453 new defect

libsdl_pango: fix dependencies

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: libsdl_pango

Description

When installing some ports, libsdl_pango from the buildbot was broken as it linked to no longer existing /opt/local/lib/libffi.5.dylib (libffi provides /opt/local/lib/libffi.6.dylib).

Here's the full list:

> otool -L /opt/local/lib/libSDL_Pango.dylib
/opt/local/lib/libSDL_Pango.dylib:
	/opt/local/lib/libSDL_Pango.1.dylib (compatibility version 3.0.0, current version 3.0.0)
	/opt/local/lib/libpangoft2-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.4.0)
	/opt/local/lib/libpango-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
	/opt/local/lib/libfontconfig.1.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libfreetype.6.dylib (compatibility version 15.0.0, current version 15.1.0)
	/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.6)
	/opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.6)
	/opt/local/lib/libexpat.1.dylib (compatibility version 8.0.0, current version 8.0.0)
	/opt/local/lib/libgobject-2.0.0.dylib (compatibility version 3001.0.0, current version 3001.3.0)
	/opt/local/lib/libffi.5.dylib (compatibility version 6.0.0, current version 6.10.0)
	/opt/local/lib/libgmodule-2.0.0.dylib (compatibility version 3001.0.0, current version 3001.3.0)
	/opt/local/lib/libgthread-2.0.0.dylib (compatibility version 3001.0.0, current version 3001.3.0)
	/opt/local/lib/libglib-2.0.0.dylib (compatibility version 3001.0.0, current version 3001.3.0)
	/usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 46.1.0)
	/opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
	/opt/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.4.0)
	/opt/local/lib/libXrandr.2.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
	/opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0)
	/opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/local/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0)
	/opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 153.0.0)

I don't have a clean delete_la_files installation, so I don't know how to reliably tell which dependencies to add without some further testing.

But these three don't seem sufficient:

depends_lib         port:libsdl \
                    port:fontconfig \
                    path:lib/pkgconfig/pango.pc:pango

Change History (3)

comment:1 Changed 7 years ago by mojca (Mojca Miklavec)

I added libffi in r122702, but I would like to ask for help with this issue.

comment:2 Changed 7 years ago by mojca (Mojca Miklavec)

Oh, great. The port doesn't even compile any longer.

SDL_Pango.c:661:1: error: conflicting types for 'SDLPango_CopyFTBitmapToSurface'

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

And where it did build (Snow Leopard), it isn’t linked with libffi. That was probably just leftover overlinking.

Note: See TracTickets for help on using tickets.