[etcd] Add missing debug info to binaries (patch from Jan Kratochvil) - resolves: #1184257
Jan Chaloupka
jchaloup at fedoraproject.org
Mon Feb 9 09:13:23 UTC 2015
commit 8779d2a5689a74192c933c42897364646b863eb6
Author: Jan Chaloupka <jchaloup at redhat.com>
Date: Mon Feb 9 10:12:35 2015 +0100
Add missing debug info to binaries (patch from Jan Kratochvil)
- resolves: #1184257
etcd.spec | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/etcd.spec b/etcd.spec
index ae2ef6f..e8858f8 100644
--- a/etcd.spec
+++ b/etcd.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
@@ -8,13 +9,14 @@
Name: %{repo}
Version: 2.0.0
-Release: 0.4%{?dist}
+Release: 0.5%{?dist}
Summary: A highly-available key value store for shared configuration
License: ASL 2.0
URL: https://%{import_path}
Source0: https://%{import_path}/archive/v%{version}.tar.gz
Source1: %{name}.service
Source2: %{name}.conf
+ExclusiveArch: %{ix86} x86_64 %{arm}
BuildRequires: golang >= 1.3.3
BuildRequires: golang(code.google.com/p/gogoprotobuf)
BuildRequires: golang(github.com/codegangsta/cli)
@@ -94,9 +96,11 @@ mkdir -p src/github.com/coreos
ln -s ../../../ src/github.com/coreos/etcd
export GOPATH=$(pwd):%{gopath}:$GOPATH
-go build -v -x -o bin/etcd %{import_path}
-go build -a -ldflags '-s' -o bin/etcdctl %{import_path}/etcdctl
-go build -v -x -o bin/etcd-migrate %{import_path}/tools/%{name}-migrate
+# *** ERROR: No build ID note found in /.../BUILDROOT/etcd-2.0.0-1.rc1.fc22.x86_64/usr/bin/etcd
+function gobuild { go build -a -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n')" -v -x "$@"; }
+gobuild -o bin/etcd %{import_path}
+gobuild -o bin/etcdctl %{import_path}/etcdctl
+gobuild -o bin/etcd-migrate %{import_path}/tools/%{name}-migrate
%install
@@ -174,6 +178,10 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/
%{gopath}/src/%{import_path}
%changelog
+* Mon Feb 09 2015 jchaloup <jchaloup at redhat.com> - 2.0.0-0.5
+- Add missing debug info to binaries (patch from Jan Kratochvil)
+ resolves: #1184257
+
* Fri Jan 30 2015 jchaloup <jchaloup at redhat.com> - 2.0.0-0.4
- Update to etcd-2.0.0
- use gopath as the last directory to search for source code
More information about the scm-commits
mailing list