commit:     ec465eaaa6c66f3d0ca20a65e3412ea9272c87d7
Author:     brahmajit das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Thu Jun 23 14:03:54 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 04:36:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec465eaa

dev-libs/gjs: Increase stack size on musl profile

On musl it required that either gjs, pixman or gnome-shell to be built
with a larger stack otherwise librsvg fails to render a particular SVG,
as a result we fail to get gdm or gnome-shell running (greeted with a
fail whale screen). The bug has been reported to librsvg. For now this
is just a temporary fix and will be removed later once an actual fix is
found.

Please refer to these bugs:
https://gitlab.gnome.org/GNOME/librsvg/-/issues/686
https://gitlab.gnome.org/GNOME/librsvg/-/issues/874

Signed-off-by: brahmajit das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/26056
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/gjs/gjs-1.72.0.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-libs/gjs/gjs-1.72.0.ebuild b/dev-libs/gjs/gjs-1.72.0.ebuild
index 842e4de4da6a..9e81950f35eb 100644
--- a/dev-libs/gjs/gjs-1.72.0.ebuild
+++ b/dev-libs/gjs/gjs-1.72.0.ebuild
@@ -34,6 +34,19 @@ BDEPEND="
 src_configure() {
        append-cppflags -DG_DISABLE_CAST_CHECKS
 
+       # On musl it required that either gjs, pixman or gnome-shell to be built
+       # with a larger stack otherwise librsvg fails to render a particular 
SVG, as
+       # a result we fail to get gdm or gnome-shell running (greeted with a 
fail
+       # whale screen). The bug has been reported to librsvg. For now this is 
just
+       # a temporary fix and will be removed later once an actual fix is found.
+       #
+       # Please refer
+       # https://gitlab.gnome.org/GNOME/librsvg/-/issues/686
+       # https://gitlab.gnome.org/GNOME/librsvg/-/issues/874
+       #
+       # TODO: Find an actual fix instead of increasing the stack
+       use elibc_musl && append-ldflags -Wl,--as-needed 
-Wl,-z,stack-size=2097152
+
        # FIXME: add systemtap/dtrace support, like in glib:2
        local emesonargs=(
                $(meson_feature cairo)

Reply via email to