libjxl: import patch for riscv64

This commit is contained in:
John 2024-01-30 17:10:10 +01:00
parent 1e4bf0c479
commit bc933823db
2 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,68 @@
From b73a9e1e8b47fc623c3015ce40466274e4d4bb03 Mon Sep 17 00:00:00 2001
From: east <xdong181@gmail.com>
Date: Wed, 22 Feb 2023 20:12:05 +0800
Subject: [PATCH 1/3] Add missing <atomic> 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 <algorithm>
#include <cstdlib>
+#include <atomic>
#undef HWY_TARGET_INCLUDE
#define HWY_TARGET_INCLUDE "lib/jxl/enc_xyb.cc"
From 10a521764beb7e9dcc0dbfbe3f4dbb7e2e8d2bcc Mon Sep 17 00:00:00 2001
From: east <xdong181@gmail.com>
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ý <dnovomesky@gmail.com>
David Burnett <vargolsoft@gmail.com>
Dirk Lemstra <dirk@lemstra.org>
Don Olmstead <don.j.olmstead@gmail.com>
+Dong Xu <xdong181@gmail.com>
Even Rouault <even.rouault@spatialys.com>
Fred Brennan <copypaste@kittens.ph>
Heiko Becker <heirecka@exherbo.org>
From fc6b5c316346475379895a6c67b6d97ab7b8c2cb Mon Sep 17 00:00:00 2001
From: Moritz Firsching <firsching@google.com>
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 <algorithm>
-#include <cstdlib>
#include <atomic>
+#include <cstdlib>
#undef HWY_TARGET_INCLUDE
#define HWY_TARGET_INCLUDE "lib/jxl/enc_xyb.cc"

View File

@ -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"