Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libgtk3: Remove atk-bridge from .pc file
@ 2023-04-12 22:26 Stefan Ott via buildroot
  2023-04-13 14:13 ` Adrian Perez de Castro
  2023-04-15 15:16 ` Yann E. MORIN
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Ott via buildroot @ 2023-04-12 22:26 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine, Stefan Ott

The dependency is supposed to be optional but it always ends up in the
.pc file. This leads to issues when building packages that depend on
libgtk3 and are unable to find atk-bridge:

> output/build/gcr-3.40.0/meson.build:57:2: ERROR: Dependency lookup for gtk+-3.0 with method 'pkgconfig' failed: Could not generate cargs for gtk+-3.0:
> Package atk-bridge-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `atk-bridge-2.0.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'atk-bridge-2.0', required by 'gtk+-3.0', not found

This change modifies the original patch so that the dependency is only
added to the .pc file if atk-bridge is present.

Signed-off-by: Stefan Ott <stefan@ott.net>
---
 package/libgtk3/0001-disable-atk-bridge.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/libgtk3/0001-disable-atk-bridge.patch b/package/libgtk3/0001-disable-atk-bridge.patch
index f3e9bff2ba..8127b97253 100644
--- a/package/libgtk3/0001-disable-atk-bridge.patch
+++ b/package/libgtk3/0001-disable-atk-bridge.patch
@@ -39,3 +39,14 @@ Signed-off-by: Hadrien Boutteville <hadrien.boutteville@gmail.com>
  
    backend_immodules += ['xim']
  
+@@ -588,7 +588,9 @@
+     x11_pkgs += ['xdamage']
+   endif
+
+-  atk_pkgs += ['atk-bridge-2.0']
++  if atkbridge_dep.found()
++    atk_pkgs += ['atk-bridge-2.0']
++  endif
+
+   cdata.set('HAVE_XDAMAGE', xdamage_dep.found() ? 1 : false)
+   cdata.set('HAVE_XCURSOR', xcursor_dep.found() ? 1 : false)
-- 
2.40.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-15 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-12 22:26 [Buildroot] [PATCH 1/1] package/libgtk3: Remove atk-bridge from .pc file Stefan Ott via buildroot
2023-04-13 14:13 ` Adrian Perez de Castro
2023-04-15 15:16 ` Yann E. MORIN
2023-04-15 15:27   ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox