diff --git a/srcpkgs/libjxl/patches/2211.patch b/srcpkgs/libjxl/patches/2211.patch new file mode 100644 index 00000000000..d74513005d4 --- /dev/null +++ b/srcpkgs/libjxl/patches/2211.patch @@ -0,0 +1,68 @@ +From b73a9e1e8b47fc623c3015ce40466274e4d4bb03 Mon Sep 17 00:00:00 2001 +From: east +Date: Wed, 22 Feb 2023 20:12:05 +0800 +Subject: [PATCH 1/3] Add missing content to fix gcc compilation for + RISCV architecture. + +--- + lib/jxl/enc_xyb.cc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/jxl/enc_xyb.cc b/lib/jxl/enc_xyb.cc +index 1ef78877a71..1ed13da9574 100644 +--- a/lib/jxl/enc_xyb.cc ++++ b/lib/jxl/enc_xyb.cc +@@ -7,6 +7,7 @@ + + #include + #include ++#include + + #undef HWY_TARGET_INCLUDE + #define HWY_TARGET_INCLUDE "lib/jxl/enc_xyb.cc" + +From 10a521764beb7e9dcc0dbfbe3f4dbb7e2e8d2bcc Mon Sep 17 00:00:00 2001 +From: east +Date: Thu, 23 Feb 2023 00:50:02 +0800 +Subject: [PATCH 2/3] add name to AUTHORS + +--- + AUTHORS | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/AUTHORS b/AUTHORS +index 44dcc409949..3340422d606 100644 +--- a/AUTHORS ++++ b/AUTHORS +@@ -30,6 +30,7 @@ Daniel Novomeský + David Burnett + Dirk Lemstra + Don Olmstead ++Dong Xu + Even Rouault + Fred Brennan + Heiko Becker + +From fc6b5c316346475379895a6c67b6d97ab7b8c2cb Mon Sep 17 00:00:00 2001 +From: Moritz Firsching +Date: Wed, 22 Feb 2023 22:46:07 +0100 +Subject: [PATCH 3/3] lint fix + +--- + lib/jxl/enc_xyb.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/jxl/enc_xyb.cc b/lib/jxl/enc_xyb.cc +index 1ed13da9574..2ee0abf821a 100644 +--- a/lib/jxl/enc_xyb.cc ++++ b/lib/jxl/enc_xyb.cc +@@ -6,8 +6,8 @@ + #include "lib/jxl/enc_xyb.h" + + #include +-#include + #include ++#include + + #undef HWY_TARGET_INCLUDE + #define HWY_TARGET_INCLUDE "lib/jxl/enc_xyb.cc" diff --git a/srcpkgs/libjxl/template b/srcpkgs/libjxl/template index cb2a08809b0..e6bd535377f 100644 --- a/srcpkgs/libjxl/template +++ b/srcpkgs/libjxl/template @@ -24,6 +24,7 @@ checksum="c70916fb3ed43784eb840f82f05d390053a558e2da106e40863919238fa7b420 64658d3341bff2976899cb8b140242ffa4de1cd41aed507dfec4aa9e7e05ca24 @8feb1e33c38ca13f91a0d5bd8ce25f976eb239edf38f49e6db8895ae9f1e833c" skip_extraction="skcms-${_skcms_hash}.tar.gz" +patch_args="-Np1 --directory=${build_wrksrc}" if [ -z "$XBPS_CHECK_PKGS" ]; then configure_args+=" -DBUILD_TESTING=OFF"