jchaloup pushed to flannel (f22). "Add debug info (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Mar 30 12:12:46 UTC 2015


>From f910e7b0d3153b60eecb900fb3ec9d3b11fdb43e 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 f8ca6ac..7dd179a 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:        6%{?dist}
+Release:        7%{?dist}
 Summary:        Etcd address management agent for overlay networks
 License:        ASL 2.0 
 URL:            https://%{import_path}
@@ -87,7 +88,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
@@ -125,6 +127,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-6
 - Update [Build]Requires for go-etcd package
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/flannel.git/commit/?h=f22&id=f910e7b0d3153b60eecb900fb3ec9d3b11fdb43e


More information about the scm-commits mailing list