package/libgtk3: Remove atk-bridge from .pc file
PATCH 1/1 package/libgtk3: Remove atk-bridge from .pc file
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:
Quoted 5 lines
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 thePKG_CONFIG_PATHenvironment 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.
--- package/libgtk3/0001-disable-atk-bridge.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)
package/libgtk3/0001-disable-atk-bridge.patch +11 -0
@@ -39,3 +39,14 @@ Signed-off-by: Hadrien Boutteville <[email protected]> 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)
Signature · 6 lines
2.40.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 4 lines · On Thu, 13 Apr 2023 00:26:40 +0200 Stefan Ott via buildroot…
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:
Quoted 8 lines
Quoted 5 lines
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 thePKG_CONFIG_PATHenvironment variable
Package 'atk-bridge-2.0', required by 'gtk+-3.0', not foundThis change modifies the original patch so that the dependency is only added to the .pc file if atk-bridge is present.
This fixes building WebKitGTK for X11.
Coincidentally I was just a couple of days ago starting to work on the update to 2.40.x, and noticed that the build recipe enforces (X11 xor Wayland) support in WebKitGTK, but it is possible to build support for both at the same time (which is what most Linux distributions do). While testing the different build options I ran into pkg-config complaining about the missing atk-bridge-2.0 module, which in turn made CMake skip picking the preprocessor flags properly and then WebKit failing to build.
Quoted 1 line
Signed-off-by Stefan Ott <[email protected]>
Quoted 31 lines
--- package/libgtk3/0001-disable-atk-bridge.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)package/libgtk3/0001-disable-atk-bridge.patch +11
-0@@ -39,3 +39,14 @@ Signed-off-by: Hadrien Boutteville <[email protected]> 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)Signature · 6 lines
2.40.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Cheers,
—Adrián
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Stefan, All,
Adrián, question below also for you. ;-)
On 2023-04-13 00:26 +0200, Stefan Ott via buildroot spake thusly:
package/libgtk3/0001-disable-atk-bridge.patch
Quoted 22 lines
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:
Quoted 5 lines
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 thePKG_CONFIG_PATHenvironment variable
Package 'atk-bridge-2.0', required by 'gtk+-3.0', not foundThis 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 <[email protected]>--- package/libgtk3/0001-disable-atk-bridge.patch | 11 +++++++++++ 1 file changed, 11 insertions(+)package/libgtk3/0001-disable-atk-bridge.patch +0
-0
Since you are modifying that patch, you need to add your SoB line to it too, something along the lines of:
I can't add a sob on your behalf, so could you please respin?
To be noted, but that is totally orthogonal to this patch of yours: the commit log for the patch mentions that atk-bridge requires at-spi2-core and at-spi2-atk, which were not packaged in Buildroot back in the time.
However, we now have both. So: should we drop this patch, and add the dependency onto at-spi2-atk (and thus at-spi2-core), now?
Regards,
Yann E. MORIN.
Quoted 22 lines
package/libgtk3/0001-disable-atk-bridge.patch +11
-0@@ -39,3 +39,14 @@ Signed-off-by: Hadrien Boutteville <[email protected]> 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)Signature · 6 lines
2.40.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Adrián, All,
+Thomas, +Daniel,
On 2023-04-15 17:16 +0200, Yann E. MORIN spake thusly:
Quoted 1 line
Adrián, question below also for you. ;-)
[--SNIP--]
Quoted 4 lines
commit log for the patch mentions that atk-bridge requires at-spi2-core and at-spi2-atk, which were not packaged in Buildroot back in the time. However, we now have both. So: should we drop this patch, and add the dependency onto at-spi2-atk (and thus at-spi2-core), now?
OK, I think I have an answer now:
https://patchwork.ozlabs.org/project/buildroot/list/?series=343801
I'll look at that series now...
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot