Control: tag -1 patch

On Wed, 2016-08-24 at 16:03:09 +0200, Santiago Vila wrote:
> Package: src:influxdb
> Version: 0.13.0+dfsg1-4
> Severity: serious

> I tried to build this package on stretch with dpkg-buildpackage -A and
> sbuild and it failed with an error like this:
> 
> ------------------------------------------------------------------
> go generate -v -ldflags=-X main.version=0.13.0 github.com/[...]
>  [ very long list, see attach for details] returned exit code 1
> ------------------------------------------------------------------
> 
> I attach five different build logs on two different virtual machines.
> The builds were made on a virtual machine having either 6GB or 3GB of RAM,
> and 4GB of swap.
> 
> I was able to build version 0.10.2+dfsg1-2 without problems.

This is a problem with the statik generator which seems to be unable
to cope with the generated file existing already. Attached a patch
fixing this issues.

Thanks,
Guillem
diff --git a/debian/rules b/debian/rules
index 1254fe4..779bdd1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,9 @@ override_dh_auto_configure:
 	cp -v $(SOURCE)/influxql/*.tmpl* _build/src/$(DH_GOPKG)/influxql
 	cp -v $(SOURCE)/influxql/tmpldata _build/src/$(DH_GOPKG)/influxql
 
+	# Remove statik files, latest version cannot cope.
+	rm -f _build/src/github.com/influxdata/influxdb/services/admin/statik/statik.go
+
 # influxdb version
 DEB_VERSION := $(shell dpkg-parsechangelog -l$(DEBIAN_DIR)/changelog --show-field Version)
 DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)

Reply via email to