[Pkg-javascript-devel] Bug#902509: node-serve-static: FTBFS in buster/sid (TypeError: mime.lookup is not a function)
    Santiago Vila 
    sanvila at debian.org
       
    Wed Jun 27 13:50:18 BST 2018
    
    
  
Package: src:node-serve-static
Version: 1.6.4-2
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>>'
mocha -C --reporter spec --bail --check-leaks --require should test/
  serveStatic()
    basic operations
      ✓ should require root path
      ✓ should require root path to be string
      1) should serve static files
  2 passing (41ms)
  1 failing
  1) serveStatic()
       basic operations
         should serve static files:
     Uncaught TypeError: mime.lookup is not a function
      at SendStream.type (/usr/lib/nodejs/send/index.js:693:19)
      at SendStream.send (/usr/lib/nodejs/send/index.js:503:8)
      at onstat (/usr/lib/nodejs/send/index.js:585:10)
      at FSReqWrap.oncomplete (fs.js:153:5)
debian/rules:13: 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-serve-static.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