[Pkg-javascript-devel] Bug#991651: twitter-bootstrap4: FTBFS: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

2021-07-29 Thread Lucas Nussbaum
Source: twitter-bootstrap4
Version: 4.5.2+dfsg1-6
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 '/<>'
> mkdir -p dist/css dist/js dist/tmp
> sassc --sourcemap=auto scss/bootstrap.scss dist/tmp/bootstrap.css
> sassc --sourcemap=auto scss/bootstrap-grid.scss dist/tmp/bootstrap-grid.css
> sassc --sourcemap=auto scss/bootstrap-reboot.scss 
> dist/tmp/bootstrap-reboot.css
> node debian/postcss.js
> 
>   Replace Autoprefixer browsers option to Browserslist config.
>   Use browserslist key in package.json or .browserslistrc file.
> 
>   Using browsers option can cause errors. Browserslist config can
>   be used for Babel, Autoprefixer, postcss-normalize and other tools.
> 
>   If you really need to use option, rename it to overrideBrowserslist.
> 
>   Learn more at:
>   https://github.com/browserslist/browserslist#readme
>   https://twitter.com/browserslist
> 
> 
> 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
> (node:16484) UnhandledPromiseRejectionWarning: BrowserslistError: Unknown 
> browser query `> 1%`. Maybe you are using old Browserslist or made typo in 
> query.
> 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 Browsers.parse (/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
> at new Browsers (/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
> at loadPrefixes 
> (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
> at Object.prepare 
> (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
> at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
> (node:16484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 
> This error originated either by throwing inside of an async function without 
> a catch block, or by rejecting a promise which was not handled with .catch(). 
> To terminate the node process on unhandled promise rejection, use the CLI 
> flag `--unhandled-rejections=strict` (see 
> https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection 
> id: 1)
> (node:16484) [DEP0018] DeprecationWarning: Unhandled promise rejections are 
> deprecated. In the future, promise rejections that are not handled will 
> terminate the Node.js process with a non-zero exit code.
> 
>   Replace Autoprefixer browsers option to Browserslist config.
>   Use browserslist key in package.json or .browserslistrc file.
> 
>   Using browsers option can cause errors. Browserslist config can
>   be used for Babel, Autoprefixer, postcss-normalize and other tools.
> 
>   If you really need to use option, rename it to overrideBrowserslist.
> 
>   Learn more at:
>   https://github.com/browserslist/browserslist#readme
>   https://twitter.com/browserslist
> 
> 
> (node:16484) UnhandledPromiseRejectionWarning: BrowserslistError: Unknown 
> browser query `> 1%`. Maybe you are using old Browserslist or made typo in 
> query.
> 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 Browsers.parse (/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
> at new Browsers (/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
> at loadPrefixes 
> (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
> at Object.prepare 
> (/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
> at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
> (node:16484) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 
> This error originated either by throwing inside of an async function without 
> a catch block, or by rejecting a promise which was not handled with .catch(). 
> To terminate the node process on unhandled promise rejection, use the CLI 
> flag `--unhandled-rejections=strict` (see 
> https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection 
> id: 2)
> 
>   Replace Autoprefixer browsers option to Browserslist config.
>   Use browserslist key in package.json or .browserslistrc file.
> 
>   Using browsers option can cause errors. Browserslist config can
>   be used for Babel, Autoprefixer, postcss-normalize and other tools.
> 
>   If you really need to use option, rename it to overrideBrowserslist.
> 
>   Learn more at:
>   https://github.com/browserslist/browserslist#readme
>   https://twi

[Pkg-javascript-devel] Bug#991651: twitter-bootstrap4: FTBFS: Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

2021-07-29 Thread Pirate Praveen
Control: retitle -1 FTBFS: Replace Autoprefixer browsers option to 
Browserslist config


On Thu, 29 Jul 2021 17:19:34 +0200 Lucas Nussbaum  
wrote:

> Source: twitter-bootstrap4
> Version: 4.5.2+dfsg1-6
> 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 '/<>'
> > mkdir -p dist/css dist/js dist/tmp
> > sassc --sourcemap=auto scss/bootstrap.scss dist/tmp/bootstrap.css
> > sassc --sourcemap=auto scss/bootstrap-grid.scss 
dist/tmp/bootstrap-grid.css
> > sassc --sourcemap=auto scss/bootstrap-reboot.scss 
dist/tmp/bootstrap-reboot.css

> > node debian/postcss.js
> >
> >   Replace Autoprefixer browsers option to Browserslist config.
> >   Use browserslist key in package.json or .browserslistrc file.
> >
> >   Using browsers option can cause errors. Browserslist config can
> >   be used for Babel, Autoprefixer, postcss-normalize and other 
tools.

> >
> >   If you really need to use option, rename it to 
overrideBrowserslist.

> >
> >   Learn more at:
> >   https://github.com/browserslist/browserslist#readme
> >   https://twitter.com/browserslist

Dropping this line should fix the bug I think,

https://salsa.debian.org/js-team/twitter-bootstrap4/-/blob/master/debian/postcss.js#L28

It already ships a .browserslistrc file 
https://salsa.debian.org/js-team/twitter-bootstrap4/-/blob/master/.browserslistrc


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