Skip to content

Commit 953ed02

Browse files
committed
Update for 8.15.3
- Update libheif to 1.18.2.
1 parent 896ccdb commit 953ed02

13 files changed

+146
-53
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ Run the top-level [build script](build.sh) with the `--help` parameter for help.
3131
| [libarchive] | 3.7.4 | BSD 2-Clause |
3232
| [libexif] | 0.6.24 | LGPLv3 |
3333
| [libffi] | 3.4.6 | MIT Licence |
34-
| [libheif] | 1.18.1 | LGPLv3 |
34+
| [libheif] | 1.18.2 | LGPLv3 |
3535
| [libimagequant] | 2.4.1¹ | BSD 2-Clause |
3636
| [libpng] | 1.6.43 | [libpng License version 2] |
3737
| [librsvg] | 2.58.93 | LGPLv3 |
3838
| [libspng] | 0.7.4 | BSD 2-Clause |
3939
| [libtiff] | 4.6.0 | [libtiff License] (BSD-like) |
40-
| [libvips] | 8.15.1 | LGPLv3 |
40+
| [libvips] | 8.15.3 | LGPLv3 |
4141
| [libwebp] | 1.4.0 | New BSD License |
4242
| [libxml2] | 2.13.3 | MIT Licence |
4343
| [mozjpeg] | 4.1.5 | [zlib License, IJG License, BSD-3-Clause] |

Diff for: build/cargo-c.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PKG := cargo-c
22
$(PKG)_WEBSITE := https://github.com/lu-zero/cargo-c
33
$(PKG)_DESCR := cargo applet to build and install C-ABI compatibile libraries
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 0.10.2
6-
$(PKG)_CHECKSUM := 0217c26fee99f3af867ce52719a39349d19ec6cfac084eea3901f8046f4607c6
5+
$(PKG)_VERSION := 0.10.3
6+
$(PKG)_CHECKSUM := 922171afb3ceaf6553ff3916ae4663d3743ba22f80725f2300a26b76eb6eb94f
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
88
$(PKG)_GH_CONF := lu-zero/cargo-c/tags,v
99
$(PKG)_TARGETS := $(BUILD)

Diff for: build/libheif.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PKG := libheif
22
$(PKG)_WEBSITE := http://www.libheif.org/
33
$(PKG)_DESCR := libheif is a ISO/IEC 23008-12:2017 HEIF file format decoder and encoder.
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 1.18.1
6-
$(PKG)_CHECKSUM := 8702564b0f288707ea72b260b3bf4ba9bf7abfa7dac01353def3a86acd6bbb76
5+
$(PKG)_VERSION := 1.18.2
6+
$(PKG)_CHECKSUM := c4002a622bec9f519f29d84bfdc6024e33fd67953a5fb4dc2c2f11f67d5e45bf
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/$(PKG)-[0-9]*.patch)))
88
$(PKG)_GH_CONF := strukturag/libheif/releases,v
99
$(PKG)_DEPS := cc aom

Diff for: build/overrides.mk

+3-3
Original file line numberDiff line numberDiff line change
@@ -560,14 +560,14 @@ define librsvg_BUILD
560560
$(if $(IS_LLVM), \
561561
cd '$(BUILD_DIR)' && \
562562
MXE_ENABLE_NETWORK=1 \
563-
cargo vendor --manifest-path '$(SOURCE_DIR)/Cargo.toml' -s '$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/library/sysroot/Cargo.toml')
563+
cargo vendor --manifest-path '$(SOURCE_DIR)/Cargo.toml' -s '$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/library/Cargo.toml')
564564

565565
$(if $(IS_LLVM), \
566566
(cd '$(BUILD_DIR)' && $(PATCH) -p1 -u) < $(realpath $(dir $(lastword $(librsvg_PATCHES))))/librsvg-llvm-mingw.patch \
567567
# Update expected Cargo SHA256 hashes for the vendored files we have patched
568568
$(SED) -i 's/ddb4a16b289d368cc5c02080e67e2fd66091eed0b8478dfdb05006469494f6b0/42daa223b23e5df3f03e9da95e1e61411bfe507cba5a403bb6b8867892a95db0/' '$(BUILD_DIR)/vendor/cfg-expr/.cargo-checksum.json'; \
569-
$(SED) -i 's/666c050a52920a8eda20d9d2f2e645cb09660d5c17ce549c233a05c53ae6799b/525fa47360e61be4f017863ed397fd59ac23ac6e625175210efd2c96b7ae687c/' '$(BUILD_DIR)/vendor/compiler_builtins/.cargo-checksum.json'; \
570-
$(SED) -i 's/995997abcd5cb764c07fb27c9e2af82f1b713d8ae0577fc9e2d9fff9a5b997e8/4c6478a4de07f25c72d3b62dee381ef706df0c4de0d363e2029c415508e873bc/' '$(BUILD_DIR)/vendor/compiler_builtins/.cargo-checksum.json'; \
569+
$(SED) -i 's/d30364448703ab32cd2464745f9bbba314a7cee09c48f51027e532655b91b27b/58c03e8aea8836fabb019ede1e532e4839252e5194cc21abade4206786f986da/' '$(BUILD_DIR)/vendor/compiler_builtins/.cargo-checksum.json'; \
570+
$(SED) -i 's/a7be2be8ecb1feaafd2c22847d27f1a86d1090e771bd7097af831b1c94ba5bb4/ad4a2305fce53f883715d22d6f1f7b5f2175bc4790fcd541a4b7059d74781fc0/' '$(BUILD_DIR)/vendor/compiler_builtins/.cargo-checksum.json'; \
571571
$(SED) -i 's/204bc39a8213167dcab8dd273c57e5fae3afbac8fa3887dbe43ad082d55446e4/0e8c4e6440c5377f487918f16a8ea80aae53fa4d47e495a9e9c0119b575db0ab/' '$(BUILD_DIR)/vendor/windows-sys/.cargo-checksum.json'; \
572572
# Install Cargo config
573573
$(INSTALL) -d '$(BUILD_DIR)/.cargo'

Diff for: build/patches/cargo-c-0.10-fixes.patch

+45-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Kleis Auke Wolthuizen <[email protected]>
33
Date: Sat, 2 Jan 2021 20:00:00 +0100
4-
Subject: [PATCH 1/1] Add llvm-mingw armv7 dlltool target
4+
Subject: [PATCH 1/2] Add llvm-mingw armv7 dlltool target
55

66
Upstream-Status: Inappropriate [enable feature]
77
armv7-pc-windows-gnullvm is not an officially supported Rust target.
@@ -18,3 +18,47 @@ index 1111111..2222222 100644
1818
_ => unimplemented!("Windows support for {} is not implemented yet.", arch),
1919
};
2020

21+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22+
From: Kleis Auke Wolthuizen <[email protected]>
23+
Date: Sat, 10 Aug 2024 11:43:45 +0200
24+
Subject: [PATCH 2/2] Bump cargo to rust-lang/cargo@50237f4
25+
26+
To fix the build with `-Zbuild-std`.
27+
28+
diff --git a/Cargo.toml b/Cargo.toml
29+
index 1111111..2222222 100644
30+
--- a/Cargo.toml
31+
+++ b/Cargo.toml
32+
@@ -28,8 +28,8 @@ name = "cargo-ctest"
33+
path = "src/bin/ctest.rs"
34+
35+
[dependencies]
36+
-cargo = "0.81.0"
37+
-cargo-util = "0.2"
38+
+cargo = { git = "https://github.com/rust-lang/cargo.git", rev = "50237f4" }
39+
+cargo-util = { git = "https://github.com/rust-lang/cargo.git", rev = "50237f4" }
40+
semver = "1.0.3"
41+
log = "0.4"
42+
clap = { version = "4.0.29", features = ["color", "derive", "cargo", "string"] }
43+
diff --git a/src/build.rs b/src/build.rs
44+
index 1111111..2222222 100644
45+
--- a/src/build.rs
46+
+++ b/src/build.rs
47+
@@ -1071,7 +1071,7 @@ pub fn cbuild(
48+
let only_staticlib = !libkinds.contains(&"cdylib");
49+
let only_cdylib = !libkinds.contains(&"staticlib");
50+
51+
- let profile = args.get_profile_name(config, default_profile, ProfileChecking::Custom)?;
52+
+ let profile = args.get_profile_name(default_profile, ProfileChecking::Custom)?;
53+
54+
let profiles = Profiles::new(ws, profile)?;
55+
56+
@@ -1258,7 +1258,7 @@ pub fn ctest(
57+
mut compile_opts: CompileOptions,
58+
) -> CliResult {
59+
compile_opts.build_config.requested_profile =
60+
- args.get_profile_name(config, "test", ProfileChecking::Custom)?;
61+
+ args.get_profile_name("test", ProfileChecking::Custom)?;
62+
compile_opts.build_config.mode = CompileMode::Test;
63+
64+
compile_opts.filter = ops::CompileFilter::new(

Diff for: build/patches/librsvg-llvm-mingw.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ diff --git a/vendor/compiler_builtins/build.rs b/vendor/compiler_builtins/build.
4646
index 1111111..2222222 100644
4747
--- a/vendor/compiler_builtins/build.rs
4848
+++ b/vendor/compiler_builtins/build.rs
49-
@@ -421,7 +421,7 @@ mod c {
49+
@@ -502,7 +502,7 @@ mod c {
5050
}
5151
}
5252

53-
- if target_arch == "arm" && target_vendor != "apple" && target_env != "msvc" {
54-
+ if target_arch == "arm" && target_vendor != "apple" && target_os != "windows" {
53+
- if target.arch == "arm" && target.vendor != "apple" && target.env != "msvc" {
54+
+ if target.arch == "arm" && target.vendor != "apple" && target.os != "windows" {
5555
sources.extend(&[
5656
("__aeabi_div0", "arm/aeabi_div0.c"),
5757
("__aeabi_drsub", "arm/aeabi_drsub.c"),

Diff for: build/patches/vips-8-dlldir-as-libdir.patch

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ diff --git a/libvips/include/vips/util.h b/libvips/include/vips/util.h
99
index 1111111..2222222 100644
1010
--- a/libvips/include/vips/util.h
1111
+++ b/libvips/include/vips/util.h
12-
@@ -428,6 +428,7 @@ guint32 vips__random(guint32 seed);
12+
@@ -427,6 +427,7 @@ guint32 vips__random(guint32 seed);
1313
guint32 vips__random_add(guint32 seed, int value);
1414

1515
const char *vips__icc_dir(void);
@@ -21,7 +21,7 @@ diff --git a/libvips/iofuncs/init.c b/libvips/iofuncs/init.c
2121
index 1111111..2222222 100644
2222
--- a/libvips/iofuncs/init.c
2323
+++ b/libvips/iofuncs/init.c
24-
@@ -1165,6 +1165,12 @@ vips_guess_prefix(const char *argv0, const char *env_name)
24+
@@ -1171,6 +1171,12 @@ vips_guess_prefix(const char *argv0, const char *env_name)
2525
const char *
2626
vips_guess_libdir(const char *argv0, const char *env_name)
2727
{
@@ -34,7 +34,7 @@ index 1111111..2222222 100644
3434
const char *prefix = vips_guess_prefix(argv0, env_name);
3535
static char *libdir = NULL;
3636

37-
@@ -1189,6 +1195,7 @@ vips_guess_libdir(const char *argv0, const char *env_name)
37+
@@ -1195,6 +1201,7 @@ vips_guess_libdir(const char *argv0, const char *env_name)
3838
libdir = g_strdup_printf("%s/lib", prefix);
3939

4040
return libdir;
@@ -46,7 +46,7 @@ diff --git a/libvips/iofuncs/util.c b/libvips/iofuncs/util.c
4646
index 1111111..2222222 100644
4747
--- a/libvips/iofuncs/util.c
4848
+++ b/libvips/iofuncs/util.c
49-
@@ -1999,6 +1999,54 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
49+
@@ -1980,6 +1980,54 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
5050
return TRUE;
5151
}
5252
#endif

Diff for: build/patches/vips-8-heifsave-disable-hbr-support.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ diff --git a/libvips/foreign/heifsave.c b/libvips/foreign/heifsave.c
1818
index 1111111..2222222 100644
1919
--- a/libvips/foreign/heifsave.c
2020
+++ b/libvips/foreign/heifsave.c
21-
@@ -501,15 +501,10 @@ vips_foreign_save_heif_build(VipsObject *object)
22-
!vips_object_argument_isset(object, "effort"))
23-
heif->effort = 9 - heif->speed;
21+
@@ -525,15 +525,10 @@ vips_foreign_save_heif_build(VipsObject *object)
22+
!vips_object_argument_isset(object, "subsample_mode"))
23+
heif->subsample_mode = VIPS_FOREIGN_SUBSAMPLE_OFF;
2424

2525
- /* Default 12 bit save for 16-bit images. HEIC (for example) implements
2626
- * 8 / 10 / 12.
@@ -38,7 +38,7 @@ index 1111111..2222222 100644
3838

3939
/* Try to find the selected encoder.
4040
*/
41-
@@ -651,14 +646,10 @@ vips_foreign_save_heif_build(VipsObject *object)
41+
@@ -675,14 +670,10 @@ vips_foreign_save_heif_build(VipsObject *object)
4242
}
4343

4444
#define UC VIPS_FORMAT_UCHAR
@@ -54,7 +54,7 @@ index 1111111..2222222 100644
5454
};
5555

5656
static void
57-
@@ -693,7 +684,7 @@ vips_foreign_save_heif_class_init(VipsForeignSaveHeifClass *class)
57+
@@ -717,7 +708,7 @@ vips_foreign_save_heif_class_init(VipsForeignSaveHeifClass *class)
5858
_("Number of bits per pixel"),
5959
VIPS_ARGUMENT_OPTIONAL_INPUT,
6060
G_STRUCT_OFFSET(VipsForeignSaveHeif, bitdepth),
@@ -63,7 +63,7 @@ index 1111111..2222222 100644
6363

6464
VIPS_ARG_BOOL(class, "lossless", 13,
6565
_("Lossless"),
66-
@@ -746,7 +737,7 @@ vips_foreign_save_heif_init(VipsForeignSaveHeif *heif)
66+
@@ -770,7 +761,7 @@ vips_foreign_save_heif_init(VipsForeignSaveHeif *heif)
6767
{
6868
heif->ctx = heif_context_alloc();
6969
heif->Q = 50;

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

+67-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Contains ad hoc patches for cross building.
55
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
66
From: Kleis Auke Wolthuizen <[email protected]>
77
Date: Tue, 15 Sep 2020 11:50:00 +0200
8-
Subject: [PATCH 1/4] Add `armv7-pc-windows-gnullvm` triple
8+
Subject: [PATCH 1/5] Add `armv7-pc-windows-gnullvm` triple
99

1010
Upstream-Status: Pending
1111

@@ -54,7 +54,7 @@ index 1111111..2222222 100644
5454
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5555
From: Kleis Auke Wolthuizen <[email protected]>
5656
Date: Tue, 22 Sep 2020 10:00:00 +0200
57-
Subject: [PATCH 2/4] std/unwind: Fix linker errors on `armv7-pc-windows-gnullvm`
57+
Subject: [PATCH 2/5] std/unwind: Fix linker errors on `armv7-pc-windows-gnullvm`
5858

5959
Details:
6060
ld.lld: error: undefined symbol: __gnu_unwind_frame
@@ -106,7 +106,7 @@ index 1111111..2222222 100644
106106
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
107107
From: Kleis Auke Wolthuizen <[email protected]>
108108
Date: Tue, 30 Aug 2022 23:20:27 +0200
109-
Subject: [PATCH 3/4] windows-gnullvm: Avoid linking to libunwind statically
109+
Subject: [PATCH 3/5] windows-gnullvm: Avoid linking to libunwind statically
110110

111111
Avoid linking against the static variant of libunwind, which is not
112112
always available. Instead, prefer to use the unwind library from the
@@ -155,7 +155,7 @@ index 1111111..2222222 100644
155155
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
156156
From: Kleis Auke Wolthuizen <[email protected]>
157157
Date: Mon, 17 Oct 2022 11:50:00 +0200
158-
Subject: [PATCH 4/4] Use GCC-style unwinding on MinGW targets other than i686
158+
Subject: [PATCH 4/5] Use GCC-style unwinding on MinGW targets other than i686
159159

160160
See: https://github.com/msys2/MINGW-packages/pull/13278
161161

@@ -200,3 +200,66 @@ index 1111111..2222222 100644
200200
// We declare these as opaque types. This is fine since you just need to
201201
// pass them to _GCC_specific_handler and forget about them.
202202
pub enum EXCEPTION_RECORD {}
203+
204+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
205+
From: Kleis Auke Wolthuizen <[email protected]>
206+
Date: Tue, 16 Apr 2024 15:51:34 +0000
207+
Subject: [PATCH 5/5] std: revert use of `raw-dylib`
208+
209+
See: https://github.com/msys2/MINGW-packages/issues/21017
210+
211+
diff --git a/library/std/src/sys/pal/windows/c.rs b/library/std/src/sys/pal/windows/c.rs
212+
index 1111111..2222222 100644
213+
--- a/library/std/src/sys/pal/windows/c.rs
214+
+++ b/library/std/src/sys/pal/windows/c.rs
215+
@@ -112,7 +112,7 @@ pub struct MOUNT_POINT_REPARSE_BUFFER {
216+
217+
// Use raw-dylib to import ProcessPrng as we can't rely on there being an import library.
218+
cfg_if::cfg_if! {
219+
-if #[cfg(not(target_vendor = "win7"))] {
220+
+if #[cfg(any())] {
221+
#[cfg(target_arch = "x86")]
222+
#[link(name = "bcryptprimitives", kind = "raw-dylib", import_name_type = "undecorated")]
223+
extern "system" {
224+
@@ -157,19 +157,7 @@ pub fn GetTempPath2W(bufferlength: u32, buffer: PWSTR) -> u32 {
225+
}
226+
227+
#[cfg(not(target_vendor = "win7"))]
228+
-// Use raw-dylib to import synchronization functions to workaround issues with the older mingw import library.
229+
-#[cfg_attr(
230+
- target_arch = "x86",
231+
- link(
232+
- name = "api-ms-win-core-synch-l1-2-0",
233+
- kind = "raw-dylib",
234+
- import_name_type = "undecorated"
235+
- )
236+
-)]
237+
-#[cfg_attr(
238+
- not(target_arch = "x86"),
239+
- link(name = "api-ms-win-core-synch-l1-2-0", kind = "raw-dylib")
240+
-)]
241+
+#[link(name = "synchronization")]
242+
extern "system" {
243+
pub fn WaitOnAddress(
244+
address: *const c_void,
245+
diff --git a/library/std/src/sys/pal/windows/rand.rs b/library/std/src/sys/pal/windows/rand.rs
246+
index 1111111..2222222 100644
247+
--- a/library/std/src/sys/pal/windows/rand.rs
248+
+++ b/library/std/src/sys/pal/windows/rand.rs
249+
@@ -2,7 +2,7 @@
250+
251+
use crate::sys::c;
252+
253+
-#[cfg(not(target_vendor = "win7"))]
254+
+#[cfg(any())]
255+
#[inline]
256+
pub fn hashmap_random_keys() -> (u64, u64) {
257+
let mut v = (0, 0);
258+
@@ -13,7 +13,6 @@ pub fn hashmap_random_keys() -> (u64, u64) {
259+
v
260+
}
261+
262+
-#[cfg(target_vendor = "win7")]
263+
pub fn hashmap_random_keys() -> (u64, u64) {
264+
use crate::ffi::c_void;
265+
use crate::io;

Diff for: build/plugins/llvm-mingw/rust.mk

+7-21
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/2024-08-05/rustc-nightly-src.tar.xz.sha256
5+
# https://static.rust-lang.org/dist/2024-08-11/rustc-nightly-src.tar.xz.sha256
66
$(PKG)_VERSION := nightly
7-
$(PKG)_CHECKSUM := 49657b6ce056360c7d9e3b9e619761ddd2c7b41b98f18b34232e6da9d9f1fa55
7+
$(PKG)_CHECKSUM := d9af0978ab441b62e806dc234b25266377f0b9c936ae2dbded3e4941616f2d09
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/2024-08-05/$($(PKG)_FILE)
11+
$(PKG)_URL := https://static.rust-lang.org/dist/2024-08-11/$($(PKG)_FILE)
1212
$(PKG)_DEPS := $(BUILD)~$(PKG)
1313
$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS)
1414

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

35-
# ld.lld: error: librsvg_c_api.a(bcryptprimitives.dll): .idata$4 should not refer to special section 0
36-
(cd '$(SOURCE_DIR)' && $(PATCH) -p1 -u) < \
37-
'$(SOURCE_DIR)/compiler/rustc_codegen_cranelift/patches/0029-stdlib-rawdylib-processprng.patch'
38-
39-
# libtool: error: object name conflicts in archive: .libs/librsvg-2.lax/librsvg_c_api.a//<<BUILDDIR>>/./.libs/librsvg_c_api.a
40-
(cd '$(SOURCE_DIR)' && $(PATCH) -p1 -u) < \
41-
'$(SOURCE_DIR)/compiler/rustc_codegen_cranelift/patches/0030-stdlib-Revert-use-raw-dylib-for-Windows-futex-APIs.patch'
42-
43-
# TODO(kleisauke): Build with --enable-vendor if we are no longer
44-
# patching panic_unwind/unwind.
4535
cd '$(BUILD_DIR)' && $(SOURCE_DIR)/configure \
4636
--prefix='$(PREFIX)/$(BUILD)' \
4737
--sysconfdir='etc' \
4838
--release-channel=nightly \
39+
--enable-vendor \
4940
--enable-extended \
5041
--tools=cargo,src \
5142
--disable-docs \
@@ -72,11 +63,6 @@ define $(PKG)_BUILD_$(BUILD)
7263
cd '$(BUILD_DIR)' && \
7364
$(PYTHON3) $(SOURCE_DIR)/x.py install --stage 1 -j '$(JOBS)' -v
7465

75-
# Copy the Cargo.lock for Rust to places `vendor` will see
76-
# https://github.com/rust-lang/wg-cargo-std-aware/issues/23#issuecomment-720455524
77-
# https://github.com/rust-lang/cargo/pull/12088
78-
cp '$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/Cargo.lock' '$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/library/sysroot'
79-
8066
# `c` feature of the `compiler-builtins` crate needs the
8167
# compiler-rt sources from LLVM
8268
$(call PREPARE_PKG_SOURCE,llvm,$(BUILD_DIR))
@@ -89,7 +75,7 @@ define $(PKG)_BUILD
8975

9076
# Build and prepare startup objects like rsbegin.o and rsend.o
9177
$(foreach FILE, rsbegin rsend, \
92-
$(PREFIX)/$(BUILD)/bin/rustc -Ainternal_features --target='$(TARGET_RUST)' --emit=obj -o '$(BUILD_DIR)/$(FILE).o' \
78+
$(PREFIX)/$(BUILD)/bin/rustc --target='$(TARGET_RUST)' --emit=obj -o '$(BUILD_DIR)/$(FILE).o' \
9379
'$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/library/rtstartup/$(FILE).rs';)
9480

9581
# Install the startup objects
@@ -107,7 +93,7 @@ define $(PKG)_BUILD
10793
echo 'CC_$(TARGET_RUST) = "$(TARGET)-clang"'; \
10894
echo 'RUST_COMPILER_RT_ROOT = "$(PREFIX)/$(BUILD)/lib/rustlib/src/rust/src/llvm-project/compiler-rt"'; \
10995
echo '[target.$(TARGET_RUST)]'; \
110-
echo 'linker = "$(TARGET)-clang"'; \
111-
echo 'ar = "$(PREFIX)/$(BUILD)/bin/llvm-ar"';) \
96+
echo 'ar = "$(PREFIX)/$(BUILD)/bin/llvm-ar"'; \
97+
echo 'linker = "$(TARGET)-clang"';) \
11298
> '$(PREFIX)/$(TARGET)/.cargo/config.toml'
11399
endef

Diff for: build/variables.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
vips_package=vips
44
vips_version=8.15
5-
vips_patch_version=2
5+
vips_patch_version=3
66
#vips_pre_version=rc2
77

88
if [ -n "$GIT_COMMIT" ]; then

Diff for: build/vips-all.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ PKG := vips-all
22
$(PKG)_WEBSITE := https://libvips.github.io/libvips/
33
$(PKG)_DESCR := A fast image processing library with low memory needs.
44
$(PKG)_IGNORE :=
5-
$(PKG)_VERSION := 8.15.2
6-
$(PKG)_CHECKSUM := a2ab15946776ca7721d11cae3215f20f1f097b370ff580cd44fc0f19387aee84
5+
$(PKG)_VERSION := 8.15.3
6+
$(PKG)_CHECKSUM := 3e27d9f536eafad64013958fe9e8a1964c90b564c731d49db7c1a1c11b1052a0
77
$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/patches/vips-[0-9]*.patch)))
88
$(PKG)_GH_CONF := libvips/libvips/releases,v,,,,.tar.xz
99
$(PKG)_SUBDIR := vips-$($(PKG)_VERSION)

0 commit comments

Comments
 (0)