Skip to content

Commit faa8b4c

Browse files
committed
Update gtk-osx modules.
1 parent 7665b1d commit faa8b4c

File tree

5 files changed

+63
-87
lines changed

5 files changed

+63
-87
lines changed

bootstrap.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ rm -f "$HOME/.config/jhbuildrc-custom"
1313

1414
mkdir -p "$HOME/.config"
1515
cp misc/jhbuildrc-custom "$HOME/.config/jhbuildrc-custom"
16-
git clone https://gitlab.gnome.org/GNOME/gtk-osx.git _gtk-osx
17-
# try latest commit (2022-02-18)
18-
(cd _gtk-osx && git checkout 6be92a11)
16+
git clone https://gitlab.gnome.org/GNOME/gtk-osx.git _gtk-osx
17+
# try latest commit (2023-01-03)
18+
(cd _gtk-osx && git checkout 78bd3324)
1919
# fix boostrap failure: error message on pip download
2020
sed -i '' s,https://bootstrap.pypa.io/2.7/get-pip.py,https://bootstrap.pypa.io/pip/2.7/get-pip.py, _gtk-osx/gtk-osx-setup.sh
2121
sed -i '' 's:curl -ks :curl -ksS :' _gtk-osx/gtk-osx-setup.sh

modulesets/gtk-osx.modules

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<!DOCTYPE moduleset SYSTEM "moduleset.dtd">
33
<?xml-stylesheet type="text/xsl" href="moduleset.xsl"?>
44
<moduleset>
5-
<repository type="tarball" name="ftp.gnome.org" default="yes"
6-
href="http://ftp.gnome.org/pub/GNOME/sources/"/>
5+
<repository type="tarball" name="download.gnome.org" default="yes"
6+
href="https://download.gnome.org/sources/"/>
77
<repository type="tarball" name="cairographics"
88
href="https://www.cairographics.org/"/>
99
<repository type="tarball" name="cairographics-temp"
@@ -71,11 +71,11 @@
7171
</after>
7272
</metamodule>
7373

74-
<autotools id="libffi" autogenargs="--disable-builddir"
74+
<autotools id="libffi" autogenargs="--disable-multi-os-directory"
7575
autogen-sh="configure">
76-
<branch module="libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz"
77-
repo="github-tarball" version="3.3"
78-
hash="sha256:72fba7922703ddfa7a028d513ac15a85c8d54c8d67f55fa5a4802885dc652056"/>
76+
<branch module="libffi/libffi/releases/download/v3.4.3/libffi-3.4.3.tar.gz"
77+
repo="github-tarball" version="3.4.3"
78+
hash="sha256:4416dd92b6ae8fcb5b10421e711c4d3cb31203d77521a77d85d0102311e6c3b8"/>
7979
</autotools>
8080

8181
<autotools id="libpcre" autogen-sh="configure"
@@ -100,7 +100,7 @@
100100
then build harfbuzz without cairo because cairo requires
101101
harfbuzz. -->
102102
<!-- gpodder github action needs to disable BrotliDec -->
103-
<cmake id="freetype-no-harfbuzz" cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release">
103+
<cmake id="freetype-no-harfbuzz" cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_HarfBuzz=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE">
104104
<branch module="freetype/freetype-2.11.1.tar.gz" version="2.11.1"
105105
repo="sourceforge"
106106
hash="sha256:f8db94d307e9c54961b39a1cc799a67d46681480696ed72ecf78d4473770f09b"/>
@@ -109,7 +109,7 @@
109109
</dependencies>
110110
</cmake>
111111

112-
<meson id="harfbuzz-no-cairo" mesonargs="-Dcoretext=enabled -Ddocs=disabled -Dbenchmark=disabled -Dintrospection=disabled">
112+
<meson id="harfbuzz-no-cairo" mesonargs="-Dcoretext=enabled -Dfreetype=enabled -Ddocs=disabled -Dbenchmark=disabled -Dintrospection=disabled">
113113
<branch repo="github-tarball" version="4.1.0"
114114
module="harfbuzz/harfbuzz/releases/download/4.1.0/harfbuzz-4.1.0.tar.xz"
115115
hash="sha256:f7984ff4241d4d135f318a93aa902d910a170a8265b7eaf93b5d9a504eed40c8">
@@ -122,8 +122,9 @@
122122
</meson>
123123

124124
<!-- gpodder github action needs to disable BrotliDec -->
125-
<cmake id="freetype" cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release">
125+
<cmake id="freetype" cmakeargs="-DCMAKE_DISABLE_FIND_PACKAGE_BZip2=TRUE -D BUILD_SHARED_LIBS=true -D CMAKE_BUILD_TYPE=Release -DCMAKE_DISABLE_FIND_PACKAGE_BrotliDec=TRUE">
126126
<branch module="freetype/freetype-2.11.1.tar.gz" version="2.11.1"
127+
hash="sha256:f8db94d307e9c54961b39a1cc799a67d46681480696ed72ecf78d4473770f09b"/>
127128
repo="sourceforge"/>
128129
<dependencies>
129130
<dep package="harfbuzz-no-cairo"/>
@@ -183,10 +184,10 @@
183184
</after>
184185
</meson>
185186

186-
<meson id="harfbuzz" mesonargs="-Dcoretext=enabled -Ddocs=disabled -Dbenchmark=disabled -Dintrospection=enabled">
187+
<meson id="harfbuzz" mesonargs="-Dcoretext=enabled -Dfreetype=enabled -Ddocs=disabled -Dbenchmark=disabled -Dintrospection=enabled">
187188
<branch repo="github-tarball" version="4.1.0"
188-
module="harfbuzz/harfbuzz/releases/download/4.1.0/harfbuzz-4.1.0.tar.xz"
189-
>
189+
module="harfbuzz/harfbuzz/releases/download/4.1.0/harfbuzz-4.1.0.tar.xz"
190+
hash="sha256:f7984ff4241d4d135f318a93aa902d910a170a8265b7eaf93b5d9a504eed40c8">
190191
</branch>
191192
<dependencies>
192193
<dep package="gobject-introspection"/>
@@ -220,7 +221,7 @@
220221
<dep package="meta-gtk-osx-bootstrap"/>
221222
</after>
222223
</meson>
223-
224+
224225
<meson id="atk">
225226
<branch module="atk/2.36/atk-2.36.0.tar.xz" version="2.36.0"
226227
hash="sha256:fb76247e369402be23f1f5c65d38a9639c1164d934e40f6a9cf3c9e96b652788"/>
@@ -266,10 +267,9 @@
266267

267268
<!-- gtk3 is in maintenance mode with 3.24 the final release series. -->
268269
<meson id="gtk+-3.0" mesonargs="-Dx11_backend=false">
269-
<branch module="gtk+/3.24/gtk+-3.24.33.tar.xz" version="3.24.33"
270-
hash="sha256:588b06522e25d1579e989b6f9d8a1bdbf2fe13cde01a04e904ff346a225e7801">
271-
<patch file="gtk-3.24.33-remove-gtk4-update-icon-cache-dependency.patch" strip="1"/>
272-
<patch file="gtk-3.24.33-quartz-window-transient-for.patch" strip="1"/>
270+
<branch module="gtk+/3.24/gtk+-3.24.36.tar.xz" version="3.24.36"
271+
hash="sha256:27a6ef157743350c807ffea59baa1d70226dbede82a5e953ffd58ea6059fe691">
272+
<patch file="gtk-3-24-36-image-recolor-load-crash.patch" strip="1"/>
273273
</branch>
274274
<dependencies>
275275
<dep package="glib"/>
@@ -287,8 +287,8 @@
287287

288288
<meson id="graphene" mesonargs="-Dtests=false">
289289
<branch repo="github-tarball" version="1.10.6"
290-
module="ebassi/graphene/releases/download/1.10.6/graphene-1.10.6.tar.xz"/>
291-
<!-- hash="sha256:"/ -->
290+
module="ebassi/graphene/releases/download/1.10.6/graphene-1.10.6.tar.xz"
291+
hash="sha256:80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25"/>
292292
<dependencies>
293293
<dep package="glib"/>
294294
<dep package="gobject-introspection"/>
@@ -300,11 +300,11 @@
300300
<branch repo="github-tarball" version="3.6.5"
301301
module="sass/libsass/archive/refs/tags/3.6.5.tar.gz"
302302
rename-tarball="libsass-3.6.5.tar.gz"
303-
checkoutdir="libsass-3.6.5"/>
304-
<!--hash="sha256:"/ -->
303+
checkoutdir="libsass-3.6.5"
304+
hash="sha256:89d8f2c46ae2b1b826b58ce7dde966a176bac41975b82e84ad46b01a55080582"/>
305305
</autotools>
306306

307-
<meson id="gtk-4" mesonargs="-Dx11-backend=false">
307+
<meson id="gtk-4" mesonargs="-Dx11-backend=false -Dmedia-gstreamer=disabled">
308308
<branch module="gtk/4.6/gtk-4.6.2.tar.xz" version="4.6.2"
309309
hash="sha256:ff263af609a50eb76056653592d929459aef4819a444c436f6d52c6f63c1faec"/>
310310
<dependencies>
@@ -325,11 +325,8 @@
325325
<patch file="gtk-mac-integration-work-around-svg-locale-bug.patch" strip="1"/>
326326
</branch>
327327
<dependencies>
328-
</dependencies>
329-
<after>
330-
<dep package="gtk+-2.0"/>
331328
<dep package="gtk+-3.0"/>
332-
</after>
329+
</dependencies>
333330
</autotools>
334331

335332
<autotools id="librsvg" autogen-sh="autoreconf"
@@ -343,9 +340,9 @@
343340
<dep package="freetype"/>
344341
</dependencies>
345342
<after>
346-
<!-- Circular dependency if we depend on meta-gtk-osx or meta-gtk-osx-gtk3 -->
347-
<dep package="gtk+-2.0"/>
343+
<!-- Circular dependency if we depend on meta-gtk-osx-gtk3 -->
348344
<dep package="gtk+-3.0"/>
345+
<dep package="gtk-4"/>
349346
</after>
350347
</autotools>
351348

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From 40bcba64548bb29b6a6209030eeb06bf13ca98f9 Mon Sep 17 00:00:00 2001
2+
From: John Ralls <[email protected]>
3+
Date: Fri, 23 Dec 2022 13:27:50 -0800
4+
Subject: [PATCH] Don't rely on gtk_icon_info_load_symbolic to set a GError.
5+
6+
---
7+
gtk/gtkcssimagerecolor.c | 7 ++++++-
8+
1 file changed, 6 insertions(+), 1 deletion(-)
9+
10+
diff --git a/gtk/gtkcssimagerecolor.c b/gtk/gtkcssimagerecolor.c
11+
index 1c38654cfa..db7d08f008 100644
12+
--- a/gtk/gtkcssimagerecolor.c
13+
+++ b/gtk/gtkcssimagerecolor.c
14+
@@ -125,12 +125,17 @@ gtk_css_image_recolor_load (GtkCssImageRecolor *recolor,
15+
if (gerror)
16+
{
17+
char *uri;
18+
+ char *msg;
19+
+ if (local_error && local_error->message)
20+
+ msg = local_error->message;
21+
+ else
22+
+ msg = "gtk_icon_info_load_symbolic did not set the passed-in GError.";
23+
24+
uri = g_file_get_uri (url->file);
25+
g_set_error (gerror,
26+
GTK_CSS_PROVIDER_ERROR,
27+
GTK_CSS_PROVIDER_ERROR_FAILED,
28+
- "Error loading image '%s': %s", uri, local_error->message);
29+
+ "Error loading image '%s': %s", uri, msg);
30+
g_error_free (local_error);
31+
g_free (uri);
32+
}
33+
--
34+
2.37.1 (Apple Git-137.1)
35+

modulesets/patches/gtk-3.24.33-quartz-window-transient-for.patch

Lines changed: 0 additions & 46 deletions
This file was deleted.

modulesets/patches/gtk-3.24.33-remove-gtk4-update-icon-cache-dependency.patch

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)