Package: src:node-yargs-parser
Version: 21.1.1+~21.0.0-4
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:node-yargs-parser, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean --buildsystem=nodejs
        rm -rf ./node_modules/.cache ./.nyc_output
        rm -rf types-yargs-parser/node_modules/.cache 
types-yargs-parser/.nyc_output
rm ./node_modules/.cache
unlink ./node_modules/@rollup/plugin-commonjs
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@rollup/plugin-node-resolve
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
rm types-yargs-parser/node_modules/.cache
rm ./node_modules/.cache
unlink ./node_modules/@rollup/plugin-commonjs
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@rollup/plugin-node-resolve
Trying to remove ./node_modules/@rollup
unlink ./node_modules/@types/node
Trying to remove ./node_modules/@types
unlink node_modules/@types/yargs-parser
Trying to remove node_modules/@types
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure --buildsystem=nodejs
Link ./node_modules/@rollup/plugin-commonjs -> 
/usr/share/nodejs/@rollup/plugin-commonjs
Link ./node_modules/@rollup/plugin-node-resolve -> 
/usr/share/nodejs/@rollup/plugin-node-resolve
Link ./node_modules/@types/node -> /usr/share/nodejs/@types/node
Link node_modules/@types/yargs-parser -> ../../types-yargs-parser
Link node_modules/gts -> ../debian/build_modules/gts
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
tsc
lib/index.ts:10:24 - error TS2591: 
Cannot find name 'util'. Do you need to install type definitions for node? 
Try `npm i --save-dev @types/node` and then add 'node' to the types field in 
your tsconfig.

10 import { format } from 'util'
                          ~~~~~~

lib/index.ts:11:36 - error TS2591: 
Cannot find name 'path'. Do you need to install type definitions for node? 
Try `npm i --save-dev @types/node` and then add 'node' to the types field in 
your tsconfig.

11 import { normalize, resolve } from 'path'
                                      ~~~~~~

lib/index.ts:15:30 - error TS2591: 
Cannot find name 'fs'. Do you need to install type definitions for node? 
Try `npm i --save-dev @types/node` and then add 'node' to the types field in 
your tsconfig.

15 import { readFileSync } from 'fs'
                                ~~~~

lib/index.ts:19:25 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

19 const minNodeVersion = (process && process.env && 
process.env.YARGS_MIN_NODE_VERSION)
                           ~~~~~~~

lib/index.ts:19:36 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

19 const minNodeVersion = (process && process.env && 
process.env.YARGS_MIN_NODE_VERSION)
                                      ~~~~~~~

lib/index.ts:19:51 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

19 const minNodeVersion = (process && process.env && 
process.env.YARGS_MIN_NODE_VERSION)
                                                     ~~~~~~~

lib/index.ts:20:12 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

20   ? Number(process.env.YARGS_MIN_NODE_VERSION)
              ~~~~~~~

lib/index.ts:22:21 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

22 const nodeVersion = process?.versions?.node ?? 
process?.version?.slice(1)
                       ~~~~~~~

lib/index.ts:22:48 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

22 const nodeVersion = process?.versions?.node ?? 
process?.version?.slice(1)
                                                  ~~~~~~~

lib/index.ts:31:13 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

31 const env = process ? process.env as { [key: string]: string } : {}
               ~~~~~~~

lib/index.ts:31:23 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

31 const env = process ? process.env as { [key: string]: string } : {}
                         ~~~~~~~

lib/index.ts:33:8 - error TS2591: 
Cannot find name 'process'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

33   cwd: process.cwd,
          ~~~~~~~

lib/index.ts:43:16 - error TS2591: 
Cannot find name 'require'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

43     if (typeof require !== 'undefined') {
                  ~~~~~~~

lib/index.ts:44:14 - error TS2591: 
Cannot find name 'require'. Do you need to install type definitions for 
node? Try `npm i --save-dev @types/node` and then add 'node' to the types field 
in your tsconfig.

44       return require(path)
                ~~~~~~~

tsconfig.json:8:25 - error TS5107: 
Option 'moduleResolution=node10' is deprecated and will stop functioning in 
TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence 
this error.
  Visit https://aka.ms/ts6 for migration information.

8     "moduleResolution": "node",
                          ~~~~~~


Found 15 errors in 2 files.

Errors  Files
    14  lib/index.ts:10
     1  tsconfig.json:8
make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to