jchaloup pushed to fleet (master). "Add debug info (..more)"

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


>From 498d607d98710d2bc5814d3cb830db6b400366b6 Mon Sep 17 00:00:00 2001
From: Jan Chaloupka <jchaloup at redhat.com>
Date: Mon, 30 Mar 2015 14:14:02 +0200
Subject: Add debug info - related: #1175471


diff --git a/fleet.spec b/fleet.spec
index c936c59..9e2d419 100644
--- a/fleet.spec
+++ b/fleet.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:		fleet
 Version:	0.9.0
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	A distributed init system
 
 License:	ASL 2.0
@@ -120,8 +121,9 @@ mkdir -p src/github.com/coreos
 ln -s ../../../ src/github.com/coreos/fleet
 
 %build
-GOPATH="${PWD}:%{gopath}" go build -v -x -o bin/fleetd github.com/coreos/fleet/fleetd
-GOPATH="${PWD}:%{gopath}" go build -v -x -o bin/fleetctl -a -ldflags '-s' github.com/coreos/fleet/fleetctl
+function gobuild { go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -v -x "$@"; }
+GOPATH="${PWD}:%{gopath}" gobuild -o bin/fleetd github.com/coreos/fleet/fleetd
+GOPATH="${PWD}:%{gopath}" gobuild -o bin/fleetctl github.com/coreos/fleet/fleetctl
 
 %install
 install -D -p -m 0755 bin/%{name}ctl %{buildroot}%{_bindir}/%{name}ctl
@@ -178,6 +180,10 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d /run/%{name} \
 %{gopath}/src/%{import_path}/
 
 %changelog
+* Mon Mar 30 2015 jchaloup <jchaloup at redhat.com> - 0.9.0-5
+- Add debug info
+  related: #1175471
+
 * Wed Jan 21 2015 jchaloup <jchaloup at redhat.com> - 0.9.0-4
 - Add devel subpackage, add some global variables
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/fleet.git/commit/?h=master&id=498d607d98710d2bc5814d3cb830db6b400366b6


More information about the scm-commits mailing list