[pkg-go] Bug#960613: golang-github-mailru-easyjson FTCBFS: doesn't honour DEB_BUILD_OPTIONS=nocheck

Helmut Grohne helmut at subdivi.de
Thu May 14 14:27:57 BST 2020


Source: golang-github-mailru-easyjson
Version: 0.7.0-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

golang-github-mailru-easyjson fails to cross build from source. The
immediate failure is due to the golang-go dependency, for which there is
no agreed solution yet, so we ignore that issue here. Continuing from
there, it attempts running tests despite DEB_BUILD_OPTIONS=nocheck and
fails. So this bug only asks for fixing DEB_BUILD_OPTIONS=nocheck.
Please consider applying the attached patch and close this bug when
doing so.

Helmut
-------------- next part --------------
diff --minimal -Nru golang-github-mailru-easyjson-0.7.0/debian/changelog golang-github-mailru-easyjson-0.7.0/debian/changelog
--- golang-github-mailru-easyjson-0.7.0/debian/changelog	2020-01-15 01:13:06.000000000 +0100
+++ golang-github-mailru-easyjson-0.7.0/debian/changelog	2020-05-14 15:18:33.000000000 +0200
@@ -1,3 +1,10 @@
+golang-github-mailru-easyjson (0.7.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Honour DEB_BUILD_OPTIONS=nocheck. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 14 May 2020 15:18:33 +0200
+
 golang-github-mailru-easyjson (0.7.0-1) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru golang-github-mailru-easyjson-0.7.0/debian/rules golang-github-mailru-easyjson-0.7.0/debian/rules
--- golang-github-mailru-easyjson-0.7.0/debian/rules	2020-01-15 01:13:06.000000000 +0100
+++ golang-github-mailru-easyjson-0.7.0/debian/rules	2020-05-14 15:08:48.000000000 +0200
@@ -3,7 +3,11 @@
 %:
 	dh $@ --buildsystem=golang --with=golang --builddirectory=build
 
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 override_dh_auto_test: generate
+else
+override_dh_auto_test:
+endif
 
 PKG = github.com/mailru/easyjson
 BIN = $(CURDIR)/build/bin


More information about the Pkg-go-maintainers mailing list