gentoo-ebuilds/media-gfx/oxipng/files/oxipng-9.1.3-libdeflater-1.22.0-relax-libdeflate-sys-version.patch
YOSHIOKA Takuma 38a2cda6ec
media-gfx/oxipng: add 9.1.3
Made system libdeflate dependency unconditional.

Signed-off-by: YOSHIOKA Takuma <lo48576@hard-wi.red>
Closes: https://github.com/gentoo/gentoo/pull/39835
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2025-03-01 09:54:28 +02:00

25 lines
915 B
Diff

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 `DEPNED` 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.22.0/build.rs
+++ b/cargo_home/gentoo/libdeflate-sys-1.22.0/build.rs
@@ -9,7 +9,7 @@ fn main() {
if pkg_config::Config::new()
.print_system_libs(false)
.cargo_metadata(true)
- .exactly_version("1.22")
+ .atleast_version("1.22")
.probe("libdeflate")
.is_ok()
{