#1003333 node-clipboard: FTBFS with webpaxk5: Cannot find module 'uglifyjs-webpack-plugin'

#1003333#5
Date:
2022-01-08 14:21:16 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-clipboard was found to fail to build in that
situation.

Relevant part (hopefully):

+ webpack
[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:4:24)
     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'
   ]
}
dh_auto_build: error: cd ./. && sh -ex debian/nodejs/./build returned
exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2022-01-08T14:13:34Z

Finished
--------


The full log is attached to this mail.

#1003333#10
Date:
2022-05-23 19:14:52 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-clipboard, 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 1003333@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-clipboard 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: Tue, 24 May 2022 00:01:08 +0530
Source: node-clipboard
Architecture: source
Version: 2.0.8+ds+~cs9.6.11-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Pirate Praveen <praveen@debian.org>
Closes: 1003333
Changes:
 node-clipboard (2.0.8+ds+~cs9.6.11-2) unstable; urgency=medium
 .
   * Fix build failure with webpack 5 (Closes: #1003333)
   * Bump Standards-Version to 4.6.1 (no changes needed)
Checksums-Sha1:
 f9f6d3831964e8bf26405be14634d181ca64f07e 3853 node-clipboard_2.0.8+ds+~cs9.6.11-2.dsc
 12653d0de4dd9d54cd391e5c58baf27b311c8e09 4040 node-clipboard_2.0.8+ds+~cs9.6.11-2.debian.tar.xz
 ea5fe32487cc8d562ec8fd57ce1222802fa698c5 15363 node-clipboard_2.0.8+ds+~cs9.6.11-2_amd64.buildinfo
Checksums-Sha256:
 4dfc79a47dc6e8448731852d635b0dc78d12e8fd820b57a4246eea3c2e7e35d0 3853 node-clipboard_2.0.8+ds+~cs9.6.11-2.dsc
 6decbedbd3aa2289967879779e9295729a86a898f9baac385e9b52d48d50ed0f 4040 node-clipboard_2.0.8+ds+~cs9.6.11-2.debian.tar.xz
 814cf334042816d0d854c82b6a031bdedc16ad758d36ffdc078f86515964dd2a 15363 node-clipboard_2.0.8+ds+~cs9.6.11-2_amd64.buildinfo
Files:
 09824d7982609954c84ea85ffe45478a 3853 javascript optional node-clipboard_2.0.8+ds+~cs9.6.11-2.dsc
 dabf0947a3c7cedf57cbf06d01eb90f5 4040 javascript optional node-clipboard_2.0.8+ds+~cs9.6.11-2.debian.tar.xz
 2c9c6c3ead935f08e05e3960aefb6e27 15363 javascript optional node-clipboard_2.0.8+ds+~cs9.6.11-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0whj4mAg5UP0cZqDj1PgGTspS3UFAmKL1KYACgkQj1PgGTsp
S3ULHA/+Kmaq3h20hteXOUJvYMiDKTeILuUHYqJUSVgGMY4y7TEaGl74LWu4MqXr
pyuXOiNkzcxHB2ZAvJ9ZuskXi7GuGWtl7H/s5kuTyhYW+t6pKmHp5vprN+5j4tk3
8fpfu01bC+dgidRw9n2zrG2VYx5fKK4kTGaT9cUvUjpJol5tEgIDATHbjeG/SFIs
Qg6+S/C4hinY8XRMqXwtpOJkkUs0m1ed2lSbBYiYKTstucbQFQdH1EycPjOv7RTT
79qH/tlGNxWh5EcacdzKlBiOB1kI10yQFDNpiyKClCAnS5AHeR66WexZ5CFKZLiO
F+dfB+oteYVMzTTwOO55No3+Nh0NXYC/AG9snwkeAKsoZFyOAFYbaiPL3O23OI9r
2FIBwCIUNGR/xHPrM0f3V531aA5S9fswklaLJUJH9sft3mEg2DAfJSmCbIg8CIu0
QGi8L3tTpjRvDJuZ81rV1M7ciIufOcZ9TWPF1znUn4BV93wcG2PpoacKq9H26ZSi
73MmLX6nfvWM5Y2VGItwW3erLdOH7fzG/LHXN3MHLUf8ylzWPw5muzGqwJyptFqw
J825+h9RZuS8V6UFmySnHb1H+4/WsxYGCNWY2DIVzfNR/Pz6AiCj1V6pePNaZjUU
OmJva2Pqs9ph0vo65ulebFiXc4/5eVNSLXKnvNhTQSB8rR6ZKN8=
=awnK
-----END PGP SIGNATURE-----