[MacPorts] #70352: gtk3 fails to pass legacy-support include flag
MacPorts
noreply at macports.org
Mon Oct 28 13:42:21 UTC 2024
#70352: gtk3 fails to pass legacy-support include flag
-----------------------------------+----------------------
Reporter: barracuda156 | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Resolution: | Keywords:
Port: gtk3, legacy-support |
-----------------------------------+----------------------
Comment (by barracuda156):
Replying to [comment:1 fhgwright]:
> I believe the `legacysupport` PortGroup sets up the proper flags for
both the include and the library (and the dependency). If you don't use
the PortGroup, you'll need to do that "manually".
>
> This isn't an issue with `legacy-support` itself.
GTK actually does worse than that: not only it fails to pass legacysupport
cppflag, but it passes wrong ldflags, adding both static and dynamic libs:
{{{
build gtk/gtk-query-immodules-3.0: c_LINKER gtk/gtk-query-
immodules-3.0.p/queryimmodules.c.o gtk/gtk-query-
immodules-3.0.p/gtkutils.c.o | /opt/local/lib/libMacportsLegacySupport.a
/opt/local/lib/libMacportsLegacySupport.dylib /opt/local/lib/libX11.dylib
/opt/local/lib/libXcomposite.dylib /opt/local/lib/libXcursor.dylib
/opt/local/lib/libXdamage.dylib /opt/local/lib/libXext.dylib
/opt/local/lib/libXfixes.dylib /opt/local/lib/libXi.dylib
/opt/local/lib/libXinerama.dylib /opt/local/lib/libXrandr.dylib
/opt/local/lib/libXrender.dylib /opt/local/lib/libatk-1.0.dylib
/opt/local/lib/libatk-bridge-2.0.dylib /opt/local/lib/libcairo-
gobject.dylib /opt/local/lib/libcairo.dylib /opt/local/lib/libepoxy.dylib
/opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib
/opt/local/lib/libfribidi.dylib /opt/local/lib/libgdk_pixbuf-2.0.dylib
/opt/local/lib/libgio-2.0.dylib /opt/local/lib/libglib-2.0.dylib
/opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libgobject-2.0.dylib
/opt/local/lib/libharfbuzz.dylib /opt/local/lib/libintl.8.dylib
/opt/local/lib/libintl.a /opt/local/lib/libintl.dylib
/opt/local/lib/libpango-1.0.dylib /opt/local/lib/libpangocairo-1.0.dylib
/opt/local/lib/libpangoft2-1.0.dylib
gdk/libgdk-3.0.dylib.p/libgdk-3.0.dylib.symbols
gtk/libgtk-3.0.dylib.p/libgtk-3.0.dylib.symbols
LINK_ARGS = -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs
-Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names
-lMacportsLegacySupport -arch ppc -pipe -Os -fstrict-aliasing -arch ppc
-DX_LOCALE -Wl,-rpath, at loader_path/ -Wl,-rpath, at loader_path/../gdk
gtk/libgtk-3.0.dylib gdk/libgdk-3.0.dylib
/opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib
/opt/local/lib/libintl.dylib /opt/local/lib/libgobject-2.0.dylib
/opt/local/lib/libgio-2.0.dylib /opt/local/lib/libpangocairo-1.0.dylib
/opt/local/lib/libpango-1.0.dylib /opt/local/lib/libharfbuzz.dylib
/opt/local/lib/libcairo.dylib /opt/local/lib/libpangoft2-1.0.dylib
/opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib
/opt/local/lib/libfribidi.dylib /opt/local/lib/libcairo-gobject.dylib
/opt/local/lib/libgdk_pixbuf-2.0.dylib /opt/local/lib/libatk-1.0.dylib
/opt/local/lib/libepoxy.dylib -lm /opt/local/lib/libXi.dylib
/opt/local/lib/libX11.dylib /opt/local/lib/libatk-bridge-2.0.dylib -lintl
/opt/local/lib/libXrender.dylib /opt/local/lib/libXext.dylib
/opt/local/lib/libXcursor.dylib /opt/local/lib/libXdamage.dylib
/opt/local/lib/libXfixes.dylib /opt/local/lib/libXcomposite.dylib
/opt/local/lib/libXrandr.dylib /opt/local/lib/libXinerama.dylib
}}}
Something very wrong with its build system.
--
Ticket URL: <https://trac.macports.org/ticket/70352#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list