[Pkg-javascript-devel] Bug#1016339: node-promise: FTBFS: TypeError: Cannot read properties of undefined (reading 'allowHashBang')

Lucas Nussbaum lucas at debian.org
Fri Jul 29 19:39:50 BST 2022


Source: node-promise
Version: 8.1.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220728 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>>'
> node ./build.js
> Since Acorn 8.0.0, options.ecmaVersion is required.
> Defaulting to 2020, but this will stop working in the future.
> /usr/share/nodejs/acorn/dist/acorn.js:444
>     if (opts.allowHashBang == null)
>              ^
> 
> TypeError: Cannot read properties of undefined (reading 'allowHashBang')
>     at getOptions (/usr/share/nodejs/acorn/dist/acorn.js:444:14)
>     at new Parser (/usr/share/nodejs/acorn/dist/acorn.js:500:30)
>     at Function.parse (/usr/share/nodejs/acorn/dist/acorn.js:639:12)
>     at Object.parse (/usr/share/nodejs/acorn/dist/acorn.js:5562:19)
>     at fixup (/<<PKGBUILDDIR>>/build.js:23:19)
>     at /<<PKGBUILDDIR>>/build.js:45:13
>     at Array.forEach (<anonymous>)
>     at Object.<anonymous> (/<<PKGBUILDDIR>>/build.js:43:36)
>     at Module._compile (node:internal/modules/cjs/loader:1120:14)
>     at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
> 
> Node.js v18.6.0
> make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/07/28/node-promise_8.1.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220728;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220728&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