[Pkg-javascript-devel] Bug#1011867: node-cbor: FTBFS: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/node_modules/nofilter/lib'

Lucas Nussbaum lucas at debian.org
Thu May 26 14:59:16 BST 2022


Source: node-cbor
Version: 8.1.0+dfsg+~cs5.2.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build --buildsystem=nodejs
> ./lerna.json found
> 
> Found debian/nodejs/additional_components
> Found debian/nodejs/sovpro-delimited-stream/build
> 	cd ./sovpro-delimited-stream && sh -ex ../debian/nodejs/sovpro-delimited-stream/build
> + tsc
> Found debian/nodejs/packages/cbor-web/build
> 	cd ./packages/cbor-web && sh -ex ../../debian/nodejs/packages/cbor-web/build
> + webpack
> assets by status 41.8 KiB [cached] 1 asset
> runtime modules 670 bytes 3 modules
> modules by path ../cbor/lib/*.js 96.2 KiB
>   ../cbor/lib/cbor.js 2.54 KiB [built] [code generated]
>   ../cbor/lib/commented.js 8.7 KiB [built] [code generated]
>   ../cbor/lib/decoder.js 20.1 KiB [built] [code generated]
>   ../cbor/lib/tagged.js 10.5 KiB [built] [code generated]
>   ../cbor/lib/simple.js 2.63 KiB [built] [code generated]
>   ../cbor/lib/diagnose.js 6.46 KiB [built] [code generated]
>   ../cbor/lib/encoder.js 30.9 KiB [built] [code generated]
>   ../cbor/lib/map.js 5.06 KiB [built] [code generated]
>   ../cbor/lib/utils.js 8.02 KiB [built] [code generated]
>   ../cbor/lib/constants.js 1.32 KiB [built] [code generated]
> ./lib/cbor.js 21 bytes [built] [code generated]
> ../../node_modules/nofilter/lib/index.js 27.9 KiB [built] [code generated]
> ../cbor/vendor/binary-parse-stream/index.js 2.63 KiB [built] [code generated]
> 
> ERROR in ../../node_modules/nofilter/lib/index.js 3:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/node_modules/nofilter/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/commented.js 6:17-36
>  @ ../cbor/lib/cbor.js 3:0-42
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../../node_modules/nofilter/lib/index.js 4:17-34
> Module not found: Error: Can't resolve 'buffer' in '/<<PKGBUILDDIR>>/node_modules/nofilter/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
> 	- install 'buffer'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "buffer": false }
>  @ ../cbor/lib/commented.js 6:17-36
>  @ ../cbor/lib/cbor.js 3:0-42
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/commented.js 3:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/cbor.js 3:0-42
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/commented.js 8:17-34
> Module not found: Error: Can't resolve 'buffer' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
> 	- install 'buffer'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "buffer": false }
>  @ ../cbor/lib/cbor.js 3:0-42
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/decoder.js 8:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/cbor.js 5:0-38
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/decoder.js 11:17-34
> Module not found: Error: Can't resolve 'buffer' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
> 	- install 'buffer'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "buffer": false }
>  @ ../cbor/lib/cbor.js 5:0-38
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/diagnose.js 3:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/cbor.js 4:0-40
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/encoder.js 3:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/cbor.js 6:0-38
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/encoder.js 10:17-34
> Module not found: Error: Can't resolve 'buffer' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
> 	- install 'buffer'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "buffer": false }
>  @ ../cbor/lib/cbor.js 6:0-38
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/map.js 3:17-34
> Module not found: Error: Can't resolve 'buffer' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
> 	- install 'buffer'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "buffer": false }
>  @ ../cbor/lib/cbor.js 9:0-30
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/utils.js 3:17-34
> Module not found: Error: Can't resolve 'buffer' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
> 	- install 'buffer'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "buffer": false }
>  @ ../cbor/lib/commented.js 4:14-32
>  @ ../cbor/lib/cbor.js 3:0-42
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/lib/utils.js 5:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/packages/cbor/lib'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/commented.js 4:14-32
>  @ ../cbor/lib/cbor.js 3:0-42
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> ERROR in ../cbor/vendor/binary-parse-stream/index.js 11:15-32
> Module not found: Error: Can't resolve 'stream' in '/<<PKGBUILDDIR>>/packages/cbor/vendor/binary-parse-stream'
> 
> BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
> This is no longer the case. Verify if you need this module and configure a polyfill for it.
> 
> If you want to include a polyfill, you need to:
> 	- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
> 	- install 'stream-browserify'
> If you don't want to include a polyfill, you can use an empty module like this:
> 	resolve.fallback: { "stream": false }
>  @ ../cbor/lib/decoder.js 3:26-66
>  @ ../cbor/lib/cbor.js 5:0-38
>  @ ./lib/cbor.js 1:0-20 1:0-20
> 
> 13 errors have detailed information that is not shown.
> Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
> 
> webpack 5.65.0 compiled with 13 errors in 1464 ms
> dh_auto_build: error: cd ./packages/cbor-web && sh -ex ../../debian/nodejs/packages/cbor-web/build returned exit code 1
> make[1]: *** [debian/rules:11: override_dh_auto_build] Error 25


The full build log is available from:
http://qa-logs.debian.net/2022/05/25/node-cbor_8.1.0+dfsg+~cs5.2.0-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list