Bug#991656: node-superagent: FTBFS: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

2021-07-29 Thread Pirate Praveen
Control: retitle -1  Unknown browser query `> 1%`. Maybe you are using 
old Browserslist or made typo in query.


On Thu, 29 Jul 2021 17:14:42 +0200 Lucas Nussbaum  
wrote:

> Source: node-superagent
> Version: 6.1.0-3
> Severity: serious
> Justification: FTBFS on amd64
> Tags: bullseye sid ftbfs
> Usertags: ftbfs-20210728 ftbfs-bullseye
>
> Hi,
>
> During a rebuild of all packages in bullseye, your package failed to 
build

> on amd64.
>
> Relevant part (hopefully):
> > make[1]: Entering directory '/<>'
> > babeljs --config-file ./.lib.babelrc src --out-dir lib
> > Browserslist: caniuse-lite is outdated. Please run:
> > npx browserslist@latest --update-db
> >
> > Why you should do it regularly:
> > https://github.com/browserslist/browserslist#browsers-data-updating
> > Error [BrowserslistError]: [BABEL] 
/<>/src/agent-base.js: Unknown browser query `> 1%`. Maybe 
you are using old Browserslist or made typo in query. (While 
processing: "/usr/share/nodejs/@babel/preset-env/lib/index.js")


The actual error that caused failure is,
Unknown browser query `> 1%`. Maybe you are using old Browserslist or 
made typo in query.


This patch fixes the build failure, .browserslistrc already has these 
values and babel-preset-env recommends using this option as per 
https://babeljs.io/docs/en/babel-preset-env#browserslist-integration


--- a/.lib.babelrc
+++ b/.lib.babelrc
@@ -2,8 +2,7 @@
  "presets": [
["@babel/env", {
  "targets": {
- "node": "6.4.0",
- "browsers": [ "> 1%", "last 2 versions", "ie 9" ]
+ "node": "6.4.0"
  }
}]
  ],

But later down in the same doc it says,

By default @babel/preset-env will use browserslist config sources 
unless either the targets or ignoreBrowserslistConfig options are set.


and we have targets option set here. One option would be to drop 
targets entirely as we need to support only the nodejs version shipped 
with debian.




Bug#991656: node-superagent: FTBFS: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

2021-07-29 Thread Lucas Nussbaum
Source: node-superagent
Version: 6.1.0-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210728 ftbfs-bullseye

Hi,

During a rebuild of all packages in bullseye, your package failed to build
on amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> babeljs --config-file ./.lib.babelrc src --out-dir lib
> Browserslist: caniuse-lite is outdated. Please run:
> npx browserslist@latest --update-db
> 
> Why you should do it regularly:
> https://github.com/browserslist/browserslist#browsers-data-updating
> Error [BrowserslistError]: [BABEL] /<>/src/agent-base.js: 
> Unknown browser query `> 1%`. Maybe you are using old Browserslist or made 
> typo in query. (While processing: 
> "/usr/share/nodejs/@babel/preset-env/lib/index.js")
> at unknownQuery (/usr/share/nodejs/browserslist/index.js:285:10)
> at /usr/share/nodejs/browserslist/index.js:372:11
> at Array.reduce ()
> at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
> at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
> at getTargets 
> (/usr/share/nodejs/@babel/helper-compilation-targets/lib/index.js:204:48)
> at /usr/share/nodejs/@babel/preset-env/lib/index.js:258:57
> at /usr/share/nodejs/@babel/helper-plugin-utils/lib/index.js:19:12
> at /usr/share/nodejs/@babel/core/lib/config/full.js:211:14
> at Generator.next () {
>   browserslist: true
> }
> make[1]: *** [debian/rules:11: override_dh_auto_build] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2021/07/28/node-superagent_6.1.0-3_testing.log

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.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.