Hello community, here is the log from the commit of package ibsim for openSUSE:Factory checked in at 2016-03-26 15:24:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ibsim (Old) and /work/SRC/openSUSE:Factory/.ibsim.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ibsim" Changes: -------- --- /work/SRC/openSUSE:Factory/ibsim/ibsim.changes 2014-07-04 09:34:22.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ibsim.new/ibsim.changes 2016-03-26 15:24:04.000000000 +0100 @@ -1,0 +2,26 @@ +Thu Mar 10 14:21:46 CET 2016 - [email protected] + +- Update to latest git version 0.6-gitf9acb41 (bsc#970668): + * sim_cmd.c: PerformanceSet handling for enhanced switch port 0 + Setting the perf counters of the port 0 is only allowed when + the node is a switch with an enhanced port 0 + + * sim_mad.c: Fix incorrectly updated port counters in pc_updated() + When the IB packet gets out of the source port, + the Xmit fields of the source port are now updated. + + * sim_cmd.c: Invalidate PerformanceSet commands with no port number + Syntax: sim> PerformanceSet "nodeid"[port] [attribute].[field]=[value] + + * sim_cmd.c: Fix parsing of port number in PerformanceSet command + Syntax: sim> PerformanceSet "nodeid"[port] [attribute].[field]=[value] + + * ibsim: Allocate MFT according to number of switch ports + Calculate number of port masks according to number of switch ports + and allocate MFT accordingly + +- Include ChangeLog generated from git log. +- Add ibsim-fix_type_punning.patch to replace type-punning by + memcpy. + +------------------------------------------------------------------- Old: ---- ibsim-0.6.tar.gz New: ---- ibsim-0.6-gitf9acb41.tar.xz ibsim-fix_type_punning.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ibsim.spec ++++++ --- /var/tmp/diff_new_pack.CIQPjg/_old 2016-03-26 15:24:05.000000000 +0100 +++ /var/tmp/diff_new_pack.CIQPjg/_new 2016-03-26 15:24:05.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package ibsim # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -15,31 +15,35 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild -#%%define my_release +%define git_ver -gitf9acb41 Summary: InfiniBand fabric simulator for management +License: BSD-2-Clause or GPL-2.0 +Group: Productivity/Networking/Diagnostic Name: ibsim Version: 0.6 -Release: 1 -License: BSD-2-Clause or GPL-2.0 -Group: Productivity/Networking/Diagnostic +Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source: %{name}-%{version}.tar.gz +Source: %{name}-%{version}%{git_ver}.tar.xz +Patch1: ibsim-fix_type_punning.patch Url: http://www.openfabrics.org -BuildRequires: libibmad-devel libibumad-devel libibverbs-devel -BuildRequires: automake autoconf libtool +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libibmad-devel +BuildRequires: libibumad-devel +BuildRequires: libibverbs-devel +BuildRequires: libtool %description ibsim provides simulation of infiniband fabric for using with OFA OpenSM, diagnostic and management tools. - %prep %setup -q +%patch1 %build export CFLAGS="${CFLAGS:-%{optflags}}" @@ -56,6 +60,6 @@ %dir %{_libdir}/umad2sim %{_libdir}/umad2sim/libumad2sim*.so* %{_bindir}/ibsim -%doc README COPYING TODO net-examples scripts +%doc README COPYING TODO net-examples scripts ChangeLog %changelog ++++++ ibsim-fix_type_punning.patch ++++++ --- ibsim/ibsim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: ibsim/ibsim.c =================================================================== --- ibsim/ibsim.c.orig 2016-03-10 10:03:22.213892431 +0100 +++ ibsim/ibsim.c 2016-03-10 14:50:39.775392312 +0100 @@ -345,7 +345,9 @@ static void set_issm(Port *port, unsigne static int sim_ctl_set_issm(Client * cl, struct sim_ctl * ctl) { - int issm = *(int *)ctl->data; + int issm; + + memcpy (&issm, ctl->data, sizeof(int)); VERB("set issm %d port %" PRIx64, issm, cl->port->portguid); cl->issm = issm;
