Skip to content

Commit 4ddf96c

Browse files
committed
Dependency version bumps
- Update librsvg to 2.53.3. MXE Updates: - Update OpenJPEG to 2.5.0.
1 parent 65359ac commit 4ddf96c

File tree

6 files changed

+151
-206
lines changed

6 files changed

+151
-206
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
3434
| [libheif] | 1.12.0 | LGPLv3 |
3535
| [libimagequant] | 2.4.1¹ | BSD 2-Clause |
3636
| [libpng] | 1.6.37 | [libpng License version 2] |
37-
| [librsvg] | 2.54.1 | LGPLv3 |
37+
| [librsvg] | 2.54.3 | LGPLv3 |
3838
| [libspng] | 0.7.2 | BSD 2-Clause |
3939
| [libtiff] | 4.3.0 | [libtiff License] (BSD-like) |
4040
| [libvips] | 8.12.2 | LGPLv3 |
@@ -103,7 +103,7 @@ Same as libvips-web + these extra dependencies:
103103
| [matio] | 1.5.23 | BSD 2-Clause |
104104
| [nifticlib] | 3.0.1 | Public domain |
105105
| [openexr] | 3.1.5 | BSD 3-Clause |
106-
| [openjpeg] | 2.4.0 | BSD 2-Clause |
106+
| [openjpeg] | 2.5.0 | BSD 2-Clause |
107107
| [openslide] | 3.4.1 | LGPLv3 |
108108
| [poppler] | 22.05.0 | GPLv2 |
109109
| [sqlite] | 3.38.5 | Public domain |

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="598a5414b2f9d260c5e8a23e9dd7694f829aa53c"
54+
revision="c3ac37bc7e09a55219c4671fd856edb1973a9c42"
5555
initialize=false
5656

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

build/overrides.mk

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ graphicsmagick_FILE := GraphicsMagick-$(graphicsmagick_VERSION).tar.lz
5353
graphicsmagick_URL := https://$(SOURCEFORGE_MIRROR)/project/graphicsmagick/graphicsmagick/$(graphicsmagick_VERSION)/$(graphicsmagick_FILE)
5454

5555
# upstream version is 2.40.21
56-
librsvg_VERSION := 2.54.1
57-
librsvg_CHECKSUM := d5557efbdcc415a4180e1116b7f736cb711b253d110d95fa86ec830f70026625
56+
librsvg_VERSION := 2.54.3
57+
librsvg_CHECKSUM := 66158f2ef46dde260026846c4da102e4a9dd4e5293010f30949c6cc26dd6efe8
5858
librsvg_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/librsvg-[0-9]*.patch)))
5959
librsvg_SUBDIR := librsvg-$(librsvg_VERSION)
6060
librsvg_FILE := librsvg-$(librsvg_VERSION).tar.xz
@@ -228,6 +228,8 @@ zlib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))
228228
# Removed: gettext
229229
# Pixman:
230230
# Added: meson-wrapper
231+
# HarfBuzz:
232+
# Removed: icu4c
231233

232234
libgsf_DEPS := $(filter-out bzip2 ,$(libgsf_DEPS))
233235
freetype_DEPS := $(subst bzip2,meson-wrapper,$(freetype_DEPS))
@@ -249,6 +251,7 @@ fontconfig_DEPS := cc meson-wrapper expat freetype-bootstrap
249251
cfitsio_DEPS := cc zlib
250252
libexif_DEPS := $(filter-out gettext,$(libexif_DEPS))
251253
pixman_DEPS := cc meson-wrapper libpng
254+
harfbuzz_DEPS := $(filter-out icu4c,$(harfbuzz_DEPS))
252255

253256
## Override build scripts
254257

@@ -549,21 +552,21 @@ define librsvg_BUILD
549552
MXE_ENABLE_NETWORK=1 \
550553
$(TARGET)-cargo vendor -s '$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/library/test/Cargo.toml')
551554

552-
$(if $(IS_ARM), \
553-
(cd '$(SOURCE_DIR)' && $(PATCH) -p1 -u) < $(realpath $(dir $(lastword $(librsvg_PATCHES))))/librsvg-arm.patch \
554-
# Update expected Cargo SHA256 hashes for the files we have patched
555-
$(SED) -i 's/3c7fe77a67a34e6641b798f3a67dd6904396011a428f6af82cbec993eb924f0c/1243dd219210ac5178311bd6bb438a845cce1963e0fcb88df8577b1584b9c2a3/' '$(SOURCE_DIR)/vendor/cfg-expr/.cargo-checksum.json'; \
555+
$(if $(IS_LLVM), \
556+
(cd '$(SOURCE_DIR)' && $(PATCH) -p1 -u) < $(realpath $(dir $(lastword $(librsvg_PATCHES))))/librsvg-llvm-mingw.patch \
557+
# Update expected Cargo SHA256 hashes for the vendored files we have patched
558+
$(SED) -i 's/3c7fe77a67a34e6641b798f3a67dd6904396011a428f6af82cbec993eb924f0c/a52dbb88925434e6769aa0a10eec5b0648ea8f8092a9607e0c734b725a55e0ec/' '$(SOURCE_DIR)/vendor/cfg-expr/.cargo-checksum.json'; \
556559
$(SED) -i 's/67578522c146e1e44d44023c7b1b2b9fc65dc239d7c92ba61b2ec839e360ee80/af12eea5309f061da5623c41e711b135bacc9f8fd0507ccb63f5ff2088b62484/' '$(SOURCE_DIR)/vendor/compiler_builtins/.cargo-checksum.json'; \
557560
$(SED) -i 's/ed8e92a9655ef164c62a7c033906c41601ca458b477ae32ad37f89228683c295/bfa574dfa19737edeeef6de682207009a9020e3a980d1bb3b554f46f49792c0d/' '$(SOURCE_DIR)/vendor/compiler_builtins/.cargo-checksum.json'; \
558-
$(SED) -i 's/16a676cf3e4dd544fa05b45e3c7a657bb62c8fae9e97d1cbf20554e9c77fd899/d7197a47ad987accf119f88dfde4b67ded01a2e0698664f76eefafd4e35f850a/' '$(SOURCE_DIR)/vendor/windows-sys/.cargo-checksum.json';)
561+
$(SED) -i 's/966128476fdf0d3148da21508a27a159ad2d272391e4a3ffbf18008300cca80c/ead5a3b748c9a5fcb145fa2e5cfc8df32f383369b8842fba4272ca3b568109ea/' '$(SOURCE_DIR)/vendor/windows-sys/.cargo-checksum.json';)
559562

560563
# Allow libtool to statically link against libintl
561564
# by specifying lt_cv_deplibs_check_method="pass_all"
562565
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
563566
$(MXE_CONFIGURE_OPTS) \
564567
--disable-pixbuf-loader \
565568
--disable-introspection \
566-
RUST_TARGET='$(PROCESSOR)-pc-windows-gnu' \
569+
RUST_TARGET='$(PROCESSOR)-pc-windows-gnu$(if $(IS_LLVM),llvm)' \
567570
CARGO='$(TARGET)-cargo' \
568571
RUSTC='$(TARGET)-rustc' \
569572
$(if $(IS_INTL_DUMMY), lt_cv_deplibs_check_method="pass_all")

build/patches/librsvg-arm.patch renamed to build/patches/librsvg-llvm-mingw.patch

Lines changed: 81 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Kleis Auke Wolthuizen <github@kleisauke.nl>
33
Date: Wed, 5 May 2021 21:00:00 +0200
4-
Subject: [PATCH 1/4] Add llvm-mingw ARM/ARM64 targets
4+
Subject: [PATCH 1/4] Add llvm-mingw targets
55

6+
Upstream-Status: Inappropriate [enable feature]
7+
Upstream only accepts Rust targets that are available in stable releases.
68

79
diff --git a/vendor/cfg-expr/src/targets/builtins.rs b/vendor/cfg-expr/src/targets/builtins.rs
810
index 1111111..2222222 100644
@@ -13,7 +15,7 @@ index 1111111..2222222 100644
1315
endian: Endian::little,
1416
},
1517
+ TargetInfo {
16-
+ triple: Triple::new_const("aarch64-pc-windows-gnu"),
18+
+ triple: Triple::new_const("aarch64-pc-windows-gnullvm"),
1719
+ os: Some(Os::windows),
1820
+ arch: Arch::aarch64,
1921
+ env: Some(Env::gnu),
@@ -30,7 +32,7 @@ index 1111111..2222222 100644
3032
endian: Endian::little,
3133
},
3234
+ TargetInfo {
33-
+ triple: Triple::new_const("armv7-pc-windows-gnu"),
35+
+ triple: Triple::new_const("armv7-pc-windows-gnullvm"),
3436
+ os: Some(Os::windows),
3537
+ arch: Arch::arm,
3638
+ env: Some(Env::gnu),
@@ -42,6 +44,40 @@ index 1111111..2222222 100644
4244
TargetInfo {
4345
triple: Triple::new_const("armv7-unknown-freebsd"),
4446
os: Some(Os::freebsd),
47+
@@ -683,6 +703,16 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
48+
pointer_width: 32,
49+
endian: Endian::little,
50+
},
51+
+ TargetInfo {
52+
+ triple: Triple::new_const("i686-pc-windows-gnullvm"),
53+
+ os: Some(Os::windows),
54+
+ arch: Arch::x86,
55+
+ env: Some(Env::gnu),
56+
+ vendor: Some(Vendor::pc),
57+
+ families: Families::windows,
58+
+ pointer_width: 32,
59+
+ endian: Endian::little,
60+
+ },
61+
TargetInfo {
62+
triple: Triple::new_const("i686-pc-windows-msvc"),
63+
os: Some(Os::windows),
64+
@@ -1573,6 +1603,16 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
65+
pointer_width: 64,
66+
endian: Endian::little,
67+
},
68+
+ TargetInfo {
69+
+ triple: Triple::new_const("x86_64-pc-windows-gnullvm"),
70+
+ os: Some(Os::windows),
71+
+ arch: Arch::x86_64,
72+
+ env: Some(Env::gnu),
73+
+ vendor: Some(Vendor::pc),
74+
+ families: Families::windows,
75+
+ pointer_width: 64,
76+
+ endian: Endian::little,
77+
+ },
78+
TargetInfo {
79+
triple: Triple::new_const("x86_64-pc-windows-msvc"),
80+
os: Some(Os::windows),
4581

4682
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
4783
From: Kleis Auke Wolthuizen <github@kleisauke.nl>
@@ -52,6 +88,8 @@ Details:
5288
lld-link: error: undefined symbol: __aeabi_idiv
5389
>>> referenced by libcompiler_builtins-<HASH>.rlib(<O_FILE>):(__aeabi_idivmod)
5490

91+
Upstream-Status: Pending
92+
5593
diff --git a/vendor/compiler_builtins/build.rs b/vendor/compiler_builtins/build.rs
5694
index 1111111..2222222 100644
5795
--- a/vendor/compiler_builtins/build.rs
@@ -73,6 +111,42 @@ Subject: [PATCH 3/4] Use appropriate fix/float aliases on llvm-mingw
73111

74112
See: https://github.com/llvm/llvm-project/commit/e6407356ba008e474322d52b7d031f65fa4913fc
75113

114+
Details:
115+
ld.lld: error: duplicate symbol: __floatdisf
116+
>>> defined at libclang_rt.builtins-arm.a(floatdisf.c.obj)
117+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
118+
119+
ld.lld: error: duplicate symbol: __floatdidf
120+
>>> defined at libclang_rt.builtins-arm.a(floatdidf.c.obj)
121+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
122+
123+
ld.lld: error: duplicate symbol: __floatundisf
124+
>>> defined at libclang_rt.builtins-arm.a(floatundisf.c.obj)
125+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
126+
127+
ld.lld: error: duplicate symbol: __floatundidf
128+
>>> defined at libclang_rt.builtins-arm.a(floatundidf.c.obj)
129+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
130+
131+
ld.lld: error: duplicate symbol: __fixsfdi
132+
>>> defined at libclang_rt.builtins-arm.a(fixsfdi.c.obj)
133+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
134+
135+
ld.lld: error: duplicate symbol: __fixdfdi
136+
>>> defined at libclang_rt.builtins-arm.a(fixdfdi.c.obj)
137+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
138+
139+
ld.lld: error: duplicate symbol: __fixunssfdi
140+
>>> defined at libclang_rt.builtins-arm.a(fixunssfdi.c.obj)
141+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
142+
143+
ld.lld: error: duplicate symbol: __fixunsdfdi
144+
>>> defined at libclang_rt.builtins-arm.a(fixunsdfdi.c.obj)
145+
>>> defined at libcompiler_builtins-<HASH>.rlib(<O_FILE>)
146+
147+
Upstream-Status: Inappropriate [Windows specific]
148+
This is Windows specific and would break compatibility with other Rust ARMv7 targets.
149+
76150
diff --git a/vendor/compiler_builtins/src/float/conv.rs b/vendor/compiler_builtins/src/float/conv.rs
77151
index 1111111..2222222 100644
78152
--- a/vendor/compiler_builtins/src/float/conv.rs
@@ -160,11 +234,13 @@ error[E0412]: cannot find type `DELAYLOAD_INFO` in this scope
160234
2300 | ..._CALLBACK = ::core::option::Option<unsafe extern "system" fn(notificationreason: u32, delayloadinfo: *const DELAYLOAD_INFO) -> *mut ::...
161235
| - help: you might be missing a type parameter: `<DELAYLOAD_INFO>` ^^^^^^^^^^^^^^ not found in this scope
162236

237+
Upstream-Status: Pending
238+
163239
diff --git a/vendor/windows-sys/src/Windows/Win32/System/WindowsProgramming/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/WindowsProgramming/mod.rs
164240
index 1111111..2222222 100644
165241
--- a/vendor/windows-sys/src/Windows/Win32/System/WindowsProgramming/mod.rs
166242
+++ b/vendor/windows-sys/src/Windows/Win32/System/WindowsProgramming/mod.rs
167-
@@ -1353,7 +1353,7 @@ impl ::core::clone::Clone for DELAYLOAD_INFO {
243+
@@ -1352,7 +1352,7 @@ impl ::core::clone::Clone for DELAYLOAD_INFO {
168244
}
169245
#[repr(C)]
170246
#[doc = "*Required features: `\"Win32_System_WindowsProgramming\"`*"]
@@ -173,7 +249,7 @@ index 1111111..2222222 100644
173249
pub struct DELAYLOAD_INFO {
174250
pub Size: u32,
175251
pub DelayloadDescriptor: *mut IMAGE_DELAYLOAD_DESCRIPTOR,
176-
@@ -1364,9 +1364,9 @@ pub struct DELAYLOAD_INFO {
252+
@@ -1363,9 +1363,9 @@ pub struct DELAYLOAD_INFO {
177253
pub Unused: *mut ::core::ffi::c_void,
178254
pub LastError: u32,
179255
}

0 commit comments

Comments
 (0)