[Pkg-javascript-devel] Bug#771275: unblock: coffeescript/1.4.0-1.1
Tobias Frost
tobi at debian.org
Fri Nov 28 06:41:13 UTC 2014
Package: release.debian.org
Severity: normal
User: release.debian.org at packages.debian.org
Usertags: unblock
Please unblock package coffeescript
unblock coffeescript/1.4.0-1.1
Dear release-team,
it was NMU'ed as announced on #750716
and fixes "coffeescript: FTBFS against uglify 2.x series - Cannot call method 'parse' of undefined"
Here's the diff
diff -Nru coffeescript-1.4.0/debian/changelog coffeescript-1.4.0/debian/changelog
--- coffeescript-1.4.0/debian/changelog 2012-11-14 15:18:35.000000000 +0100
+++ coffeescript-1.4.0/debian/changelog 2014-11-22 13:05:05.000000000 +0100
@@ -1,3 +1,11 @@
+coffeescript (1.4.0-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix "FTBFS against uglify 2.x series" by applying patch from BTS.
+ (Closes: #750716)
+
+ -- Tobias Frost <tobi at debian.org> Sat, 22 Nov 2014 13:05:05 +0100
+
coffeescript (1.4.0-1) unstable; urgency=low
* New upstream source.
diff -Nru coffeescript-1.4.0/debian/patches/fix-750716.patch coffeescript-1.4.0/debian/patches/fix-750716.patch
--- coffeescript-1.4.0/debian/patches/fix-750716.patch 1970-01-01 01:00:00.000000000 +0100
+++ coffeescript-1.4.0/debian/patches/fix-750716.patch 2014-11-22 13:01:04.000000000 +0100
@@ -0,0 +1,20 @@
+Description: Fix for FTBFS against uglify 2.x series
+Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750716
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: coffeescript-1.4.0/Cakefile
+===================================================================
+--- coffeescript-1.4.0.orig/Cakefile
++++ coffeescript-1.4.0/Cakefile
+@@ -125,8 +125,9 @@ task 'build:browser', 'rebuild the merge
+ }(this));
+ """
+ unless process.env.MINIFY is 'false'
+- {parser, uglify} = require 'uglify-js'
+- code = uglify.gen_code uglify.ast_squeeze uglify.ast_mangle parser.parse code
++ uglify = require 'uglify-js'
++ result = uglify.minify(code, {fromString: true});
++ code = result.code
+ fs.writeFileSync 'extras/coffee-script.js', header + '\n' + code
+
+
diff -Nru coffeescript-1.4.0/debian/patches/series coffeescript-1.4.0/debian/patches/series
--- coffeescript-1.4.0/debian/patches/series 2012-08-06 02:31:18.000000000 +0200
+++ coffeescript-1.4.0/debian/patches/series 2014-11-22 12:58:30.000000000 +0100
@@ -1,3 +1,4 @@
support-system-wide-install.patch
avoid-tests-during-build.patch
use_usr-bin-nodejs.patch
+fix-750716.patch
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
More information about the Pkg-javascript-devel
mailing list