Your message dated Mon, 10 Aug 2015 18:04:08 +0000
with message-id <[email protected]>
and subject line Bug#794956: fixed in dh-golang 1.12
has caused the Debian Bug report #794956,
regarding dh-golang: Two simple changes to make dh-golang work with older dpkg 
versions
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
794956: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794956
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-golang
Severity: wishlist
Tags: patch

Here is a patch that allows dh-golang to function together with dpkg
(libdpkg-perl) from wheezy.

Cheers,
-Hilko
>From 704a5fd3afaf85c002de653ecae0b1ead8713f7b Mon Sep 17 00:00:00 2001
From: Hilko Bengen <[email protected]>
Date: Sat, 8 Aug 2015 18:37:52 +0200
Subject: [PATCH] make dh-golang compatible with wheezy-era dpkg

---
 script/dh_golang | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/script/dh_golang b/script/dh_golang
index 3799ff1..fad7998 100755
--- a/script/dh_golang
+++ b/script/dh_golang
@@ -12,6 +12,7 @@ use Dpkg; # not in core
 use Dpkg::Control; # not in core
 use Dpkg::Control::Info; # not in core
 use Dpkg::Deps; # not in core
+use Dpkg::Gettext; # not in core
 use Scalar::Util qw(blessed); # in core since v5.7.3
 use List::Util qw(first); # in core since v5.7.3
 
@@ -86,7 +87,12 @@ my $control = Dpkg::Control::Info->new();
 my $source = $control->get_source();
 my $build_depends = $source->{"Build-Depends"};
 if (defined($build_depends) && $build_depends ne '') {
-    my $facts = parse_status($Dpkg::ADMINDIR . "/status");
+    my $facts;
+    if ($Dpkg::VERSION >= 1.01) {
+        $facts = parse_status($Dpkg::ADMINDIR . "/status");
+    } else {
+        $facts = parse_status($Dpkg::admindir . "/status");
+    }
 
     sub flatten {
         my ($dep) = @_;
-- 
2.5.0


--- End Message ---
--- Begin Message ---
Source: dh-golang
Source-Version: 1.12

We believe that the bug you reported is fixed in the latest version of
dh-golang, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Stapelberg <[email protected]> (supplier of updated dh-golang 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 10 Aug 2015 19:46:17 +0200
Source: dh-golang
Binary: dh-golang
Architecture: source all
Version: 1.12
Distribution: unstable
Urgency: medium
Maintainer: Michael Stapelberg <[email protected]>
Changed-By: Michael Stapelberg <[email protected]>
Description:
 dh-golang  - debhelper add-on for packaging software written in Go (golang)
Closes: 794956
Changes:
 dh-golang (1.12) unstable; urgency=medium
 .
   [ Hilko Bengen ]
   * Make dh-golang work with older dpkg versions (Closes: #794956)
Checksums-Sha1:
 5b3b4caf8f28675b3bbedda4764aebcaf9c7de16 1559 dh-golang_1.12.dsc
 912651edb38ae84de9554d987ac3cb1f8d7fbfb4 6748 dh-golang_1.12.tar.xz
 4408fb0bff2654faab49e54e1e359c3e5df4c216 9402 dh-golang_1.12_all.deb
Checksums-Sha256:
 c36e7beb669a5ce2892a747cfcf5cd62bc223a3b5aeb0a2c32cd6d06bbe5192a 1559 
dh-golang_1.12.dsc
 c6c5806b7802f328eebbc1e517597c2f4e34d90a9364fe08a858660d16500559 6748 
dh-golang_1.12.tar.xz
 dbb9538a52a517cbd1540e0ca46c0a9007a1a042aab6b11fcfd1c802987e446f 9402 
dh-golang_1.12_all.deb
Files:
 4896d71fde94d239e31963dc409e6431 1559 devel extra dh-golang_1.12.dsc
 60b9177b3707a35422a7d24ed7d87450 6748 devel extra dh-golang_1.12.tar.xz
 3818cb6c089c8d8beac0442ead15537e 9402 devel extra dh-golang_1.12_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJVyOO2AAoJEE5xYO1KyO4dADcP/i06nEjBIuPsiHlkzl1RJe8o
EJBJLtVGtSZ5086FFKLmHuONhSAZxKmuTyqFu7R9FoaUy7+ziSpi3EodaIQXBlmZ
JSZkrbKQt1pT0n3fRrfCHFryw23anSo5I/r6D2EG7GGdpFxpxlbkAi/71nYA9aKh
I56awJ9+yCHrw4qPuxZHmhjhAjn+ryNzSZrplmCtnCFk0FFCrdnQi6PcMHeL7m/U
mGXR+qDhB1OI60wB+EX60Fh35R0EDxPPk4t8x7o1ksbBxHLOk8do7S/KH6i0PY4+
iHESQZ+z9/oU0ebXyy1WQhpATez/tuffDlTJeDZfGKkqBZxPaT0OplB+T/wPGBVe
QeKAocMHJoC42fGBhgPdvVeGGz1tWZkYOASzTxw7ub2uuGmPDw5nauJux8t/Rcdq
Fm7IrrMjapSPZJIKhZGrmuCUs9aX3eIfcNiRbGB79tuxc6+NX1DE5gXs22axZN2m
SnnxtljaR26HB3Ic3uI62dAjPuNVC8tr2xVxDd4l8StqTy1hk7O0a9WkscgrsKkL
uyCbMOmv6ltIXVTLpumgAPeYzOFx7P6hkaS2Tsr/7pDB2f0HudVXntMg/ATem4cQ
CuCBtb1WX9bCsIunMLb5IS2pnPAMNZRtiKy/kV2SL5LaezqFT84kwYRqF2z/dvyN
1B1468gyfkfGmxIcLQx1
=80TP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to