tag 970501 + patch
thanks

Hello,

It appears that newer JavaScript versions supported by Rhino cause Dojo
to throw an exception during tests for shrinksafe module. When using an
older JavaScript version 1.7, the error goes away. The attached patch
fixes build and autopkgtest problems.

Please consider applying the patch to ensure that Dojo and its
dependents like tt-rss, used in FreedomBox are available in Bullseye.

Thanks,

-- 
Sunil
>From c92570f765d73aa6c1d717376f81aafa529964c2 Mon Sep 17 00:00:00 2001
From: Sunil Mohan Adapa <su...@medhas.org>
Date: Fri, 29 Jan 2021 17:51:10 -0800
Subject: [PATCH] Fix shrinksafe tests with newer rhino by setting JS version

Signed-off-by: Sunil Mohan Adapa <su...@medhas.org>
---
 .../0004-Fix-shrinksafe-tests-with-new-rhino.patch     | 10 ++++++++++
 debian/patches/series                                  |  1 +
 2 files changed, 11 insertions(+)
 create mode 100644 debian/patches/0004-Fix-shrinksafe-tests-with-new-rhino.patch

diff --git a/debian/patches/0004-Fix-shrinksafe-tests-with-new-rhino.patch b/debian/patches/0004-Fix-shrinksafe-tests-with-new-rhino.patch
new file mode 100644
index 00000000..486f939a
--- /dev/null
+++ b/debian/patches/0004-Fix-shrinksafe-tests-with-new-rhino.patch
@@ -0,0 +1,10 @@
+Index: dojo/util/shrinksafe/tests/runner.sh
+===================================================================
+--- dojo.orig/util/shrinksafe/tests/runner.sh
++++ dojo/util/shrinksafe/tests/runner.sh
+@@ -1,4 +1,4 @@
+ #!/bin/sh
+ 
+ cd ../../doh
+-java -classpath ../shrinksafe/js.jar:../shrinksafe/shrinksafe.jar org.mozilla.javascript.tools.shell.Main ../../dojo/dojo.js baseUrl=../../dojo load=doh test=util/shrinksafe/tests/module testUrl=../shrinksafe/tests/module.js
++java -classpath ../shrinksafe/js.jar:../shrinksafe/shrinksafe.jar org.mozilla.javascript.tools.shell.Main -version 170 ../../dojo/dojo.js baseUrl=../../dojo load=doh test=util/shrinksafe/tests/module testUrl=../shrinksafe/tests/module.js
diff --git a/debian/patches/series b/debian/patches/series
index f39e7f29..c75b2155 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Compatibility-patch-for-newer-rhino.patch
 0002-Do-notrun-test-suite-in-build.patch
 0003-Disable-flash-storage.patch
+0004-Fix-shrinksafe-tests-with-new-rhino.patch
-- 
2.29.2

Reply via email to