[Pkg-javascript-devel] Bug#991651: twitter-bootstrap4: FTBFS: Browserslist: caniuse-lite

Debian BTS debbugs at buxtehude.debian.org
Thu Jul 29 23:09:02 BST 2021


is
outdated.  Please run: npx browserslist at latest --update-db
Reply-To: Pirate Praveen <praveen at onenetbeyond.org>, 991651 at bugs.debian.org
Resent-From: Pirate Praveen <praveen at onenetbeyond.org>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-CC: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
X-Loop: owner at bugs.debian.org
Resent-Date: Thu, 29 Jul 2021 22:09:01 +0000
Resent-Message-ID: <handler.991651.B991651.162759641819068 at bugs.debian.org>
Resent-Sender: owner at bugs.debian.org
X-Debian-PR-Message: followup 991651
X-Debian-PR-Package: src:twitter-bootstrap4
X-Debian-PR-Keywords: bullseye ftbfs sid
References: <YQLHBlKPhgH7Y/sf at xanadu.blop.info>
X-Debian-PR-Source: twitter-bootstrap4
Received: via spool by 991651-submit at bugs.debian.org id=B991651.162759641819068
          (code B ref 991651); Thu, 29 Jul 2021 22:09:01 +0000
Received: (at 991651) by bugs.debian.org; 29 Jul 2021 22:06:58 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
	(2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-14.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MURPHY_DRUGS_REL8,
	RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham
	autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 150; neutral, 255; spammy,
	0. spammytokens: hammytokens:0.000-+--pkgbuilddir,
	0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*praveen, 0.000-+--H*rp:U*praveen,
	0.000-+--U*praveen
Received: from latitanza.investici.org ([82.94.249.234]:21925)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <praveen at onenetbeyond.org>)
	id 1m9EB7-0004xM-Qg
	for 991651 at bugs.debian.org; Thu, 29 Jul 2021 22:06:58 +0000
Received: from mx3.investici.org (unknown [127.0.0.1])
	by latitanza.investici.org (Postfix) with ESMTP id 4GbPl407S6zGp8D
	for <991651 at bugs.debian.org>; Thu, 29 Jul 2021 22:06:56 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onenetbeyond.org;
	s=stigmate; t=1627596416;
	bh=S7MxjU9Eo1Pdw0iGm9GGuqH1lxp38+LDwb9R/esM1vA=;
	h=Date:From:Subject:To:From;
	b=KWWIv2pNp3JjLYpzwkgxPCb3gBjv399tcTZz3k/txdAC1CiwV5UuBRtV3uCQCWB7z
	 DElCHO22GmLwD4KdFlNEGmvZbvIZe8rd3QV7o79Vpr//KOn5x29GjBXxX+5xlHhJyw
	 3xrzRPIsVzjHADjzm6VFdBp6aW8AtLtExoU/rcmo=
Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: praveen at onenetbeyond.org) by localhost (Postfix) with ESMTPSA id 4GbPl30bpBzGp88
	for <991651 at bugs.debian.org>; Thu, 29 Jul 2021 22:06:54 +0000 (UTC)
Date: Fri, 30 Jul 2021 03:36:45 +0530
From: Pirate Praveen <praveen at onenetbeyond.org>
To: 991651 at bugs.debian.org
Message-Id: <9F11XQ.AY0PKD59F3C6 at onenetbeyond.org>
X-Mailer: geary/3.38.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

On Fri, 30 Jul 2021 01:43:22 +0530 Pirate Praveen=20
<praveen at onenetbeyond.org> wrote:
 > On Fri, 30 Jul 2021 00:28:16 +0530 Pirate Praveen
 > <praveen at onenetbeyond.org> wrote:
 >  > Dropping this line should fix the bug I think,
 >
 > I tried, but this did not work.
 >
 >  >
 >=20
https://salsa.debian.org/js-team/twitter-bootstrap4/-/blob/master/debian/po=
stcss.js#L28
 >  >
 >  > It already ships a .browserslistrc file
 >  >
 >=20
https://salsa.debian.org/js-team/twitter-bootstrap4/-/blob/master/.browsers=
listrc

This patch makes the build to succeed with some warnings,

$ cat debian/patches/ignoreBrowserslistConfig-in-babel.patch
--- a/.babelrc.js
+++ b/.babelrc.js
@@ -5,7 +5,8 @@
       {
         loose: true,
         bugfixes: true,
- modules: false
+ modules: false,
+ ignoreBrowserslistConfig: true
       }
     ]
   ],

mkdir -p dist/css dist/js dist/tmp
sassc --sourcemap=3Dauto scss/bootstrap.scss dist/tmp/bootstrap.css
sassc --sourcemap=3Dauto scss/bootstrap-grid.scss=20
dist/tmp/bootstrap-grid.css
sassc --sourcemap=3Dauto scss/bootstrap-reboot.scss=20
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 at latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
(node:155767) UnhandledPromiseRejectionWarning: BrowserslistError:=20
Unknown browser query `> 1%`. Maybe you are using old Browserslist or=20
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 (<anonymous>)
    at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
    at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
    at Browsers.parse=20
(/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
    at new Browsers=20
(/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
    at loadPrefixes=20
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
    at Object.prepare=20
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
    at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
(node:155767) UnhandledPromiseRejectionWarning: Unhandled promise=20
rejection. This error originated either by throwing inside of an async=20
function without a catch block, or by rejecting a promise which was not=20
handled with .catch(). To terminate the node process on unhandled=20
promise rejection, use the CLI flag `--unhandled-rejections=3Dstrict`=20
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).=20
(rejection id: 1)
(node:155767) [DEP0018] DeprecationWarning: Unhandled promise=20
rejections are deprecated. In the future, promise rejections that are=20
not handled will terminate the Node.js process with a non-zero exit=20
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:155767) UnhandledPromiseRejectionWarning: BrowserslistError:=20
Unknown browser query `> 1%`. Maybe you are using old Browserslist or=20
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 (<anonymous>)
    at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
    at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
    at Browsers.parse=20
(/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
    at new Browsers=20
(/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
    at loadPrefixes=20
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
    at Object.prepare=20
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
    at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
(node:155767) UnhandledPromiseRejectionWarning: Unhandled promise=20
rejection. This error originated either by throwing inside of an async=20
function without a catch block, or by rejecting a promise which was not=20
handled with .catch(). To terminate the node process on unhandled=20
promise rejection, use the CLI flag `--unhandled-rejections=3Dstrict`=20
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).=20
(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://twitter.com/browserslist


(node:155767) UnhandledPromiseRejectionWarning: BrowserslistError:=20
Unknown browser query `> 1%`. Maybe you are using old Browserslist or=20
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 (<anonymous>)
    at resolve (/usr/share/nodejs/browserslist/index.js:318:18)
    at browserslist (/usr/share/nodejs/browserslist/index.js:444:21)
    at Browsers.parse=20
(/usr/share/nodejs/autoprefixer/lib/browsers.js:54:12)
    at new Browsers=20
(/usr/share/nodejs/autoprefixer/lib/browsers.js:42:26)
    at loadPrefixes=20
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:103:20)
    at Object.prepare=20
(/usr/share/nodejs/autoprefixer/lib/autoprefixer.js:117:22)
    at /usr/share/nodejs/postcss/lib/lazy-result.js:133:39
(node:155767) UnhandledPromiseRejectionWarning: Unhandled promise=20
rejection. This error originated either by throwing inside of an async=20
function without a catch block, or by rejecting a promise which was not=20
handled with .catch(). To terminate the node process on unhandled=20
promise rejection, use the CLI flag `--unhandled-rejections=3Dstrict`=20
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).=20
(rejection id: 3)
sassc --sourcemap=3Dauto --style compressed dist/tmp/bootstrap.css=20
dist/css/bootstrap.min.css
sassc --sourcemap=3Dauto --style compressed dist/tmp/bootstrap-grid.css=20
dist/css/bootstrap-grid.min.css
sassc --sourcemap=3Dauto --style compressed dist/tmp/bootstrap-reboot.css=20
dist/css/bootstrap-reboot.min.css
rm -rf dist/tmp
NODE_PATH=3Dnode_modules node build/build-plugins.js
Building Alert plugin...
Building Button plugin...
Building Carousel plugin...
Building Collapse plugin...
Building Dropdown plugin...
Building Modal plugin...
Building Popover plugin...
Building ScrollSpy plugin...
Building Tab plugin...
Building Toast plugin...
Building Tooltip plugin...
Building Util plugin...
Building Util plugin... Done!
Building Alert plugin... Done!
Building Button plugin... Done!
Building Carousel plugin... Done!
Building Collapse plugin... Done!
Building Dropdown plugin... Done!
Building Modal plugin... Done!
Building Popover plugin... Done!
Building ScrollSpy plugin... Done!
Building Tab plugin... Done!
Building Toast plugin... Done!
Building Tooltip plugin... Done!
NODE_PATH=3Dnode_modules rollup --sourcemap --environment BUNDLE:true=20
--config build/rollup.config.js

/<<PKGBUILDDIR>>/js/index.js =E2=86=92 dist/js/bootstrap.bundle.js...
created dist/js/bootstrap.bundle.js in 2.8s
NODE_PATH=3Dnode_modules rollup --sourcemap --environment BUNDLE:false=20
--config build/rollup.config.js

/<<PKGBUILDDIR>>/js/index.js =E2=86=92 dist/js/bootstrap.js...
created dist/js/bootstrap.js in 2.4s
cd dist/js && uglifyjs.terser --compress --mangle --comments "/^!"=20
--source-map=20
content=3Dbootstrap.bundle.js.map,includeSources,url=3Dbootstrap.bundle.min=
.js.map=20
-o bootstrap.bundle.min.js bootstrap.bundle.js
cd dist/js && uglifyjs.terser --compress --mangle --comments "/^!"=20
--source-map=20
content=3Dbootstrap.js.map,includeSources,url=3Dbootstrap.min.js.map -o=20
bootstrap.min.js bootstrap.js



More information about the Pkg-javascript-devel mailing list