[Pkg-javascript-devel] Bug#1007894: FTBFS: fails with pkg-js-tools dh_auto_build debian/nodejs/rxjs/build

2022-03-18 Thread Yadd

On 18/03/2022 13:23, Jérémy Lal wrote:



On Fri, Mar 18, 2022 at 1:21 PM Yadd > wrote:


On 18/03/2022 09:38, Jérémy Lal wrote:
 > Package: node-inquirer
 > Version: 8.2.0+~cs26.5.5-1
 > Severity: serious
 > Tags: ftbfs
 > Justification: fails to build from source
 >
 > Found debian/nodejs/additional_components
 > Adding component(s): packages/checkbox, packages/confirm,
packages/core, packages/editor, packages/expand, packages/input,
packages/inquirer, packages/password, packages/select
 > No build command found, searching known files
 > Found debian/nodejs/figures/build
 >       cd ./figures && sh -ex ../debian/nodejs/figures/build
 > + babeljs --presets @babel/preset-env -o index.cjs index.js
 > No build command found, searching known files
 > Found debian/nodejs/rxjs/build
 >       cd ./rxjs && sh -ex ../debian/nodejs/rxjs/build
 > + rm -rf ./dist
 > + tsc -b ./src/tsconfig.cjs.json ./src/tsconfig.esm.json
./src/tsconfig.esm5.json ./src/tsconfig.esm5.rollup.json
./src/tsconfig.types.json ./spec/tsconfig.json
 > + find dist/ -type f -name *.tsbuildinfo -delete
 > + node ./tools/make-umd-bundle.js
 > TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of
type string or an instance of Buffer, TypedArray, or DataView.
Received undefined
 >      at Object.writeFileSync (fs.js:1521:5)
 >      at

/var/lib/nspawn-runner/.build/js-team/nodejs/debian/output/node-inquirer-8.2.0+~cs26.5.5/rxjs/tools/rollup-bundle.js:45:8
 >      at runMicrotasks ()
 >      at processTicksAndRejections
(internal/process/task_queues.js:95:5) {
 >    code: 'ERR_INVALID_ARG_TYPE'
 > }
 > dh_auto_build: error: cd ./rxjs && sh -ex
../debian/nodejs/rxjs/build returned exit code 1
 > make: *** [debian/rules:8: binary] Error 25
 > dpkg-buildpackage: error: debian/rules binary subprocess returned
exit status 2

The various tsc problems ca come:
   * from a previous undetected @types/foo change
   * from @types/node update
   * from new node_modules links which may show problems ignored before

Here, problem isn't linked to tsc but maybe due to fs API changes. I'm
going to take a look.


That makes sense to me.
I can have a look later today if you don't want to lose time on this.

Jérémy


Problem is in rollup job. Sourcemap data is undefined, that why this 
error is reported


--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel


[Pkg-javascript-devel] Bug#1007894: FTBFS: fails with pkg-js-tools dh_auto_build debian/nodejs/rxjs/build

2022-03-18 Thread Jérémy Lal
Package: node-inquirer
Version: 8.2.0+~cs26.5.5-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source

Found debian/nodejs/additional_components
Adding component(s): packages/checkbox, packages/confirm, packages/core, 
packages/editor, packages/expand, packages/input, packages/inquirer, 
packages/password, packages/select
No build command found, searching known files
Found debian/nodejs/figures/build
cd ./figures && sh -ex ../debian/nodejs/figures/build
+ babeljs --presets @babel/preset-env -o index.cjs index.js
No build command found, searching known files
Found debian/nodejs/rxjs/build
cd ./rxjs && sh -ex ../debian/nodejs/rxjs/build
+ rm -rf ./dist
+ tsc -b ./src/tsconfig.cjs.json ./src/tsconfig.esm.json 
./src/tsconfig.esm5.json ./src/tsconfig.esm5.rollup.json 
./src/tsconfig.types.json ./spec/tsconfig.json
+ find dist/ -type f -name *.tsbuildinfo -delete
+ node ./tools/make-umd-bundle.js
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or 
an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFileSync (fs.js:1521:5)
at 
/var/lib/nspawn-runner/.build/js-team/nodejs/debian/output/node-inquirer-8.2.0+~cs26.5.5/rxjs/tools/rollup-bundle.js:45:8
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
  code: 'ERR_INVALID_ARG_TYPE'
}
dh_auto_build: error: cd ./rxjs && sh -ex ../debian/nodejs/rxjs/build returned 
exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable'), (101, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.16.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages node-inquirer depends on:
ii  mocha  9.2.2+ds1+~cs28.3.8-1
ii  node-ansi-escapes  5.0.0+really.4.3.1-1
ii  node-bl5.0.0-1
ii  node-chalk 4.1.2-1
ii  node-ci-info   3.3.0+~cs4.2.0-1
ii  node-cli-cursor3.1.0-2
ii  node-cli-spinners  2.6.1-1
ii  node-cli-width 3.0.0-2
ii  node-defaults  1.0.3+~1.0.3-1
ii  node-escape-string-regexp  4.0.0-2
ii  node-external-editor   3.1.0+dfsg-1
ii  node-lodash4.17.21+dfsg+~cs8.31.198.20210220-5
ii  node-mute-stream   0.0.8+~0.0.1-1
ii  node-run-async 2.4.1-2
ii  node-string-width  4.2.3+~cs13.2.3-1
ii  node-strip-ansi6.0.1-1
ii  node-through   2.3.8+~cs0.0.30-1
ii  node-tslib 2.3.1-2

node-inquirer recommends no packages.

node-inquirer suggests no packages.

-- no debconf information

-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel