#1002864 FTBFS with webpack5: Cannot find uglifyjs-webpack-plugin

Package:
src:node-source-map
Source:
node-source-map
Submitter:
Ayoyimika Ajibade
Date:
2022-06-03 08:06:03 UTC
Severity:
serious
Tags:
Blocked By:
Bug Title
1012299

  4

RM: src:ruby-uglifier/2.7.2+dfsg-2

normal about 4 years ago

#1002864#5
Date:
2021-12-30 11:36:06 UTC
From:
To:
Hi,

We are starting to build against webpack5 in experimental and the
package needed for local build is webpack and node-webpack-source from
experimental.
During a test rebuild, node-source-map was found to fail to build in
that situation.

Relevant part (hopefully):

    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p dist
webpack --mode development
[webpack-cli] Failed to load '/<<PKGBUILDDIR>>/webpack.config.js' config
[webpack-cli] Error: Cannot find module 'uglifyjs-webpack-plugin'
Require stack:
- /<<PKGBUILDDIR>>/webpack.config.js
- /usr/share/nodejs/webpack-cli/lib/webpack-cli.js
- /usr/share/nodejs/webpack-cli/lib/bootstrap.js
- /usr/share/nodejs/webpack-cli/bin/cli.js
- /usr/share/nodejs/webpack/bin/webpack.js
     at Function.Module._resolveFilename
(internal/modules/cjs/loader.js:815:15)
     at Function.Module._load (internal/modules/cjs/loader.js:667:27)
     at Module.require (internal/modules/cjs/loader.js:887:19)
     at require (internal/modules/cjs/helpers.js:74:18)
     at Object.<anonymous> (/<<PKGBUILDDIR>>/webpack.config.js:5:22)
     at Module._compile (internal/modules/cjs/loader.js:999:30)
     at Object.Module._extensions..js
(internal/modules/cjs/loader.js:1027:10)
     at Module.load (internal/modules/cjs/loader.js:863:32)
     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
     at Module.require (internal/modules/cjs/loader.js:887:19) {
   code: 'MODULE_NOT_FOUND',
   requireStack: [
     '/<<PKGBUILDDIR>>/webpack.config.js',
     '/usr/share/nodejs/webpack-cli/lib/webpack-cli.js',
     '/usr/share/nodejs/webpack-cli/lib/bootstrap.js',
     '/usr/share/nodejs/webpack-cli/bin/cli.js',
     '/usr/share/nodejs/webpack/bin/webpack.js'
   ]
}
make[1]: *** [debian/rules:12: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2

The full log is attached to this mail

#1002864#18
Date:
2022-05-28 22:28:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-source-map, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1002864@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pirate Praveen <praveen@debian.org> (supplier of updated node-source-map package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 29 May 2022 02:32:40 +0530
Source: node-source-map
Architecture: source
Version: 0.7.0++dfsg2+really.0.6.1-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Pirate Praveen <praveen@debian.org>
Closes: 1002864
Changes:
 node-source-map (0.7.0++dfsg2+really.0.6.1-10) unstable; urgency=medium
 .
   * Team upload
   * Switch to webpack 5 and terser-webpack-plugin (Closes: #1002864)
   * Bump Standards-Version to 4.6.1 (no changes needed)
Checksums-Sha1:
 54ef1299ce0fb19e630c4a36ea301020b40adde7 2327 node-source-map_0.7.0++dfsg2+really.0.6.1-10.dsc
 261f67a1b413c6282f8d69ea038288763a786b6a 5624 node-source-map_0.7.0++dfsg2+really.0.6.1-10.debian.tar.xz
 39c3cb7dce43b16e130452ef91c7fe370ce7bde2 15637 node-source-map_0.7.0++dfsg2+really.0.6.1-10_amd64.buildinfo
Checksums-Sha256:
 6790e64159dcae037f8ad218f8761e63f2953c550406766587f7f9341c68ee17 2327 node-source-map_0.7.0++dfsg2+really.0.6.1-10.dsc
 f37a6edd3b88546f45c715536f9d849c41f87ad43ef3854ddfa37e555705f4ad 5624 node-source-map_0.7.0++dfsg2+really.0.6.1-10.debian.tar.xz
 aabc91b971f43c7366a0c24c88d81930416770b690afebe32a4a5950f79ec5f7 15637 node-source-map_0.7.0++dfsg2+really.0.6.1-10_amd64.buildinfo
Files:
 a5c12431e00f9b8fdfff434da4f5ae29 2327 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-10.dsc
 7e33bc81fb6815e686886d1842410594 5624 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-10.debian.tar.xz
 99a545d83d584fc97d8517c93a84399a 15637 javascript optional node-source-map_0.7.0++dfsg2+really.0.6.1-10_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0whj4mAg5UP0cZqDj1PgGTspS3UFAmKSk/YACgkQj1PgGTsp
S3Uslg//V8OL1ludZsUAKWDdjelfpQDdnxjxhoRlS2EoWtQ+1e68XFa+cPYd/Rie
KQ6x9KXxSPQsBcuT+6pzodNaMAl+Dg2SHr/Fwy0+w+15AxoZuBhg7OELjN+AdQDf
8Y3LxHG3xBkuA7DqITeUyA1fIF6zDVjEKGZUCraO4TTrC0mRDd8fOHrTSm4sVMOW
e+f7w4CCOcypFuW1ktnEUXh5rFEgncntx/CHc5flh/KeP9szZVhXlJOSMIBDC2vu
PKWFdUjMtujm6+AxSL67w/wyJ3s9ck0E+sCiCzf+QdLG459KWptrtF4pZwJKAtns
UkJa+E2A0BIh+gDjXwmssD3IcS6rtqZStSqrzTRxEHpo17OmTbEJbp0CazdZlND9
6KudMAEMlaLM+0llYM/J2GYn8ttzHeTsDT4ukJ3GS0rKTCheZA+GEQ74v1deGrpW
dT5FTglUKFOg8Xv371IDyr1WL+i6d5rvGX4uGpxGaq999dvcF/SbVWU7dyGnIwJX
19Vt7jHQaYLitS91rj3VQpoDxhpXKOXnuKpLmQvULPEYTB4aKIvoAABl3HG216pv
EmCr73bp5a9ik0YMScicTSBHRlAXrehwV60duFdT+CWHN59NMvjeqQzZBtXbfkRl
Vx13EC7WRpeMxp1taXaR6RoWgGjfK4dhO14QzDYAMoJGT1bLr+E=
=5d79
-----END PGP SIGNATURE-----