[Pkg-javascript-devel] which recently changed dependency broke node-terser? See bug#950666

Xavier yadd at debian.org
Wed Feb 5 04:56:27 GMT 2020


Le 04/02/2020 à 21:48, Jonas Smedegaard a écrit :
> Quoting Xavier (2020-02-04 21:32:17)
>> Le 04/02/2020 à 21:02, Xavier a écrit :
>>> Le 04/02/2020 à 17:52, Xavier a écrit :
>>>> Le 4 février 2020 17:06:44 GMT+01:00, Jonas Smedegaard 
>>>> <dr at jones.dk> a écrit :
>>>>> node-terser has not been changed for 3 months.
>>>>>
>>>>> Today it was reported broken: https://bugs.debian.org/950666
>>>>>
>>>>> Smells like the thing broken is some recent change in its 
>>>>> dependency chain rather than the node-terser package itself.
>>>>>
>>>>> Anyone recognize a recently uploaded module among the ones below?
>>>>>
>>>>> Mocha, perhaps?
>>>>>
>>>>> @Xavier, you mention in changelog that mocha had "successful 
>>>>> tests" - did those tests include rebuilding node-terser?
>>>>
>>>> I didn't test all rebuild but fixed all autopkgtest failures due to 
>>>> mocha changes (all easy to fix btw). I'll take a look at terser 
>>>> tomorrow morning.
> 
>>> build fails also, this seems not related to mocha:
> 
> I agree that the cause of the problem seems to be unrelated to mocha: I 
> wrongly assumed that the issue was but but apparently it began in 
> December: 
> https://tests.reproducible-builds.org/debian/history/node-terser.html
> 
> That said, I am puzzled by the build failure you are presenting here - 
> my build failures and those at tests.reproducible-builds.org are 
> unrelated to help2man - can you please share more information about how 
> you ensure that the build environment is clean (do you use pbuilder or 
> some other method?) and ideally point to a full build log (please 
> reference only, not attach: it is rather big).
> 
> 
> Thanks for helping look into this,

I built simply using sbuild and a minimal unstable schroot. Here are the
logs

Cheers,
Xavier
-------------- next part --------------
$ gbp buildpackage --git-ignore-branch --git-builder="sbuild -j5 --no-apt-update -d unstable --no-clean-source" --git-export=WC
sbuild (Debian sbuild) 0.78.1 (09 February 2019) on deb007.xnr.fr

+==============================================================================+
| node-terser 4.1.2-4 (amd64)                  Wed, 05 Feb 2020 04:51:58 +0000 |
+==============================================================================+

Package: node-terser
Version: 4.1.2-4
Source Version: 4.1.2-4
Distribution: unstable
Machine Architecture: amd64
Host Architecture: amd64
Build Architecture: amd64
Build Type: full

[...]
+------------------------------------------------------------------------------+
| Build                                                                        |
+------------------------------------------------------------------------------+


Unpack source
-------------

Format: 3.0 (quilt)
Source: node-terser
Binary: node-terser, libjs-terser, uglifyjs.terser
Architecture: all
Version: 4.1.2-4
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders:  Jonas Smedegaard <dr at jones.dk>,
Homepage: https://github.com/terser-js/terser
Standards-Version: 4.4.1
Vcs-Browser: https://salsa.debian.org/js-team/node-terser
Vcs-Git: https://salsa.debian.org/js-team/node-terser.git
Testsuite: autopkgtest
Testsuite-Triggers: libtest-command-simple-perl, node-domino, node-source-map, nodejs, perl
Build-Depends: brotli, debhelper, help2man <!nodoc>, mocha <!nocheck>, node-acorn, node-commander, node-escodegen <!nocheck>, node-semver <!nocheck>, node-source-map, pandoc <!nodoc>, pigz, rollup (>= 0.61.0)
Package-List:
 libjs-terser deb javascript optional arch=all
 node-terser deb javascript optional arch=all
 uglifyjs.terser deb javascript optional arch=all
Checksums-Sha1:
 0d510d9843143f359cda404e36c06441208f39ee 537041 node-terser_4.1.2.orig.tar.gz
 72e9c6db98985a4dd2b39c710494f4c919f76e42 8060 node-terser_4.1.2-4.debian.tar.xz
Checksums-Sha256:
 c75c90204c3381fbc55bf4a58a234f7668f3e76c0fa67dcffdec32828dd33728 537041 node-terser_4.1.2.orig.tar.gz
 067e34721d21068c22ab0bf7223c19f65d07446d0fe63bc49c24f24eaec484c0 8060 node-terser_4.1.2-4.debian.tar.xz
Files:
 362862258b2ae8cd5120336c5877a28d 537041 node-terser_4.1.2.orig.tar.gz
 89122a37393a46bde20345666f36d7cb 8060 node-terser_4.1.2-4.debian.tar.xz

dpkg-source: warning: extracting unsigned source package (node-terser_4.1.2-4.dsc)
dpkg-source: info: extracting node-terser in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking node-terser_4.1.2.orig.tar.gz
dpkg-source: info: unpacking node-terser_4.1.2-4.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 2001_avoid_privacy_breach.patch

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=fr_FR.UTF-8
LC_ALL=C.UTF-8
LOGNAME=xavier
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=unstable-amd64-sbuild
SCHROOT_CHROOT_NAME=unstable-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1000
SCHROOT_GROUP=xavier
SCHROOT_SESSION_ID=unstable-amd64-sbuild-97e3ff23-47f1-48b3-8886-a82dc1da053c
SCHROOT_UID=1000
SCHROOT_USER=xavier
SHELL=/bin/sh
USER=xavier

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -rfakeroot -j5
dpkg-buildpackage: info: source package node-terser
dpkg-buildpackage: info: source version 4.1.2-4
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Jonas Smedegaard <dr at jones.dk>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean
   dh_clean
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building node-terser using existing ./node-terser_4.1.2.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: warning: ignoring deletion of directory dist
dpkg-source: warning: ignoring deletion of file dist/.gitkeep, use --include-removal to override
dpkg-source: info: building node-terser in node-terser_4.1.2-4.debian.tar.xz
dpkg-source: info: building node-terser in node-terser_4.1.2-4.dsc
 debian/rules build
dh build
   dh_update_autotools_config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents dist
pandoc --from gfm-raw_html --to html --standalone --output README.html README.md
pandoc --from gfm-raw_html --to plain --output README.txt README.md
mkdir --parents debian-man/
rollup --no-esModule -c
cp --force bin/uglifyjs debian-man/uglifyjs.terser
NODE_PATH=lib help2man --name JavaScript --name parser --name and --name mangler/compressor --name and --name beautifier --name toolkit --no-info --output  debian-man/uglifyjs.terser.1  debian-man/uglifyjs.terser || { NODE_PATH=lib  debian-man/uglifyjs.terser --help; false; }
[WARNING] This document format requires a nonempty <title> element.
  Please specify either 'title' or 'pagetitle' in the metadata,
  e.g. by using --metadata pagetitle="..." on the command line.
  Falling back to 'README'
help2man: can't get `--help' info from debian-man/uglifyjs.terser
Try `--no-discard-stderr' if option outputs to stderr

main.js → dist/bundle.js...
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module '/<<PKGBUILDDIR>>/debian-man/../dist/bundle.min.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/<<PKGBUILDDIR>>/debian-man/uglifyjs.terser:17:16)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
make[1]: *** [debian/rules:33: debian-man/uglifyjs.terser.1] Error 1
make[1]: *** Waiting for unfinished jobs....
(!) Circular dependency: lib/ast.js -> lib/parse.js -> lib/ast.js
created dist/bundle.js in 1.4s
cd dist && TERSER_NO_BUNDLE=1 ../bin/uglifyjsnobundle \
	--mangle --compress \
	--source-map 'content=bundle.js.map,includeSources=true' \
	--output bundle.min.js \
	-- bundle.js
mkdir --parents debian/js
install --mode a=r,u+w -D --target-directory debian/js \
	-- dist/*
rm -rf dist
mkdir --parents dist
rollup --no-esModule -c --input=main.tests.js

main.tests.js → dist/bundle.js...
(!) Circular dependency: lib/ast.js -> lib/parse.js -> lib/ast.js
created dist/bundle.js in 1.3s
cd dist && TERSER_NO_BUNDLE=1 ../bin/uglifyjsnobundle \
	--mangle --compress \
	--source-map 'content=bundle.js.map,includeSources=true' \
	--output bundle.min.js \
	-- bundle.js
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:87: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2020-02-05T04:52:21Z

Finished
--------


+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Build failure (dpkg-buildpackage died)

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build Type: full
Build-Space: 11180
Build-Time: 12
Distribution: unstable
Fail-Stage: build
Host Architecture: amd64
Install-Time: 8
Job: /home/xavier/dev/debian/src/pkg-js/packages/node-terser_4.1.2-4.dsc
Machine Architecture: amd64
Package: node-terser
Package-Time: 23
Source-Version: 4.1.2-4
Space: 11180
Status: attempted
Version: 4.1.2-4
--------------------------------------------------------------------------------
Finished at 2020-02-05T04:52:21Z
Build needed 00:00:23, 11180k disk space


More information about the Pkg-javascript-devel mailing list