Your message dated Thu, 12 Jan 2012 11:18:30 +0000
with message-id <[email protected]>
and subject line Bug#642294: fixed in shrinksafe 1.6.1-2
has caused the Debian Bug report #642294,
regarding shrinksafe: FTBFS and execute against rhino 1.7R3
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
642294: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642294
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: shrinksafe
Version: 1.6.1-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
Now that rhino 1.7R3 is in unstable and latest Ubuntu devel shrinksafe
won't build or execute due to API changes.
I've not submitted this back upstream but please feel free todo so.
*** /tmp/tmpH1iYdA
In Ubuntu, the attached patch was applied to achieve the following:
* Fix FTBFS - incompatble with rhino >= 1.7R3 (LP: #831366):
- d/control: Remove Build-Conflicts-Indep and update Build-Depends:
rhino (>= 1.7R3)
- d/patches/rhino-17r3-compat.patch: Compatibility patch for rhino
>= 1.7R3.
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500,
'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-11-generic (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/control'
--- debian/control 2010-11-11 14:55:35 +0000
+++ debian/control 2011-09-19 15:31:46 +0000
@@ -1,10 +1,10 @@
Source: shrinksafe
Section: devel
Priority: optional
-Maintainer: Jason Morawski <[email protected]>
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Jason Morawski <[email protected]>
Build-Depends: debhelper (>= 8), javahelper (>= 0.31)
-Build-Depends-Indep: default-jdk, rhino (>= 1.7R1)
-Build-Conflicts-Indep: rhino (>= 1.7R3)
+Build-Depends-Indep: default-jdk, rhino (>= 1.7R3)
Standards-Version: 3.9.1
Homepage: http://shrinksafe.dojotoolkit.org
=== added directory 'debian/patches'
=== added file 'debian/patches/rhino-17r3-compat.patch'
--- debian/patches/rhino-17r3-compat.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/rhino-17r3-compat.patch 2011-09-21 08:40:16 +0000
@@ -0,0 +1,92 @@
+Description: Compatibility patch for Rhino 1.7R3.
+Author: James Page <[email protected]>
+Forwarded: no
+
+Index: shrinksafe/src/org/dojotoolkit/shrinksafe/Compressor.java
+===================================================================
+--- shrinksafe.orig/src/org/dojotoolkit/shrinksafe/Compressor.java 2011-09-19 16:38:06.063956882 +0100
++++ shrinksafe/src/org/dojotoolkit/shrinksafe/Compressor.java 2011-09-21 09:40:14.415913553 +0100
+@@ -35,11 +35,13 @@
+
+ import org.mozilla.javascript.CompilerEnvirons;
+ import org.mozilla.javascript.Decompiler;
+-import org.mozilla.javascript.FunctionNode;
++import org.mozilla.javascript.ast.FunctionNode;
+ import org.mozilla.javascript.Interpreter;
+ import org.mozilla.javascript.Kit;
+ import org.mozilla.javascript.Parser;
+-import org.mozilla.javascript.ScriptOrFnNode;
++import org.mozilla.javascript.IRFactory;
++import org.mozilla.javascript.ast.ScriptNode;
++import org.mozilla.javascript.ast.AstRoot;
+ import org.mozilla.javascript.ScriptRuntime;
+ import org.mozilla.javascript.Token;
+ import org.mozilla.javascript.UintMap;
+@@ -64,7 +66,7 @@
+ private static String compress(String encodedSource,
+ int flags,
+ UintMap properties,
+- ScriptOrFnNode parseTree,
++ ScriptNode parseTree,
+ boolean escapeUnicode,
+ String stripConsole,
+ TokenMapper tm,
+@@ -983,11 +985,13 @@
+ CompilerEnvirons compilerEnv = new CompilerEnvirons();
+
+ Parser parser = new Parser(compilerEnv, compilerEnv.getErrorReporter());
+-
+- ScriptOrFnNode tree = parser.parse(source, null, lineno);
+- String encodedSource = parser.getEncodedSource();
+- if (encodedSource.length() == 0) { return ""; }
+-
++ IRFactory irFactory = new IRFactory(compilerEnv, compilerEnv.getErrorReporter());
++
++ AstRoot parsedTree = parser.parse(source, null, lineno);
++ ScriptNode tree = irFactory.transformTree(parsedTree);
++ String encodedSource = tree.getEncodedSource();
++ if ( encodedSource.length() == 0 ) { return ""; }
++
+ Interpreter compiler = new Interpreter();
+ compiler.compile(compilerEnv, tree, encodedSource, false);
+ UintMap properties = new UintMap(1);
+Index: shrinksafe/src/org/dojotoolkit/shrinksafe/TokenMapper.java
+===================================================================
+--- shrinksafe.orig/src/org/dojotoolkit/shrinksafe/TokenMapper.java 2011-09-19 16:37:59.693992810 +0100
++++ shrinksafe/src/org/dojotoolkit/shrinksafe/TokenMapper.java 2011-09-19 16:43:19.082272339 +0100
+@@ -32,7 +32,7 @@
+ import java.util.List;
+ import java.util.Map;
+
+-import org.mozilla.javascript.ScriptOrFnNode;
++import org.mozilla.javascript.ast.ScriptNode;
+ import org.mozilla.javascript.ScriptRuntime;
+ import org.mozilla.javascript.Token;
+
+@@ -58,7 +58,7 @@
+
+ private int lastTokenCount = 0;
+
+- public TokenMapper(ScriptOrFnNode parseTree) {
++ public TokenMapper(ScriptNode parseTree) {
+ collectFunctionMappings(parseTree);
+ }
+
+@@ -170,7 +170,7 @@
+ * Mapping for each function node and corresponding parameters &
+ * variables names
+ */
+- private void collectFunctionMappings(ScriptOrFnNode parseTree) {
++ private void collectFunctionMappings(ScriptNode parseTree) {
+ int level = -1;
+ collectFuncNodes(parseTree, level, null);
+ }
+@@ -185,7 +185,7 @@
+ * @param level
+ * scoping level
+ */
+- private void collectFuncNodes(ScriptOrFnNode parseTree, int level, ScriptOrFnNode parent) {
++ private void collectFuncNodes(ScriptNode parseTree, int level, ScriptNode parent) {
+ level++;
+
+ DebugData debugData = new DebugData();
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2011-09-19 15:37:40 +0000
@@ -0,0 +1 @@
+rhino-17r3-compat.patch
--- End Message ---
--- Begin Message ---
Source: shrinksafe
Source-Version: 1.6.1-2
We believe that the bug you reported is fixed in the latest version of
shrinksafe, which is due to be installed in the Debian FTP archive:
shrinksafe_1.6.1-2.debian.tar.gz
to main/s/shrinksafe/shrinksafe_1.6.1-2.debian.tar.gz
shrinksafe_1.6.1-2.dsc
to main/s/shrinksafe/shrinksafe_1.6.1-2.dsc
shrinksafe_1.6.1-2_all.deb
to main/s/shrinksafe/shrinksafe_1.6.1-2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jason Morawski <[email protected]> (supplier of updated shrinksafe package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 07 Nov 2011 19:43:55 -0500
Source: shrinksafe
Binary: shrinksafe
Architecture: source all
Version: 1.6.1-2
Distribution: unstable
Urgency: low
Maintainer: Jason Morawski <[email protected]>
Changed-By: Jason Morawski <[email protected]>
Description:
shrinksafe - JavaScript "compression" system
Closes: 642294
Changes:
shrinksafe (1.6.1-2) unstable; urgency=low
.
* Fix FTBFS - incompatible with rhino >= 1.7R3 (Closes: #642294).
* Remove Build-Conflicts-Indep and update Build-Depends: rhino (>= 1.7R3)
* Added copyright information for rhino patch
* Updated standards version
Checksums-Sha1:
9fbbf00feedf7a802c0d7e30c7226e95dac229c6 1157 shrinksafe_1.6.1-2.dsc
7937c537466f1e3d794063e8cc1112d4fdd1a040 12276 shrinksafe_1.6.1-2.debian.tar.gz
22da035b903e50dc5453a27dd2fb1c1e2884ecc5 30842 shrinksafe_1.6.1-2_all.deb
Checksums-Sha256:
fbeaddbb1468b5b5633ffab91fc7e4a616e316e9f07815edaba98cb23e3625cc 1157
shrinksafe_1.6.1-2.dsc
be68df93dfa634df3d0fc906ce87609868176078221f55b4c73f6e763fb3e0ea 12276
shrinksafe_1.6.1-2.debian.tar.gz
aa593c450bc597d9d33a78aefbc4758f5ca0eecdbbb95717af98bfad7e8b42e6 30842
shrinksafe_1.6.1-2_all.deb
Files:
91c9c383690fd5ccfd27ecc8e440cc6f 1157 devel optional shrinksafe_1.6.1-2.dsc
c869e048b515c05f3a71e254ed6f3090 12276 devel optional
shrinksafe_1.6.1-2.debian.tar.gz
98f15ddd70a27fa4cd2a728da650f281 30842 devel optional
shrinksafe_1.6.1-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk8OvXYACgkQ+C5cwEsrK559twCg2Gdgz/Bk9SZ4IeycC7PehtPw
o9wAoJlK3RVNljgxg0PNnuhR+6I2HRGT
=G3Ge
-----END PGP SIGNATURE-----
--- End Message ---