* Tianon Gravi:

> On 20 February 2016 at 01:22, Tianon Gravi <[email protected]> wrote:
>> I've committed a changelog update for 1.6 to Git -- I'm curious what
>> lintian-overrides changes are necessary, though? (doing an sbuild now, so
>> I suppose I'll find out soon anyhow)
>
> Not seeing anything new show up in ftp-master-rejects:
>
> $ lintian --ftp-master-rejects ~/sbuild/golang*.changes
> N: 41 tags overridden (41 errors)

It turns out that none of the Lintian warnings and errors were new.

I have refined some of the overrides, see below.

There still are a bunch of errors ("source-is-missing") in the soruce
package. I think that testdata should not matter here.

This leaves only the the race detector runtime libraries. I suppose that
one could add the sources for those and add an override containing a
note that points to said source.

What do you think?

Cheers,
-Hilko
>From 2109a57a76967f5ae089411ef69244d130369bad Mon Sep 17 00:00:00 2001
From: Hilko Bengen <[email protected]>
Date: Sat, 20 Feb 2016 13:06:39 +0100
Subject: [PATCH] Refine Lintian overrides

---
 debian/golang-go.lintian-overrides  |  4 ++++
 debian/golang-src.lintian-overrides | 16 ++++++++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/debian/golang-go.lintian-overrides b/debian/golang-go.lintian-overrides
index 829bbf3..5899e5e 100644
--- a/debian/golang-go.lintian-overrides
+++ b/debian/golang-go.lintian-overrides
@@ -2,3 +2,7 @@
 golang-go: unstripped-binary-or-object
 # Go always links statically.
 golang-go: statically-linked-binary
+
+# ar archives generated by the Golang toolchain contain .o files that
+# are not ELF objects.
+golang-go: apparently-corrupted-elf-binary
diff --git a/debian/golang-src.lintian-overrides b/debian/golang-src.lintian-overrides
index aa1be30..d3a1b96 100644
--- a/debian/golang-src.lintian-overrides
+++ b/debian/golang-src.lintian-overrides
@@ -1,4 +1,16 @@
 # golang-src ships ELF object files as testdata for the debug/dwarf and
 # debug/elf packages.
-golang-src: arch-dependent-file-in-usr-share
-golang-src: unstripped-binary-or-object
+golang-src: arch-dependent-file-in-usr-share usr/share/go/src/*/testdata/*
+golang-src: binary-from-other-architecture   usr/share/go/src/*/testdata/*
+golang-src: unstripped-binary-or-object      usr/share/go/src/*/testdata/*
+
+# golang-src ships the race detector runtime libraries in /usr/share/go/src.
+golang-src: arch-dependent-file-in-usr-share usr/share/go/src/runtime/race/*.syso
+golang-src: unstripped-binary-or-object      usr/share/go/src/runtime/race/*.syso
+
+# compressed testdata is taken directly from the source tarball, so
+# the timestamps don't make the build unreproducible.
+golang-src: package-contains-timestamped-gzip usr/share/go/src/*/testdata/*
+
+# security features such as read-only relocation do not matter for testdata.
+golang-src: hardening-no-relro usr/share/go/src/*/testdata/*
-- 
2.7.0

_______________________________________________
Pkg-go-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers

Reply via email to