Skip to content

Commit 39e9e1e

Browse files
committed
Dependency version bumps
- Update GLib to 2.73.1. MXE Updates: - Update SQLite to 3.39.0.
1 parent ea33b02 commit 39e9e1e

File tree

7 files changed

+41
-92
lines changed

7 files changed

+41
-92
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
2525
| [freetype] | 2.12.1 | [freetype Licence] (BSD-like) |
2626
| [fribidi] | 1.0.12 | LGPLv3 |
2727
| [gdk-pixbuf] | 2.42.8 | LGPLv3 |
28-
| [glib] | 2.73.0 | LGPLv3 |
28+
| [glib] | 2.73.1 | LGPLv3 |
2929
| [harfbuzz] | 4.3.0 | MIT Licence |
3030
| [lcms] | 2.13.1 | MIT Licence |
3131
| [libexif] | 0.6.24 | LGPLv3 |
@@ -108,7 +108,7 @@ Same as libvips-web + these extra dependencies:
108108
| [openjpeg] | 2.5.0 | BSD 2-Clause |
109109
| [openslide] | 3.4.1 | LGPLv3 |
110110
| [poppler] | 22.06.0 | GPLv2 |
111-
| [sqlite] | 3.38.5 | Public domain |
111+
| [sqlite] | 3.39.0 | Public domain |
112112

113113
[brotli]: https://github.com/google/brotli
114114
[cfitsio]: https://heasarc.gsfc.nasa.gov/fitsio/

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fi
5151
# Always checkout a particular revision which will successfully build.
5252
# This ensures that it will not suddenly break a build.
5353
# Note: Must be regularly updated.
54-
revision="7771847b4212235b48e7270331ba82e791704a03"
54+
revision="3e8d0071d384f5b76e2ccdaf26b4f1fa89b85aa7"
5555
initialize=false
5656

5757
if [ -f "$mxe_dir/Makefile" ]; then

build/overrides.mk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ fribidi_FILE := fribidi-$(fribidi_VERSION).tar.xz
7979
fribidi_URL := https://github.com/fribidi/fribidi/releases/download/v$(fribidi_VERSION)/$(fribidi_FILE)
8080

8181
# upstream version is 2.70.2
82-
glib_VERSION := 2.73.0
83-
glib_CHECKSUM := 3673f10515f4bcfb9ee2ce0a921a18fa359c36fab388b19819467e7b09506870
82+
glib_VERSION := 2.73.1
83+
glib_CHECKSUM := 77b21da5bd195a8e5f751206a2acab477636e3d02fe4f3796ede5788255382ae
8484
glib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/glib-[0-9]*.patch)))
8585
glib_SUBDIR := glib-$(glib_VERSION)
8686
glib_FILE := glib-$(glib_VERSION).tar.xz
@@ -736,11 +736,11 @@ define glib_BUILD
736736

737737
# Build as shared library, since we need `libgobject-2.0-0.dll`
738738
# and `libglib-2.0-0.dll` for the language bindings.
739-
# Enable networking to allow libpcre to be downloaded from WrapDB
739+
# Enable networking to allow gvdb and libpcre to be downloaded
740+
# from WrapDB
740741
MXE_ENABLE_NETWORK=1 $(MXE_MESON_WRAPPER) \
741742
--default-library=shared \
742-
--force-fallback-for=libpcre \
743-
-Dforce_posix_threads=false \
743+
--force-fallback-for=gvdb,libpcre \
744744
-Dnls=disabled \
745745
'$(SOURCE_DIR)' \
746746
'$(BUILD_DIR)'

build/patches/glib-2-fixes.patch

Lines changed: 23 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -4,84 +4,35 @@ Contains ad hoc patches for cross building.
44

55
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66
From: Kleis Auke Wolthuizen <github@kleisauke.nl>
7-
Date: Wed, 1 Jul 2020 12:30:21 +0200
8-
Subject: [PATCH 1/2] Revert "meson: Fix underlinking of static libintl by trying
9-
iconv and pthread"
7+
Date: Fri, 24 Jun 2022 11:15:23 +0200
8+
Subject: [PATCH 1/1] Ensure standalone intl support library can be found
109

11-
This reverts commit 56271ff27119f0b6b7dc6cc0c081d64bec06b473 as it causes
12-
issues with a statically built libintl on MinGW-w64.
10+
See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2109#note_1485662
1311

14-
diff --git a/glib/meson.build b/glib/meson.build
15-
index 1111111..2222222 100644
16-
--- a/glib/meson.build
17-
+++ b/glib/meson.build
18-
@@ -375,19 +375,19 @@ libglib = library('glib-2.0',
19-
link_args : [noseh_link_args, glib_link_flags, win32_ldflags],
20-
include_directories : configinc,
21-
link_with: [charset_lib, gnulib_lib],
22-
- dependencies : [pcre, thread_dep, librt] + libintl_deps + libiconv + platform_deps + [gnulib_libm_dependency, libm] + [libsysprof_capture_dep],
23-
+ dependencies : [pcre, thread_dep, libintl, librt] + libiconv + platform_deps + [gnulib_libm_dependency, libm] + [libsysprof_capture_dep],
24-
c_args : glib_c_args,
25-
objc_args : glib_c_args,
26-
)
27-
28-
libglib_dep = declare_dependency(
29-
link_with : libglib,
30-
- dependencies : libintl_deps,
31-
+ dependencies : libintl,
32-
# We sadly need to export configinc here because everyone includes <glib/*.h>
33-
include_directories : [configinc, glibinc])
34-
35-
pkg.generate(libglib,
36-
- libraries : [libintl_deps],
37-
+ libraries : [libintl],
38-
libraries_private : [win32_ldflags],
39-
subdirs : ['glib-2.0'],
40-
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
4112
diff --git a/meson.build b/meson.build
4213
index 1111111..2222222 100644
4314
--- a/meson.build
4415
+++ b/meson.build
45-
@@ -2030,40 +2030,17 @@ endif
46-
# proxy-libintl subproject.
47-
# FIXME: glib-gettext.m4 has much more checks to detect broken/uncompatible
48-
# implementations. This could be extended if issues are found in some platforms.
49-
-libintl_deps = []
50-
if cc.has_function('ngettext')
51-
+ libintl = []
52-
have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset')
53-
else
54-
- # First just find the bare library.
55-
libintl = cc.find_library('intl', required : false)
56-
- # The bare library probably won't link without help if it's static.
57-
- if libintl.found() and not cc.has_function('ngettext', dependencies : libintl)
58-
- libintl_iconv = cc.find_library('iconv', required : false)
59-
- # libintl supports different threading APIs, which may not
60-
- # require additional flags, but it defaults to using pthreads if
61-
- # found. Meson's "threads" dependency does not allow you to
62-
- # prefer pthreads. We may not be using pthreads for glib itself
63-
- # either so just link the library to satisfy libintl rather than
64-
- # also defining the macros with the -pthread flag.
65-
- libintl_pthread = cc.find_library('pthread', required : false)
66-
- # Try linking with just libiconv.
67-
- if libintl_iconv.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_iconv])
68-
- libintl_deps += [libintl_iconv]
69-
- # Then also try linking with pthreads.
70-
- elif libintl_iconv.found() and libintl_pthread.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_iconv, libintl_pthread])
71-
- libintl_deps += [libintl_iconv, libintl_pthread]
72-
- else
73-
- libintl = disabler()
74-
- endif
75-
- endif
76-
if not libintl.found()
77-
libintl = subproject('proxy-libintl').get_variable('intl_dep')
78-
- libintl_deps = [libintl] + libintl_deps
79-
have_bind_textdomain_codeset = true # proxy-libintl supports it
16+
@@ -2065,11 +2065,11 @@ if libintl.found()
17+
#
18+
# Meson's builtin dependency lookup as of 0.60.0 doesn't check for
19+
# pthread, so we do this manually here.
20+
- if cc.has_function('ngettext', dependencies : libintl)
21+
+ if cc.has_function('ngettext', prefix: '#include <libintl.h>', dependencies : libintl)
22+
libintl_deps += [libintl]
8023
else
81-
- libintl_deps = [libintl] + libintl_deps
82-
have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset',
83-
- dependencies : libintl_deps)
84-
+ dependencies : libintl)
85-
endif
24+
libintl_pthread = cc.find_library('pthread', required : false)
25+
- if libintl_pthread.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_pthread])
26+
+ if libintl_pthread.found() and cc.has_function('ngettext', prefix: '#include <libintl.h>', dependencies : [libintl, libintl_pthread])
27+
libintl_deps += [libintl, libintl_pthread]
28+
else
29+
libintl = disabler()
30+
@@ -2078,7 +2078,7 @@ if libintl.found()
8631
endif
8732

33+
if libintl.found()
34+
- have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset', dependencies: libintl_deps)
35+
+ have_bind_textdomain_codeset = cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>', dependencies: libintl_deps)
36+
else
37+
libintl = subproject('proxy-libintl').get_variable('intl_dep')
38+
libintl_deps = [libintl]

build/patches/glib-static.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ diff --git a/gio/meson.build b/gio/meson.build
5454
index 1111111..2222222 100644
5555
--- a/gio/meson.build
5656
+++ b/gio/meson.build
57-
@@ -800,12 +800,9 @@ else
57+
@@ -802,12 +802,9 @@ else
5858
gio_dtrace_hdr = []
5959
endif
6060

build/plugins/llvm-mingw/patches/rust-1-fixes.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ diff --git a/compiler/rustc_target/src/spec/mod.rs b/compiler/rustc_target/src/s
6363
index 1111111..2222222 100644
6464
--- a/compiler/rustc_target/src/spec/mod.rs
6565
+++ b/compiler/rustc_target/src/spec/mod.rs
66-
@@ -950,7 +950,9 @@ supported_targets! {
66+
@@ -952,7 +952,9 @@ supported_targets! {
6767
("x86_64-uwp-windows-gnu", x86_64_uwp_windows_gnu),
6868

6969
("aarch64-pc-windows-gnullvm", aarch64_pc_windows_gnullvm),

build/plugins/llvm-mingw/rust.mk

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ PKG := rust
22
$(PKG)_WEBSITE := https://www.rust-lang.org/
33
$(PKG)_DESCR := A systems programming language focused on safety, speed and concurrency.
44
$(PKG)_IGNORE :=
5-
# https://static.rust-lang.org/dist/2022-06-20/rustc-nightly-src.tar.xz.sha256
5+
# https://static.rust-lang.org/dist/2022-06-26/rustc-nightly-src.tar.xz.sha256
66
$(PKG)_VERSION := nightly
7-
$(PKG)_CHECKSUM := 8ae98efd12756c35ce3d808e1de97dc0561e1a8f5db5f89ff9bca1dbc36adc2b
7+
$(PKG)_CHECKSUM := a600c43ab32bd4bc3c8069926fe2b8344e304a9e90e0bd8e1cd68f9ce22037cd
88
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
99
$(PKG)_SUBDIR := $(PKG)c-$($(PKG)_VERSION)-src
1010
$(PKG)_FILE := $(PKG)c-$($(PKG)_VERSION)-src.tar.xz
11-
$(PKG)_URL := https://static.rust-lang.org/dist/2022-06-20/$($(PKG)_FILE)
11+
$(PKG)_URL := https://static.rust-lang.org/dist/2022-06-26/$($(PKG)_FILE)
1212
$(PKG)_DEPS := $(BUILD)~$(PKG)
1313
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
1414

@@ -32,12 +32,13 @@ define $(PKG)_BUILD_$(BUILD)
3232
$(eval unexport CXXFLAGS)
3333
$(eval unexport LDFLAGS)
3434

35+
# TODO(kleisauke): Build with --enable-vendor if we are no longer
36+
# patching panic_unwind/unwind.
3537
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
3638
--prefix='$(PREFIX)/$(BUILD)' \
3739
--sysconfdir='etc' \
3840
--release-channel=nightly \
3941
--enable-extended \
40-
--enable-vendor \
4142
--tools=cargo,src \
4243
--disable-docs \
4344
--disable-codegen-tests \
@@ -57,13 +58,10 @@ define $(PKG)_BUILD_$(BUILD)
5758
# stored in the build directory.
5859
$(eval export CARGO_HOME := $(BUILD_DIR)/.cargo)
5960

60-
# Build Rust
61+
# Build and install Rust
62+
# Note: we are only interested in the stage1 compiler
6163
cd '$(BUILD_DIR)' && \
62-
$(PYTHON3) $(SOURCE_DIR)/x.py build -j '$(JOBS)' -v
63-
64-
# Install Rust
65-
cd '$(BUILD_DIR)' && \
66-
$(PYTHON3) $(SOURCE_DIR)/x.py install --keep-stage 1 -j '$(JOBS)' -v
64+
$(PYTHON3) $(SOURCE_DIR)/x.py install --stage 1 -j '$(JOBS)' -v
6765

6866
# Copy the Cargo.lock for Rust to places `vendor` will see
6967
# https://github.com/rust-lang/wg-cargo-std-aware/issues/23#issuecomment-720455524

0 commit comments

Comments
 (0)