[Pkg-javascript-devel] Bug#899417: FTBFS on sid

Zebulon McCorkle zebmccorkle at zeb.fun
Thu May 24 01:07:59 BST 2018


Package: node-source-map
Version: 0.7.0+dfsg.really.0.6.1-1

The following error occurs when built from source on sid:

    uglifyjs -o dist/debug.min.js --source-map=dist/debug.min.js.map dist/debug.js
    undefined:9483
        var generator = new MOZ_SourceMap.SourceMapGenerator({
                                      ^
    
    TypeError: Cannot read property 'SourceMapGenerator' of undefined
        at Object.SourceMap (eval at <anonymous> (/usr/lib/nodejs/uglify-js/tools/node.js:33:1), <anonymous>:9483:39)
        at done (/usr/lib/nodejs/uglify-js/bin/uglifyjs:398:77)
        at cb (/usr/lib/nodejs/uglify-js/bin/uglifyjs:324:39)
        at /usr/lib/nodejs/uglify-js/bin/uglifyjs:391:9
        at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
    make[1]: *** [debian/rules:13: override_dh_auto_build] Error 1


This seems like a regression due to node-uglify's upgrade to version 2.8,
though I'm not sure why CI isn't showing a FTBFS in buster. A solution appears
to be to add node-source-map to the build dependencies, however in my opinion
it should be added as a dependency on node-uglify.

I've attached a git patch which would fix the issue on this package, though I'm
not sure as applying it here is the best idea. Any thoughts from anyone else?

-- 
Zebulon McCorkle
Email: zebmccorkle at zeb.fun
IRC:
 - zebmccorkle at Freenode
 - zebmccorkle at OFTC
 - zeb at EsperNet
 - zeb at hackint
 - zeb at PdgnCo
 - zeb at EFNet
PGP: 803A 0F47 82AD DDEA 46BE  055F F8F9 DB8C 1A54 6398
     (Zebulon McCorkle <zebmccorkle at zeb.fun>)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-FTBFS-in-sid.patch
Type: text/x-diff
Size: 673 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20180523/40b165ce/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20180523/40b165ce/attachment.sig>


More information about the Pkg-javascript-devel mailing list