Source: dh-golang Version: 1.26 Severity: normal Tags: patch Hi,
Due to the chunking algorithm used by dh_golang, we currently print hundreds of warnings along the lines of: Use of uninitialized value $args[192] in join or string at /usr/bin/dh_golang line 42. Use of uninitialized value $args[193] in join or string at /usr/bin/dh_golang line 42. Use of uninitialized value $args[194] in join or string at /usr/bin/dh_golang line 42. […] This is due to the manual list splicing in exec_chunked which will return undefined variables. Patch attached that uses Perl's slice operator instead. It seems to work on at least golang-github-tjfoc-gmsm. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/script/dh_golang b/script/dh_golang index 4b577a8..73ded48 100755 --- a/script/dh_golang +++ b/script/dh_golang @@ -55,7 +55,7 @@ sub exec_chunked { my @result; for (my $i = 0; $i < @list; $i += CHUNKSIZE) { - push @result, exec_single($cmd, @list[$i .. $i + CHUNKSIZE - 1]); + push @result, exec_single($cmd, splice(@list, $i, CHUNKSIZE)); } return @result;
_______________________________________________ Pkg-go-maintainers mailing list Pkg-go-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers