File: 0008-Fix-conformance-test.patch

package info (click to toggle)
jpeg-xl 0.11.1-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,828 kB
  • sloc: cpp: 131,785; python: 3,135; sh: 2,668; ansic: 1,228; javascript: 403; java: 349; makefile: 97; xml: 13
file content (36 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
From: Boyuan Yang <byang@debian.org>
Date: Fri, 22 Sep 2023 17:34:23 -0400
Subject: Fix conformance test

Bug-Debian: https://bugs.debian.org/1051560

---
 tools/conformance/generator.py    | 2 +-
 tools/conformance/tooling_test.sh | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: libjxl/tools/conformance/generator.py
===================================================================
--- libjxl.orig/tools/conformance/generator.py
+++ libjxl/tools/conformance/generator.py
@@ -67,7 +67,7 @@ def GenerateConformanceCorpus(args):
         cmd.extend(['--icc_out', pixel_prefix + '.icc'])
 
         # Decode and generate the reference files.
-        subprocess.check_call(cmd)
+        subprocess.check_call(' '.join(cmd), shell=True)
 
         with open(metadata_filename, 'r') as f:
             metadata = json.load(f)
Index: libjxl/tools/conformance/tooling_test.sh
===================================================================
--- libjxl.orig/tools/conformance/tooling_test.sh
+++ libjxl/tools/conformance/tooling_test.sh
@@ -42,6 +42,7 @@ main() {
     build_dir=$(realpath "${MYDIR}/../../build")
   fi
 
+  export LD_LIBRARY_PATH=${build_dir}
   local decoder="${build_dir}/tools/djxl"
   "${MYDIR}/generator.py" \
     --decoder="${decoder}" \