[Pkg-javascript-devel] Bug#1017811: node-wikibase-cli: FTBFS without Internet access

Steve Langasek steve.langasek at canonical.com
Sat Aug 20 23:05:03 BST 2022


Package: node-wikibase-cli
Version: 15.15.4-3
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch

Hi Andrius,

In Ubuntu, node-wikibase-cli fails to build from source because dh_auto_test
runs a test suite at build time which requires Internet access, and the
Ubuntu build environment does not allow access to the Internet.

Debian packages should not fail to build when they are built offline.

The attached patch fixes the package to run the testsuite but ignore any
failures.  I've uploaded this patch to Ubuntu to fix the failure there.

Thanks for considering,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
diff -Nru node-wikibase-cli-15.15.4/debian/rules node-wikibase-cli-15.15.4/debian/rules
--- node-wikibase-cli-15.15.4/debian/rules	2022-03-18 07:03:58.000000000 -0700
+++ node-wikibase-cli-15.15.4/debian/rules	2022-08-20 15:01:12.000000000 -0700
@@ -10,3 +10,7 @@
 	help2man wb --name 'command-line interface to Wikibase' --no-info > debian/wb.1
 	help2man wd --name 'command-line interface to Wikidata' --no-info > debian/wd.1
 	dh_installman
+
+override_dh_auto_test:
+	# ignore failures from testsuite which requires Internet access
+	dh_auto_test || true


More information about the Pkg-javascript-devel mailing list