package/at-spi2-core: propagate dynamic library dependency
PATCH 1/1 package/at-spi2-core: propagate dynamic library dependency
Fix the following build failure raised since bump of at-spi2-core to version 2.48.0 in commit d1757fdfb0010d29f20cd68cb6e16f019e236424:
Makefile:576: *** dbus is in the dependency chain of at-spi2-core that has added it to its _DEPENDENCIES variable without selecting it or depending on it from Config.in. Stop.
Fixes:
- http://autobuild.buildroot.org/results/511a682abd233ba90543044fd9102dc08c762f78
--- package/atkmm/Config.in | 6 ++++-- package/atkmm2_28/Config.in | 6 ++++-- package/gkrellm/Config.in | 6 ++++-- package/gtkmm3/Config.in | 5 +++-- package/libfm/Config.in | 5 +++-- package/libglade/Config.in | 6 ++++-- package/libgtk2/Config.in | 5 +++-- package/libgtk3/Config.in | 5 +++-- package/pcmanfm/Config.in | 5 +++-- package/pinentry/Config.in | 5 +++-- package/vte/Config.in | 5 +++-- package/xscreensaver/Config.in | 5 +++-- 12 files changed, 40 insertions(+), 24 deletions(-)
package/atkmm/Config.in +4 -2
@@ -5,6 +5,7 @@ config BR2_PACKAGE_ATKMM depends on BR2_TOOLCHAIN_HAS_THREADS # at-spi2-core/glibmm -> libglib2 depends on BR2_USE_MMU # at-spi2-core/glibmm -> libglib2 depends on BR2_USE_WCHAR # at-spi2-core/glibmm -> libglib2 + depends on !BR2_STATIC_LIBS # at-spi2-core select BR2_PACKAGE_AT_SPI2_CORE select BR2_PACKAGE_GLIBMM select BR2_PACKAGE_LIBSIGC
@@ -14,7 +15,8 @@ config BR2_PACKAGE_ATKMM http://www.gtkmm.org/ -comment "atkmm needs a toolchain w/ C++, wchar, threads, gcc >= 7" +comment "atkmm needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 7" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || !BR2_USE_WCHAR \ - || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS + || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \ + || BR2_STATIC_LIBS
package/atkmm2_28/Config.in +4 -2
@@ -5,6 +5,7 @@ config BR2_PACKAGE_ATKMM2_28 depends on BR2_TOOLCHAIN_HAS_THREADS # at-spi2-core/glibmm -> libglib2 depends on BR2_USE_MMU # at-spi2-core/glibmm -> libglib2 depends on BR2_USE_WCHAR # at-spi2-core/glibmm -> libglib2 + depends on !BR2_STATIC_LIBS # at-spi2-core select BR2_PACKAGE_AT_SPI2_CORE select BR2_PACKAGE_GLIBMM2_66 select BR2_PACKAGE_LIBSIGC2
@@ -17,7 +18,8 @@ config BR2_PACKAGE_ATKMM2_28 http://www.gtkmm.org/ -comment "atkmm (2.28.x) needs a toolchain w/ C++, wchar, threads, gcc >= 4.9" +comment "atkmm (2.28.x) needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.9" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_USE_WCHAR \ - || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS + || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \ + || BR2_STATIC_LIBS
package/gkrellm/Config.in +4 -2
@@ -3,6 +3,7 @@ config BR2_PACKAGE_GKRELLM depends on BR2_USE_WCHAR # libglib2 depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2 depends on BR2_USE_MMU # libglib2 + depends on !BR2_STATIC_LIBS # libgtk2 -> at-spi2-core select BR2_PACKAGE_GKRELLM_SERVER if !BR2_PACKAGE_GKRELLM_CLIENT select BR2_PACKAGE_LIBGLIB2 help
@@ -38,6 +39,7 @@ comment "client needs a toolchain w/ C++, gcc >= 4.8" endif # BR2_PACKAGE_GKRELLM -comment "gkrellm needs a toolchain w/ wchar, threads" +comment "gkrellm needs a toolchain w/ wchar, threads, dynamic library" depends on BR2_USE_MMU - depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
package/gtkmm3/Config.in +3 -2
@@ -1,9 +1,9 @@ -comment "gtkmm3 needs libgtk3 and a toolchain w/ C++, wchar, threads, gcc >= 4.9" +comment "gtkmm3 needs libgtk3 and a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.9" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_USE_WCHAR \ || !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_LIBGTK3 \ - || !BR2_TOOLCHAIN_HAS_THREADS + || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS config BR2_PACKAGE_GTKMM3 bool "gtkmm3"
@@ -18,6 +18,7 @@ config BR2_PACKAGE_GTKMM3 depends on BR2_TOOLCHAIN_HAS_THREADS # *mm/libgtk3 -> libglib2 depends on BR2_USE_MMU # *mm/libgtk3 -> libglib2 depends on BR2_USE_WCHAR # *mm/libgtk3 -> libglib2 + depends on !BR2_STATIC_LIBS # atkmm2_28 -> at-spi2-core depends on BR2_PACKAGE_LIBGTK3 select BR2_PACKAGE_ATKMM2_28 select BR2_PACKAGE_CAIROMM1_14
package/libfm/Config.in +3 -2
@@ -7,6 +7,7 @@ config BR2_PACKAGE_LIBFM depends on BR2_INSTALL_LIBSTDCPP # libgtk2 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libgtk2 -> pango -> harfbuzz + depends on !BR2_STATIC_LIBS # libgtk2 -> at-spi2-core select BR2_PACKAGE_CAIRO select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBGTK2 if !BR2_PACKAGE_LIBGTK3_X11
@@ -22,9 +23,9 @@ config BR2_PACKAGE_LIBFM http://wiki.lxde.org/en/Libfm -comment "libfm needs X.org and a toolchain w/ wchar, threads, C++, gcc >= 4.9" +comment "libfm needs X.org and a toolchain w/ wchar, threads, C++, dynamic libary, gcc >= 4.9" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_XORG7
package/libglade/Config.in +4 -2
@@ -4,6 +4,7 @@ config BR2_PACKAGE_LIBGLADE depends on BR2_USE_WCHAR # glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 + depends on !BR2_STATIC_LIBS # at-spi2-core select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_AT_SPI2_CORE select BR2_PACKAGE_LIBXML2
@@ -14,7 +15,8 @@ config BR2_PACKAGE_LIBGLADE https://download.gnome.org/sources/libglade/ -comment "libglade needs a toolchain w/ wchar, threads" +comment "libglade needs a toolchain w/ wchar, threads, dynamic library" depends on BR2_USE_MMU depends on BR2_PACKAGE_LIBGTK2 - depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ + BR2_STATIC_LIBS
package/libgtk2/Config.in +3 -2
@@ -7,6 +7,7 @@ config BR2_PACKAGE_LIBGTK2 depends on BR2_INSTALL_LIBSTDCPP # pango depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pango -> harfbuzz depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango -> harfbuzz + depends on !BR2_STATIC_LIBS # at-spi2-core select BR2_PACKAGE_AT_SPI2_CORE select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_PS
@@ -34,10 +35,10 @@ config BR2_PACKAGE_LIBGTK2_DEMO endif -comment "libgtk2 needs a toolchain w/ wchar, threads, C++, gcc >= 4.9" +comment "libgtk2 needs a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on BR2_PACKAGE_XORG7 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ - !BR2_TOOLCHAIN_HAS_THREADS + BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
package/libgtk3/Config.in +3 -2
@@ -1,9 +1,9 @@ -comment "libgtk3 needs a toolchain w/ wchar, threads, C++, gcc >= 4.9" +comment "libgtk3 needs a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9" depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_HAS_THREADS comment "libgtk3 needs an OpenGL or an OpenGL-EGL/wayland backend"
@@ -23,6 +23,7 @@ config BR2_PACKAGE_LIBGTK3 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango -> harfbuzz depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND || \ BR2_PACKAGE_HAS_LIBGL + depends on !BR2_STATIC_LIBS # at-spi2-core select BR2_PACKAGE_AT_SPI2_CORE select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_PS
package/pcmanfm/Config.in +3 -2
@@ -7,6 +7,7 @@ config BR2_PACKAGE_PCMANFM depends on BR2_INSTALL_LIBSTDCPP # libgtk2 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libgtk2 -> pango -> harfbuzz + depends on !BR2_STATIC_LIBS # libgtk2 -> at-spi2-core select BR2_PACKAGE_LIBFM select BR2_PACKAGE_MENU_CACHE select BR2_PACKAGE_LIBGLIB2
@@ -18,10 +19,10 @@ config BR2_PACKAGE_PCMANFM http://wiki.lxde.org/en/PCManFM -comment "pcmanfm needs a toolchain w/ wchar, threads, C++, gcc >= 4.9" +comment "pcmanfm needs a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9" depends on BR2_USE_MMU depends on BR2_PACKAGE_XORG7 depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_HAS_THREADS
package/pinentry/Config.in +3 -2
@@ -55,16 +55,17 @@ config BR2_PACKAGE_PINENTRY_GTK2 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libgtk2 -> pango -> harfbuzz + depends on !BR2_STATIC_LIBS # libgtk2 -> at-spi2-core select BR2_PACKAGE_LIBGTK2 select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help The pinentry-gtk2 tool -comment "pinentry-gtk2 needs X and a toolchain w/ wchar, threads, C++, gcc >= 4.9" +comment "pinentry-gtk2 needs X and a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_PACKAGE_XORG7 || !BR2_USE_WCHAR || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || BR2_STATIC_LIBS || \ !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS config BR2_PACKAGE_PINENTRY_QT5
package/vte/Config.in +3 -2
@@ -11,6 +11,7 @@ config BR2_PACKAGE_VTE depends on BR2_PACKAGE_HAS_LIBEGL_WAYLAND || \ BR2_PACKAGE_HAS_LIBGL depends on BR2_PACKAGE_XORG7 + depends on !BR2_STATIC_LIBS # libgtk3 -> at-spi2-core select BR2_PACKAGE_LIBGTK3 select BR2_PACKAGE_PCRE2 help
@@ -22,12 +23,12 @@ config BR2_PACKAGE_VTE http://github.com/GNOME/vte -comment "vte needs a uClibc or glibc toolchain w/ wchar, threads, C++, gcc >= 10" +comment "vte needs a uClibc or glibc toolchain w/ wchar, threads, C++, dynamic library, gcc >= 10" depends on BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_USE_WCHAR || !BR2_INSTALL_LIBSTDCPP || \ - !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_10 || \ BR2_TOOLCHAIN_USES_MUSL
package/xscreensaver/Config.in +3 -2
@@ -8,6 +8,7 @@ config BR2_PACKAGE_XSCREENSAVER depends on BR2_USE_MMU # gdk-pixbuf, libgtk2 -> glib2 depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libgtk2 -> pango -> harfbuzz depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libgtk2 -> pango -> harfbuzz + depends on !BR2_STATIC_LIBS # libgtk2 -> at-spi2-core select BR2_PACKAGE_GDK_PIXBUF select BR2_PACKAGE_GDK_PIXBUF_XLIB select BR2_PACKAGE_LIBGLU
@@ -29,10 +30,10 @@ config BR2_PACKAGE_XSCREENSAVER http://www.jwz.org/xscreensaver/ -comment "xscreensaver needs a toolchain w/ wchar, C++, threads, gcc >= 4.9, OpenGL backend" +comment "xscreensaver needs a toolchain w/ wchar, C++, threads, gcc >= 4.9, dynamic library, OpenGL backend" depends on BR2_PACKAGE_XORG7 depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || BR2_STATIC_LIBS || \ !BR2_USE_WCHAR || !BR2_PACKAGE_HAS_LIBGL
Signature · 6 lines
2.40.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Fabrice,
Quoted 4 lines · Fabrice Fontaine
Fix the following build failure raised since bump of at-spi2-core to version 2.48.0 in commit
d1757fdfb0010d29f20cd68cb6e16f019e236424:Makefile:576: *** dbus is in the dependency chain of at-spi2-core that has added it to its
_DEPENDENCIESvariable without selecting it or depending on it from Config.in. Stop.
Thanks for looking into this.
I'm not sure adding this dependency is the best approach, as it would require propagating it to everything that uses libgtk3, which you didn't do, if I understand this patch correctly.
I would like to propose another solution, that would fix the problem:
Some weeks ago I send in a patch [0] to at-spi2-core that makes it possible to deselect the runtime module needed by GTK2. This module is always compiled as library and seems to be the only thing that would force "depends on !BR2_STATIC_LIBS".
So my proposal would be to only add the "depends..." if LIBGTK2 is selected and use the patch to exclude the runtime module. With this we only need to propagate it to LIBGTK2.
Version 2.50 was released in the mean time, which contains the mentioned patch. For stable branches the patch is needed.
Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/511a682abd233ba90543044fd9102dc08c762f78
Please add, if okay with Bernd, see [1]:
Regards
Daniel
[0]: https://gitlab.gnome.org/GNOME/at-spi2-core/-/commit/520a7b16b0093a965542a3880b2e3b276fbe06d8
[1]: http://lists.busybox.net/pipermail/buildroot/2023-June/669401.html
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Daniel,
Quoted 6 lines · Daniel Lang
Hi Fabrice,
Quoted 3 lines · Fabrice Fontaine
Fix the following build failure raised since bump of at-spi2-core to version 2.48.0 in commit
d1757fdfb0010d29f20cd68cb6e16f019e236424:
Quoted 9 lines
Quoted 1 line
Makefile:576: *** dbus is in the dependency chain of at-spi2-core that
has added it to its
_DEPENDENCIESvariable without selecting it or depending on it from Config.in. Stop.Thanks for looking into this.
I'm not sure adding this dependency is the best approach, as it would require propagating it to everything that uses libgtk3, which you didn't do, if I understand this patch correctly.
If I didn't miss something, the only package that has a mandatory dependency to libgtk3 is vte which is updated by this patch. Packages depending on libgtk2 have also been updated (e.g. gkrellm, pcmanfm).
Quoted 14 lines
I would like to propose another solution, that would fix the problem:
Some weeks ago I send in a patch [0] to at-spi2-core that makes it possible to deselect the runtime module needed by GTK2. This module is always compiled
as library and seems to be the only thing that would force "depends on !BR2_STATIC_LIBS".So my proposal would be to only add the "depends..." if LIBGTK2 is selected and
use the patch to exclude the runtime module. With this we only need to propagate
it to LIBGTK2.
Quoted 4 lines
Version 2.50 was released in the mean time, which contains the mentioned patch.
For stable branches the patch is needed.
If you can drop the dynamic library dependency from at-spi2-core, feel free to send another patch.
Quoted 9 lines
Quoted 4 lines
Fixes:
-http://autobuild.buildroot.org/results/511a682abd233ba90543044fd9102dc08c762f78
Quoted 1 line
Please add, if okay with Bernd, see [1]:
Quoted 8 lines
Reported-by Bernd Kuhls <[email protected]>Regards
Daniel[0]:
https://gitlab.gnome.org/GNOME/at-spi2-core/-/commit/520a7b16b0093a965542a3880b2e3b276fbe06d8
[1]: http://lists.busybox.net/pipermail/buildroot/2023-June/669401.html
Best Regards,
Fabrice
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Fabrice,
Quoted 12 lines · Fabrice Fontaine
Hi Daniel,
Le mar. 19 sept. 2023 à 06:42, Daniel Lang <[email protected] <mailto:[email protected]>> a écrit :
Hi Fabrice,
On 16.09.23 17:49, Fabrice Fontaine wrote:
> Fix the following build failure raised since bump of at-spi2-core to
> version 2.48.0 in commitd1757fdfb0010d29f20cd68cb6e16f019e236424:
>
> Makefile:576: *** dbus is in the dependency chain of at-spi2-core that has added it to its_DEPENDENCIESvariable without selecting it or depending on it from Config.in. Stop.
Quoted 8 lines
Thanks for looking into this.
I'm not sure adding this dependency is the best approach, as it would require propagating it to everything that uses libgtk3, which you didn't do, if I understand this patch correctly.If I didn't miss something, the only package that has a mandatory dependency to libgtk3 is vte which is updated by this patch. Packages depending on libgtk2 have also been updated (e.g. gkrellm, pcmanfm).
You are right, my bad.
Quoted 12 lines
I would like to propose another solution, that would fix the problem:
Some weeks ago I send in a patch [0] to at-spi2-core that makes it possible to deselect the runtime module needed by GTK2. This module is always compiled as library and seems to be the only thing that would force "depends on !BR2_STATIC_LIBS".So my proposal would be to only add the "depends..." if LIBGTK2 is selected and use the patch to exclude the runtime module. With this we only need to propagate it to LIBGTK2.
Quoted 5 lines
Version 2.50 was released in the mean time, which contains the mentioned patch. For stable branches the patch is needed.
If you can drop the dynamic library dependency from at-spi2-core, feel free to send another patch.
I'm not able to drop the dependency completely. But the set of affected packages would drop from 12 to 7. atkmm, atkmm2_28, gtkmm3, libgtk3, vte would not be changed.
I'm not quiet sure what the best approach would be to also make it viable for stable branches.
My proposal needs a patch [0], which removes the runtime library. Not sure that patch should be picked up by stable.
For master the patch isn't needed, a bump to 2.50 includes it.
So I guess there are two options:
1. Use this patch for master and stable. Bump and drop dynamic library dependency later.
2. Use this patch for stable only. Bump and drop dynamic library dependency directly.
Only opinions?
Regards, Daniel
[0]: https://gitlab.gnome.org/GNOME/at-spi2-core/-/commit/520a7b16b0093a965542a3880b2e3b276fbe06d8
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi all,
Quoted 6 lines · Daniel Lang
Hi Fabrice,
Quoted 3 lines · Fabrice Fontaine
Hi Daniel,
Le mar. 19 sept. 2023 à 06:42, Daniel Lang <[email protected] <mailto:[email protected]>> a écrit :
[snip]
Quoted 13 lines
Quoted 13 lines
I would like to propose another solution, that would fix the problem:
Some weeks ago I send in a patch [0] to at-spi2-core that makes it possible to deselect the runtime module needed by GTK2. This module is always compiled as library and seems to be the only thing that would force "depends on !BR2_STATIC_LIBS".So my proposal would be to only add the "depends..." if LIBGTK2 is selected and use the patch to exclude the runtime module. With this we only need to propagate it to LIBGTK2.
Version 2.50 was released in the mean time, which contains the mentioned patch. For stable branches the patch is needed.
Quoted 5 lines
Quoted 1 line
If you can drop the dynamic library dependency from at-spi2-core, feel free to send another patch.
I'm not able to drop the dependency completely. But the set of affected packages would drop from 12 to 7. atkmm,
atkmm2_28, gtkmm3, libgtk3, vte would not be changed.
We're months later, the bump to 2.50.0 has been merged, so it should be
possible now to drop the dependency on !STATIC, right? IIUC it takes a little more effort because we also need a way to enable/disable the gtk2_atk_adaptor option...
Regards,
Arnout
Quoted 14 lines
I'm not quiet sure what the best approach would be to also make it viable for stable branches.
My proposal needs a patch [0], which removes the runtime library. Not sure that patch should be picked up by stable.
For master the patch isn't needed, a bump to 2.50 includes it.So I guess there are two options:
1. Use this patch for master and stable. Bump and drop dynamic library dependency later.
2. Use this patch for stable only. Bump and drop dynamic library dependency directly.Only opinions?
Quoted 7 lines
Regards, Daniel
[0]: https://gitlab.gnome.org/GNOME/at-spi2-core/-/commit/520a7b16b0093a965542a3880b2e3b276fbe06d8
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · On Fri, 12 Jul 2024 22:08:09 +0200 Arnout Vandecappelle via buildroot…
We're months later, the bump to 2.50.0 has been merged, so it should be
possible now to drop the dependency on !STATIC, right? IIUC it takes a little more effort because we also need a way to enable/disable thegtk2_atk_adaptoroption...
Thing is that I don't see how the gtk2_atk_adaptor option pointed by Daniel Lang can help, and how it relates to dlopen() being needed or not.
Indeed, in meson.build, regardless of gtk2_atk_adaptor, I see:
if not get_option('atk_only')
if cc.has_function('dlopen')
dl_dep = []
elif cc.has_function('dlopen', args: '-ldl')
dl_dep = cc.find_library('dl') else
error('Could not find a library with the dlopen function')
endif
endif
so unless atk_only is defined, dlopen() will be needed. atk_only is defined as such:
option('atk_only',
description: 'Build only the ATK stub library without atspi or at-spi2-atk (UNSUPPORTED)',
type: 'boolean',
value: false)
of course the UNSUPPORTED is a bit scary. But perhaps that would make sense in the context of Buildroot. Both libgtk2/libgtk3 require at-spi2-core, but we can imagine that real accessibility support is not always needed, so being able to build a stub at-spi2-core might be interesting, and that would allow to not require dlopen(), apparently.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · On Mon, 15 Jul 2024 20:49:08 +0200 Thomas Petazzoni…
so unless
atk_onlyis defined,dlopen()will be needed.atk_onlyis defined as such:option('atk_only',
description: 'Build only the ATK stub library without atspi or at-spi2-atk (UNSUPPORTED)',
type: 'boolean',
value: false)
Quoted 5 lines
of course the UNSUPPORTED is a bit scary. But perhaps that would make sense in the context of Buildroot. Both libgtk2/libgtk3 require at-spi2-core, but we can imagine that real accessibility support is not always needed, so being able to build a stub at-spi2-core might be interesting, and that would allow to not require
dlopen(), apparently.
Quick prototype:
https://github.com/tpetazzoni/buildroot/commit/04ce4115d4cb4798f78f82dfe40ce07697b5e804
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · Fabrice Fontaine
Fix the following build failure raised since bump of at-spi2-core to version 2.48.0 in commit
d1757fdfb0010d29f20cd68cb6e16f019e236424:Makefile:576: *** dbus is in the dependency chain of at-spi2-core that has added it to its
_DEPENDENCIESvariable without selecting it or depending on it from Config.in. Stop.Fixes:
- http://autobuild.buildroot.org/results/511a682abd233ba90543044fd9102dc08c762f78Signed-off-by Fabrice Fontaine <[email protected]>
Sorry for the veryyyy looong delay. Turns out that in the mean time this problem has been fixed, indeed by propagating the !BR2_STATIC_LIBS dependency, through various commits over the years.
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot