jchaloup pushed to flannel (f21). "Add debug info (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Mar 30 12:12:52 UTC 2015
>From 401e0fc61e4e738f8ebcde54049ef6239d171ffe Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup at redhat.com>
Date: Mon, 30 Mar 2015 13:01:08 +0200
Subject: Add debug info - related: #1165688
diff --git a/flannel.spec b/flannel.spec
index 4d38781..1b47774 100644
--- a/flannel.spec
+++ b/flannel.spec
@@ -1,4 +1,5 @@
-%global debug_package %{nil}
+# https://bugzilla.redhat.com/show_bug.cgi?id=995136#c12
+%global _dwz_low_mem_die_limit 0
%global provider github
%global provider_tld com
%global project coreos
@@ -9,7 +10,7 @@
Name: flannel
Version: 0.2.0
-Release: 3%{?dist}
+Release: 7%{?dist}
Summary: Etcd address management agent for overlay networks
License: ASL 2.0
URL: https://%{import_path}
@@ -85,7 +86,8 @@ pushd _build
popd
mkdir bin
-GOPATH=${PWD}/_build:%{gopath} go build -o bin/flanneld .
+function gobuild { go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -v -x "$@"; }
+GOPATH=${PWD}/_build:%{gopath} gobuild -o bin/flanneld .
%install
# package with binary
@@ -119,6 +121,10 @@ cp -pav {backend,pkg,subnet} %{buildroot}/%{gopath}/src/%{import_path}/
%{gopath}/src/%{import_path}/
%changelog
+* Mon Mar 30 2015 jchaloup <jchaloup at redhat.com> - 0.2.0-7
+- Add debug info
+ related: #1165688
+
* Fri Feb 20 2015 jchaloup <jchaloup at redhat.com> - 0.2.0-3
- Update [Build]Requires for go-etcd package and go-systemd
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/flannel.git/commit/?h=f21&id=401e0fc61e4e738f8ebcde54049ef6239d171ffe
More information about the scm-commits
mailing list