Hello community, here is the log from the commit of package go-goprotobuf for openSUSE:Factory checked in at 2012-02-14 11:24:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go-goprotobuf (Old) and /work/SRC/openSUSE:Factory/.go-goprotobuf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go-goprotobuf", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/go-goprotobuf/go-goprotobuf.changes 2011-10-27 12:16:28.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.go-goprotobuf.new/go-goprotobuf.changes 2012-02-14 11:24:32.000000000 +0100 @@ -1,0 +2,20 @@ +Wed Feb 8 10:37:57 UTC 2012 - [email protected] + +- patch for encode/decode update runtime.MemStats use for weekly + +------------------------------------------------------------------- +Wed Jan 25 08:31:50 UTC 2012 - [email protected] + +- Update for weekly.2012-01-20 +- update to go 1 import strings +- Fix panic in SetDefaults for nil sub-messages +- Fix a couple of instances where bad input could cause a panic +- GetExtension now returns a specific error when the requested extension is + missing + +------------------------------------------------------------------- +Wed Dec 14 12:43:43 UTC 2011 - [email protected] + +- Adjust to Go weekly.2011-12-02 changes + +------------------------------------------------------------------- @@ -4 +24 @@ -- Update to 08/09/2011 mercurial verison: +- Update to 08/09/2011 mercurial version: Old: ---- goprotobuf-0.0.0+hg20110908.tar.bz2 goprotobuf-fix-imports.patch goprotobuf-fix-proto-testsuite.patch New: ---- goprotobuf-0.0.0+hg20120120.tar.bz2 runtime-memstats.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ go-goprotobuf.spec ++++++ --- /var/tmp/diff_new_pack.8L9dfP/_old 2012-02-14 11:24:33.000000000 +0100 +++ /var/tmp/diff_new_pack.8L9dfP/_new 2012-02-14 11:24:33.000000000 +0100 @@ -1,5 +1,8 @@ # -# Copyright (c), 2011, Sascha Peilicke <[email protected]> +# spec file for package go-goprotobuf +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 Sascha Peilicke <[email protected]> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -10,16 +13,20 @@ # 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/ +# + + + Name: go-goprotobuf -Version: 0.0.0+hg20110908 +Version: 0.0.0+hg20120120 Release: 0 Summary: Go support for Protocol Buffers - Google's data interchange format +License: BSD-3-Clause Group: Development/Languages/Other -License: BSD -URL: http://code.google.com/p/goprotobuf/ +Url: http://code.google.com/p/goprotobuf/ Source0: goprotobuf-%{version}.tar.bz2 -Patch0: goprotobuf-fix-imports.patch -Patch1: goprotobuf-fix-proto-testsuite.patch +Patch0: runtime-memstats.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: go-devel BuildRequires: protobuf-devel @@ -34,16 +41,17 @@ %prep %setup -q -n goprotobuf %patch0 -p1 -%patch1 -p1 %build + %install -%{go_make_install} -install -d %{buildroot}%{_bindir} -mv %{buildroot}%{go_sitearch}/protoc-gen-go %{buildroot}%{_bindir} + +%goinstall code.google.com/p/goprotobuf ... + +mv %{buildroot}%{_bindir}/compiler %{buildroot}%{_bindir}/protoc-gen-go #%%check -#%%{go_make_test} +#%%gotest code.google.com/p/goprotobuf/proto %files %defattr(-,root,root,-) ++++++ goprotobuf-0.0.0+hg20110908.tar.bz2 -> goprotobuf-0.0.0+hg20120120.tar.bz2 ++++++ ++++ 3669 lines of diff (skipped) ++++++ runtime-memstats.patch ++++++ diff --git a/proto/decode.go b/proto/decode.go index b2a27b9..f02e5f6 100644 --- a/proto/decode.go +++ b/proto/decode.go @@ -315,7 +315,9 @@ func (p *Buffer) Unmarshal(pb interface{}) error { return err } - mstat := runtime.MemStats.Mallocs + ms := new(runtime.MemStats) + runtime.ReadMemStats(ms) + mstat := ms.Mallocs typ, base, err := getbase(pb) if err != nil { @@ -324,7 +326,8 @@ func (p *Buffer) Unmarshal(pb interface{}) error { err = p.unmarshalType(typ, false, base) - mstat = runtime.MemStats.Mallocs - mstat + runtime.ReadMemStats(ms) + mstat = ms.Mallocs - mstat stats.Dmalloc += mstat stats.Decode++ diff --git a/proto/encode.go b/proto/encode.go index 0b49e79..7b8f4a8 100644 --- a/proto/encode.go +++ b/proto/encode.go @@ -199,14 +199,17 @@ func (p *Buffer) Marshal(pb interface{}) error { return nil } - mstat := runtime.MemStats.Mallocs + ms := new(runtime.MemStats) + runtime.ReadMemStats(ms) + mstat := ms.Mallocs t, b, err := getbase(pb) if err == nil { err = p.enc_struct(t.Elem(), b) } - mstat = runtime.MemStats.Mallocs - mstat + runtime.ReadMemStats(ms) + mstat = ms.Mallocs - mstat stats.Emalloc += mstat stats.Encode++ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
