[Pkg-javascript-devel] Bug#902507: node-multiparty: FTBFS in buster/sid (TypeError: mime.lookup is not a function)
Santiago Vila
sanvila at debian.org
Wed Jun 27 13:50:14 BST 2018
Package: src:node-multiparty
Version: 4.0.0-1
Severity: serious
Tags: ftbfs
Dear maintainer:
I tried to build this package in buster with "dpkg-buildpackage -A"
but it failed:
--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep
dh: Compatibility levels before 9 are deprecated (level 8 in use)
dh_update_autotools_config -i
debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
nodejs test/test.js
Fixture tests:
content-type/charset.http...(node:20301) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
OK
content-type/charset-last.http...OK
content-type/custom.http...OK
content-type/custom-equal-sign.http...OK
[... snipped ...]
special-chars-in-filename/osx-firefox-3.6.http...OK
special-chars-in-filename/osx-safari-5.http...OK
special-chars-in-filename/xp-chrome-12.http...OK
special-chars-in-filename/xp-ie-7.http...OK
special-chars-in-filename/xp-ie-8.http...OK
special-chars-in-filename/xp-safari-5.http...OK
Standalone tests:
test-chunked...(node:20311) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
OK
test-connection-aborted-closed...(node:20325) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
OK
test-connection-aborted...(node:20335) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
OK
test-content-transfer-encoding...(node:20345) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
OK
test-emit-order.../usr/lib/nodejs/form-data/form_data.js:130
'Content-Type: ' + (options.contentType || mime.lookup(options.filename || value.path));
^
TypeError: mime.lookup is not a function
at FormData._multiPartHeader (/usr/lib/nodejs/form-data/form_data.js:130:58)
at FormData.append (/usr/lib/nodejs/form-data/form_data.js:39:21)
at Request.attach (/usr/lib/nodejs/superagent/lib/node/index.js:200:18)
at Server.<anonymous> (/<<PKGBUILDDIR>>/test/standalone/test-emit-order.js:51:7)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:106:13)
at Server.emit (events.js:208:7)
at emitListeningNT (net.js:1382:10)
at _combinedTickCallback (internal/process/next_tick.js:135:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
/<<PKGBUILDDIR>>/test/test.js:61
if (code) throw new Error("exited with code " + code);
^
Error: exited with code 1
at ChildProcess.<anonymous> (/<<PKGBUILDDIR>>/test/test.js:61:25)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
debian/rules:11: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is how the build ends in my autobuilder and it's not
necessarily the relevant part.
The failure is not, however, related to using dpkg-buildpackage -A,
as it also fails in reproducible builds:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/node-multiparty.html
If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.
Thanks.
More information about the Pkg-javascript-devel
mailing list