[Pkg-golang-commits] [golang-defaults] 01/01: simplify golang-any package some more
Michael Hudson-Doyle
mwhudson-guest at moszumanska.debian.org
Mon Nov 21 03:45:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
mwhudson-guest pushed a commit to branch mwhudson/add-gccgo-go
in repository golang-defaults.
commit dfaf5471ac5bd113dcc4f15e1631a4eba0cc450e
Author: Michael Hudson-Doyle <michael.hudson at canonical.com>
Date: Mon Nov 21 16:44:54 2016 +1300
simplify golang-any package some more
---
debian/helpers/getgoarches.pl | 14 --------------
debian/rules | 12 ------------
2 files changed, 26 deletions(-)
diff --git a/debian/helpers/getgoarches.pl b/debian/helpers/getgoarches.pl
deleted file mode 100755
index 4718a0f..0000000
--- a/debian/helpers/getgoarches.pl
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/perl
-
-# Extract list of golang architectures by looking at control file.
-
-package main;
-
-use warnings;
-use strict;
-
-use Dpkg::Control::Info;
-
-my $control = Dpkg::Control::Info->new();
-my $p = $control->get_pkg_by_name('golang-go');
-printf("%s\n", $p->{Architecture});
diff --git a/debian/rules b/debian/rules
index f534ecc..53e0bc5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,21 +2,9 @@
# -*- makefile -*-
export GOVER := $(shell debian/helpers/getver.pl)
-golang_arches := $(shell debian/helpers/getgoarches.pl)
-
-IS_GOLANG_ARCH := true
-ifeq (,$(filter $(DEB_HOST_ARCH),$(golang_arches)))
- IS_GOLANG_ARCH := false
-endif
%:
dh $@
-override_dh_prep:
- dh_prep
-ifeq (false, $(IS_GOLANG_ARCH))
- cp debian/golang-any.links.gccgo debian/golang-any.links
-endif
-
override_dh_gencontrol:
dh_gencontrol -- -Vgolang:GOVER=$(GOVER)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-golang/golang-defaults.git
More information about the pkg-golang-commits
mailing list