Hello community,

here is the log from the commit of package etcd-for-k8s-image for 
openSUSE:Factory checked in at 2019-09-11 10:23:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/etcd-for-k8s-image (Old)
 and      /work/SRC/openSUSE:Factory/.etcd-for-k8s-image.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "etcd-for-k8s-image"

Wed Sep 11 10:23:07 2019 rev:2 rq:728700 version:3.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/etcd-for-k8s-image/etcd-for-k8s-image.changes    
2019-07-23 22:38:02.714963113 +0200
+++ 
/work/SRC/openSUSE:Factory/.etcd-for-k8s-image.new.7948/etcd-for-k8s-image.changes
  2019-09-11 10:23:08.587490291 +0200
@@ -1,0 +2,5 @@
+Fri Sep  6 08:46:07 CEST 2019 - [email protected]
+
+- Add wrapper for etcd [bsc#1149392]
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ etcd-for-k8s-image.spec ++++++
--- /var/tmp/diff_new_pack.ytYAyZ/_old  2019-09-11 10:23:09.155490220 +0200
+++ /var/tmp/diff_new_pack.ytYAyZ/_new  2019-09-11 10:23:09.159490220 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package etcd-for-k8s-image
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,9 +12,10 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 Name:           etcd-for-k8s-image
 Version:        3.3.10
 Release:        0
@@ -24,8 +25,8 @@
 Url:            https://github.com/coreos/etcd
 Source:         etcd-%{version}.tar.xz
 Source1:        etcd-3.2.24.tar.xz
-BuildRequires:  golang-packaging
 BuildRequires: go
+BuildRequires:  golang-packaging
 ExcludeArch:    %ix86
 ExcludeArch:    s390
 Conflicts:      etcd
@@ -54,13 +55,20 @@
 #mkdir bin
 #mv ../go/bin/etcd* bin
 
-
 %install
 mkdir -p %{buildroot}%{_bindir}
 mkdir -p %{buildroot}%{_sbindir}
 install -m 0755 bin/etcd %{buildroot}%{_sbindir}/etcd-%{version}
 install -m 0755 bin/etcdctl %{buildroot}%{_bindir}/etcdctl-%{version}
-ln -sf etcd-%{version} %{buildroot}%{_sbindir}/etcd
+#ln -sf etcd-%{version} %{buildroot}%{_sbindir}/etcd
+# we need a wrapper script to be able to set some environment
+# variables.
+echo "#!/bin/bash" > %{buildroot}%{_sbindir}/etcd
+%ifarch aarch64
+echo "export ETCD_UNSUPPORTED_ARCH=arm64" >> %{buildroot}%{_sbindir}/etcd
+%endif
+echo "exec %{_sbindir}/etcd-%{version} \"\$@\"" >> %{buildroot}%{_sbindir}/etcd
+chmod 755 %{buildroot}%{_sbindir}/etcd
 ln -sf etcdctl-%{version} %{buildroot}%{_bindir}/etcdctl
 
 #cd ../etcd-3.2.24


Reply via email to