pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/55798



The following reply was made to PR pkg/55798; it has been noted by GNATS.

From: =?utf-8?Q?Dan_C=C3=AErna=C8=9B?= <dan%alt.md@localhost>
To: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%NetBSD.org@localhost>
Cc: 
Subject: Re: pkg/55798
Date: Thu, 26 Nov 2020 08:17:03 +0000

 Apparently the AppKit framework needs to be added to the linker flags.
 Worked on Big Sur with the patch provided below.
 
 >Fix:
 
 diff --git a/x11/gtk3/distinfo b/x11/gtk3/distinfo
 index b04ecb0bf15..fdb63d32d62 100644
 --- a/x11/gtk3/distinfo
 +++ b/x11/gtk3/distinfo
 @@ -7,7 +7,7 @@ Size (gtk+-3.24.23.tar.xz) =3D 21345936 bytes
  SHA1 (patch-Makefile.in) =3D 8edcfe2ff492d90138a24b680fe39814c3848d80
  SHA1 (patch-config.h.in) =3D dc5f8741eed554f88c0b6834cadad95083e4dc8f
  SHA1 (patch-configure) =3D d531b33e52facf960058f1223b70db680da35300
 -SHA1 (patch-configure.ac) =3D 68793f40752f25ccaecc958c72c23a504670bea5
 +SHA1 (patch-configure.ac) =3D 91e07b6ed9f24ccfeb576c7a506694b4b57555ac
  SHA1 (patch-gdk_quartz_gdkquartz-gtk-only.h) =3D 24aefa2631c2546ef726eba0a=
 ee0f9460c1664ed
  SHA1 (patch-gdk_wayland_gdkdevice-wayland.c) =3D e283bd6533ea1307b971c524b=
 c05f0d3ee90453d
  SHA1 (patch-gdk_x11_gdkscreen-x11.h) =3D 455d6c3de8421984ba3c99baf51cd3198=
 2a3df78
 diff --git a/x11/gtk3/patches/patch-configure.ac b/x11/gtk3/patches/patch-c=
 onfigure.ac
 index 834d3a13c71..cf9e7e50d6c 100644
 --- a/x11/gtk3/patches/patch-configure.ac
 +++ b/x11/gtk3/patches/patch-configure.ac
 @@ -1,10 +1,20 @@
  $NetBSD: patch-configure.ac,v 1.2 2014/09/08 12:06:48 wiz Exp $
 
 +Add AppKit framework to linker flags to fix linking problem on macOS
  Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
 
 ---- configure.ac.orig  2013-01-07 10:50:02.000000000 +0000
 +--- configure.ac.orig  2020-09-03 22:04:28.000000000 +0000
  +++ configure.ac
 -@@ -1295,8 +1295,13 @@ AC_SUBST(GDK_DEP_CFLAGS)
 +@@ -409,7 +409,7 @@ if test "x$enable_quartz_backend" =3D xyes
 +   backend_immodules=3D"$backend_immodules,quartz"
 +   GDK_WINDOWING=3D"$GDK_WINDOWING
 + #define GDK_WINDOWING_QUARTZ"
 +-  GDK_EXTRA_LIBS=3D"$GDK_EXTRA_LIBS -Wl,-framework,Cocoa"
 ++  GDK_EXTRA_LIBS=3D"$GDK_EXTRA_LIBS -Wl,-framework,AppKit,-framework,Carb=
 on"
 +   DISABLE_ON_QUARTZ=3D'%'
 +   AM_CONDITIONAL(USE_QUARTZ, true)
 +   if test "x$quartz_relocation" =3D xyes; then
 +@@ -1364,8 +1364,13 @@ AC_SUBST(GDK_DEP_CFLAGS)
   # Check for Accessibility Toolkit flags
   ########################################
 


Home | Main Index | Thread Index | Old Index