summaryrefslogtreecommitdiff
path: root/media-gfx/oxipng/files/oxipng-10.1.1-libdeflater-1.25.2-relax-libdeflate-sys-version.patch
blob: 4d8a14ad8206f17ff78a9cbe95610a22fa6ded61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Relax the version restriction of libdeflate.
https://bugs.gentoo.org/944285

Any API/ABI-compatible versions would be ok for app-arch/libdeflate, but
in such case the build script of libdeflate_sys should be patched to pick
even if the system library is newer.
https://github.com/adamkewley/libdeflater/pull/32#issuecomment-1971198374

Also, don't forget updating `DEPEND` and `RDEPEND` in sync, or libdeflater
crate will fail to pick the system library and silently use the bundled
version of libdeflate.

This patch should be applied from ${WORKDIR}.

--- a/cargo_home/gentoo/libdeflate-sys-1.25.2/build.rs
+++ b/cargo_home/gentoo/libdeflate-sys-1.25.2/build.rs
@@ -9,7 +9,7 @@ fn main() {
     if pkg_config::Config::new()
         .print_system_libs(false)
         .cargo_metadata(true)
-        .exactly_version("1.24")
+        .atleast_version("1.23")
         .probe("libdeflate")
         .is_ok()
     {