- Update to version 1.0.3:

- Improved documentation
  - List of fixed issues:
    https://groups.google.com/forum/#!topic/golang-nuts/co3SvXbGrNk
  - More details can be found on this full list of changes:
    http://code.google.com/p/go/source/list?name=release-branch.go1
- Removed:
  - opensuse-vim.patch, merged upstream
  - Fix for bnc#686557, offending pdf was removed upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=159
This commit is contained in:
Sascha Peilicke 2012-10-01 09:38:36 +00:00 committed by Git OBS Bridge
parent 40c330580f
commit 5a446f56f2
5 changed files with 18 additions and 75 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Mon Oct 1 09:16:43 UTC 2012 - saschpe@suse.de
- Update to version 1.0.3:
- Improved documentation
- List of fixed issues:
https://groups.google.com/forum/#!topic/golang-nuts/co3SvXbGrNk
- More details can be found on this full list of changes:
http://code.google.com/p/go/source/list?name=release-branch.go1
- Removed:
- opensuse-vim.patch, merged upstream
- Fix for bnc#686557, offending pdf was removed upstream
-------------------------------------------------------------------
Wed Sep 5 03:46:15 UTC 2012 - graham@andtech.eu

View File

@ -18,7 +18,7 @@
Name: go
Version: 1.0.2
Version: 1.0.3
Release: 0
Summary: A compiled, garbage-collected, concurrent programming language
License: BSD-3-Clause
@ -39,10 +39,8 @@ Patch3: go-build-dont-reinstall-stdlibs.patch
# see http://code.google.com/p/go/issues/detail?id=2775 & also issue 3268
Patch4: allow-binary-only-packages.patch
Patch5: verbose-build.patch
# PATCH-FIX-OPENSUSE fix vim Godoc and Import helpers/autocomplete
Patch6: opensuse-vim.patch
# PATCH-FIX-OPENSUSE BNC#776058
Patch7: go-install-dont-reinstall-stdlibs.patch
Patch6: go-install-dont-reinstall-stdlibs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1210
BuildRequires: systemd
@ -111,7 +109,6 @@ Kate syntax highlighting scheme for the Go programming language.
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
cp %{SOURCE4} .
cp %{SOURCE5} .
@ -191,8 +188,6 @@ rm -f misc/dashboard/builder/{gobuilder,*6,*.8}
rm -f misc/goplay/{goplay,*.6,*.8}
rm -rf misc/windows
rm -rf misc/cgo/test/{_*,*.o,*.out,*.6,*.8}
# fix bnc#686557, contains image licensed under non-commercial license
rm doc/talks/go_talk-20091030.pdf
# install RPM macros ($GOARCH prepared in %%prep section)
install -Dm644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rpm/macros.go

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70fcfb455087c14cc59b7a65c78003fcd1323d73f9b991c1e52db535d6bc95a8
size 9676404

3
go1.0.3.src.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fba3533d172f13629d3d8a79e57c620632b0bd075abe11d7698b338be0ae3df
size 7404849

View File

@ -1,65 +0,0 @@
diff --git a/misc/vim/autoload/go/complete.vim b/misc/vim/autoload/go/complete.vim
index d4ae3b9..ae554bc 100644
--- a/misc/vim/autoload/go/complete.vim
+++ b/misc/vim/autoload/go/complete.vim
@@ -29,21 +29,35 @@ if len(s:goarch) == 0
endif
function! go#complete#Package(ArgLead, CmdLine, CursorPos)
+ let dirs = []
+
+ let workspaces = split( $GOPATH, ':' )
+ if workspaces != []
+ let dirs += workspaces
+ endif
+
let goroot = $GOROOT
- if len(goroot) == 0
- " should not occur.
- return []
+ if len(goroot) != 0
+ let dirs += [ goroot ]
endif
+
+ if len( dirs ) == 0
+ " should not happen
+ return []
+ endif
+
let ret = {}
- let root = expand(goroot.'/pkg/'.s:goos.'_'.s:goarch)
- for i in split(globpath(root, a:ArgLead.'*'), "\n")
- if isdirectory(i)
- let i .= '/'
- elseif i !~ '\.a$'
- continue
- endif
- let i = substitute(substitute(i[len(root)+1:], '[\\]', '/', 'g'), '\.a$', '', 'g')
- let ret[i] = i
+ for dir in dirs
+ let root = expand(dir.'/pkg/'.s:goos.'_'.s:goarch)
+ for i in split(globpath(root, a:ArgLead.'*'), "\n")
+ if isdirectory(i)
+ let i .= '/'
+ elseif i !~ '\.a$'
+ continue
+ endif
+ let i = substitute(substitute(i[len(root)+1:], '[\\]', '/', 'g'), '\.a$', '', 'g')
+ let ret[i] = i
+ endfor
endfor
return sort(keys(ret))
endfunction
diff --git a/misc/vim/plugin/godoc.vim b/misc/vim/plugin/godoc.vim
index fdb4966..a43d99d 100644
--- a/misc/vim/plugin/godoc.vim
+++ b/misc/vim/plugin/godoc.vim
@@ -72,7 +72,7 @@ function! s:Godoc(...)
if !len(word)
let word = expand('<cword>')
endif
- let word = substitute(word, '[^a-zA-Z0-9\/]', '', 'g')
+ let word = substitute(word, '[^a-zA-Z0-9\/.-]', '', 'g')
if !len(word)
return
endif