1 |
commit: ec465eaaa6c66f3d0ca20a65e3412ea9272c87d7 |
2 |
Author: brahmajit das <brahmajit.xyz <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Jun 23 14:03:54 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 24 04:36:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec465eaa |
7 |
|
8 |
dev-libs/gjs: Increase stack size on musl profile |
9 |
|
10 |
On musl it required that either gjs, pixman or gnome-shell to be built |
11 |
with a larger stack otherwise librsvg fails to render a particular SVG, |
12 |
as a result we fail to get gdm or gnome-shell running (greeted with a |
13 |
fail whale screen). The bug has been reported to librsvg. For now this |
14 |
is just a temporary fix and will be removed later once an actual fix is |
15 |
found. |
16 |
|
17 |
Please refer to these bugs: |
18 |
https://gitlab.gnome.org/GNOME/librsvg/-/issues/686 |
19 |
https://gitlab.gnome.org/GNOME/librsvg/-/issues/874 |
20 |
|
21 |
Signed-off-by: brahmajit das <brahmajit.xyz <AT> gmail.com> |
22 |
Closes: https://github.com/gentoo/gentoo/pull/26056 |
23 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
24 |
|
25 |
dev-libs/gjs/gjs-1.72.0.ebuild | 13 +++++++++++++ |
26 |
1 file changed, 13 insertions(+) |
27 |
|
28 |
diff --git a/dev-libs/gjs/gjs-1.72.0.ebuild b/dev-libs/gjs/gjs-1.72.0.ebuild |
29 |
index 842e4de4da6a..9e81950f35eb 100644 |
30 |
--- a/dev-libs/gjs/gjs-1.72.0.ebuild |
31 |
+++ b/dev-libs/gjs/gjs-1.72.0.ebuild |
32 |
@@ -34,6 +34,19 @@ BDEPEND=" |
33 |
src_configure() { |
34 |
append-cppflags -DG_DISABLE_CAST_CHECKS |
35 |
|
36 |
+ # On musl it required that either gjs, pixman or gnome-shell to be built |
37 |
+ # with a larger stack otherwise librsvg fails to render a particular SVG, as |
38 |
+ # a result we fail to get gdm or gnome-shell running (greeted with a fail |
39 |
+ # whale screen). The bug has been reported to librsvg. For now this is just |
40 |
+ # a temporary fix and will be removed later once an actual fix is found. |
41 |
+ # |
42 |
+ # Please refer |
43 |
+ # https://gitlab.gnome.org/GNOME/librsvg/-/issues/686 |
44 |
+ # https://gitlab.gnome.org/GNOME/librsvg/-/issues/874 |
45 |
+ # |
46 |
+ # TODO: Find an actual fix instead of increasing the stack |
47 |
+ use elibc_musl && append-ldflags -Wl,--as-needed -Wl,-z,stack-size=2097152 |
48 |
+ |
49 |
# FIXME: add systemtap/dtrace support, like in glib:2 |
50 |
local emesonargs=( |
51 |
$(meson_feature cairo) |