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

Pirate Praveen praveen at onenetbeyond.org
Thu Jul 29 19:58:16 BST 2021


Control: retitle -1 FTBFS: Replace Autoprefixer browsers option to 
Browserslist config

On Thu, 29 Jul 2021 17:19:34 +0200 Lucas Nussbaum <lucas at debian.org> 
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 '/<<PKGBUILDDIR>>'
 > > 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



More information about the Pkg-javascript-devel mailing list