[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#497701: libv8 in debian



The attached patch allows v8 to build with jsmin.py removed, as it
has already been in git.

(Conversion to quilt patch left as exersise for reader.)

-- 
see shy jo
From 62f8e4ca4536ea37480ea60f6121b6e9270cbd9f Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@gnu.kitenet.net>
Date: Sat, 19 Sep 2009 23:37:19 -0400
Subject: [PATCH] avoid using jsmin

jsmin was removed due to license quirk, so don't use it.

This may make the package use 100k or so more disk, as the two
files that got minimised are each roughly 50k. I am not sure
why minimisation was chosen for these two files, and have
only verified that it builds and works without minimisation.
---
 tools/js2c.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/js2c.py b/tools/js2c.py
index cae39e8..bf59ff8 100755
--- a/tools/js2c.py
+++ b/tools/js2c.py
@@ -32,7 +32,7 @@
 # library.
 
 import os, re, sys, string
-import jsmin
+#import jsmin # nonfree -- JEH
 
 
 def ToCArray(lines):
@@ -55,8 +55,8 @@ def RemoveCommentsAndTrailingWhitespace(lines):
 def CompressScript(lines, do_jsmin):
   # If we're not expecting this code to be user visible, we can run it through
   # a more aggressive minifier.
-  if do_jsmin:
-    return jsmin.jsmin(lines)
+  #if do_jsmin: # non-free -- JEH
+  #  return jsmin.jsmin(lines)
 
   # Remove stuff from the source that we don't want to appear when
   # people print the source code using Function.prototype.toString().
-- 
1.6.3.3

Attachment: signature.asc
Description: Digital signature


Reply to: