[arch-commits] Commit in go/repos (6 files)
Date: Monday, August 28, 2017 @ 10:34:40 Author: bpiotrowski Revision: 304276 archrelease: copy trunk to testing-i686, testing-x86_64 Added: go/repos/testing-i686/ go/repos/testing-i686/PKGBUILD (from rev 304275, go/trunk/PKGBUILD) go/repos/testing-i686/default-buildmode-pie.patch (from rev 304275, go/trunk/default-buildmode-pie.patch) go/repos/testing-x86_64/ go/repos/testing-x86_64/PKGBUILD (from rev 304275, go/trunk/PKGBUILD) go/repos/testing-x86_64/default-buildmode-pie.patch (from rev 304275, go/trunk/default-buildmode-pie.patch) + testing-i686/PKGBUILD | 98 +++ testing-i686/default-buildmode-pie.patch | 14 +++ testing-x86_64/PKGBUILD| 98 +++ testing-x86_64/default-buildmode-pie.patch | 14 +++ 4 files changed, 224 insertions(+) Copied: go/repos/testing-i686/PKGBUILD (from rev 304275, go/trunk/PKGBUILD) === --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2017-08-28 10:34:40 UTC (rev 304276) @@ -0,0 +1,98 @@ +# $Id$ +# Maintainer: Bartłomiej Piotrowski+ +pkgbase=go +pkgname=(go go-pie) +epoch=2 +pkgver=1.9 +pkgrel=1 +arch=(i686 x86_64) +url='http://golang.org/' +license=(BSD) +makedepends=(git go) +options=(!strip staticlibs) +_commit=c8aec4095e089ff6ac50d18e97c3f46561f14f48 +source=(git+https://go.googlesource.com/go#commit=$_commit +default-buildmode-pie.patch) +md5sums=('SKIP' + '4feaf3d9028fff473d5a365389ced4c9') + +export GOOS=linux +case "$CARCH" in + x86_64) export GOARCH=amd64 ;; + i686) export GOARCH=386 GO386=387 ;; +esac +export GOROOT_FINAL=/usr/lib/go +export GOROOT_BOOTSTRAP=/usr/lib/go + +prepare() { + cp -r $pkgbase ${pkgbase}-pie + + cd ${pkgbase}-pie + patch -p1 -i "$srcdir"/default-buildmode-pie.patch +} + +build() { + export GOBIN="$GOROOT/bin" + export GOPATH="$srcdir/" + + for _pkgname in ${pkgname[@]}; do +export GOROOT="$srcdir/$_pkgname" +cd "$srcdir/$_pkgname/src" +./make.bash --no-clean + done +} + +check() { + # Run test suite only for unpatched Go as it expects non-PIE ldBuildmode + export GOROOT="$srcdir/$pkgbase" + export GOBIN="$GOROOT/bin" + export PATH="$srcdir/$pkgbase/bin:$PATH" + export GO_TEST_TIMEOUT_SCALE=2 + + cd $pkgbase/src + ./run.bash --no-rebuild -v -v -v -k + + # ./run.bash --no-rebuild -v -v -v -k |& tee run.log + # if (( $(grep -c Failed: run.log) > 5 )) && grep -q FAILED run.log; then + # return 1 + # fi + + # go tool dist test -v -v -v -run=^cgo_test$ + # go tool dist test -v -v -v -run=^race$ +} + +_package() { + cd "$srcdir/$1" + + install -d "$pkgdir/usr/bin" "$pkgdir/usr/lib/go" "$pkgdir/usr/share/doc/go" + cp -a bin pkg src lib misc "$pkgdir/usr/lib/go" + cp -r doc/* "$pkgdir/usr/share/doc/go" + + ln -sf /usr/lib/go/bin/go "$pkgdir/usr/bin/go" + ln -sf /usr/lib/go/bin/gofmt "$pkgdir/usr/bin/gofmt" + ln -sf /usr/share/doc/go "$pkgdir/usr/lib/go/doc" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/go/LICENSE" + install -Dm644 VERSION "$pkgdir/usr/lib/go/VERSION" + + rm -rf "$pkgdir/usr/lib/go/pkg/bootstrap" + rm -rf "$pkgdir/usr/lib/go/pkg/tool/*/api" +} + +package_go() { + pkgdesc='Core compiler tools for the Go programming language' + provides=(go-pie) + conflicts=(go-pie) + + _package $pkgname +} + + +package_go-pie() { + pkgdesc='Core compiler tools for the Go programming language (with PIE enabled by default)' + provides=(go) + conflicts=(go) + + _package $pkgname +} Copied: go/repos/testing-i686/default-buildmode-pie.patch (from rev 304275, go/trunk/default-buildmode-pie.patch) === --- testing-i686/default-buildmode-pie.patch(rev 0) +++ testing-i686/default-buildmode-pie.patch2017-08-28 10:34:40 UTC (rev 304276) @@ -0,0 +1,14 @@ +diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go +index 9a1204866e..8b41832ae2 100644 +--- a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go +@@ -304,7 +304,8 @@ func BuildModeInit() { + ldBuildmode = "c-shared" + case "default": + switch platform { +- case "android/arm", "android/arm64", "android/amd64", "android/386": ++ case "linux/amd64", "linux/arm", "linux/arm64", "linux/386", "linux/ppc64le", ++ "android/arm", "android/arm64", "android/amd64", "android/386": + codegenArg = "-shared" + ldBuildmode = "pie" + case "darwin/arm", "darwin/arm64": Copied: go/repos/testing-x86_64/PKGBUILD (from rev 304275, go/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD
[arch-commits] Commit in go/repos (6 files)
Date: Wednesday, March 15, 2017 @ 13:33:23 Author: bpiotrowski Revision: 290874 archrelease: copy trunk to testing-i686, testing-x86_64 Added: go/repos/testing-i686/ go/repos/testing-i686/0001-time-make-the-ParseInLocation-test-more-robust.patch (from rev 290873, go/trunk/0001-time-make-the-ParseInLocation-test-more-robust.patch) go/repos/testing-i686/PKGBUILD (from rev 290873, go/trunk/PKGBUILD) go/repos/testing-x86_64/ go/repos/testing-x86_64/0001-time-make-the-ParseInLocation-test-more-robust.patch (from rev 290873, go/trunk/0001-time-make-the-ParseInLocation-test-more-robust.patch) go/repos/testing-x86_64/PKGBUILD (from rev 290873, go/trunk/PKGBUILD) --+ testing-i686/0001-time-make-the-ParseInLocation-test-more-robust.patch | 93 ++ testing-i686/PKGBUILD| 77 testing-x86_64/0001-time-make-the-ParseInLocation-test-more-robust.patch | 93 ++ testing-x86_64/PKGBUILD | 77 4 files changed, 340 insertions(+) Copied: go/repos/testing-i686/0001-time-make-the-ParseInLocation-test-more-robust.patch (from rev 290873, go/trunk/0001-time-make-the-ParseInLocation-test-more-robust.patch) === --- testing-i686/0001-time-make-the-ParseInLocation-test-more-robust.patch (rev 0) +++ testing-i686/0001-time-make-the-ParseInLocation-test-more-robust.patch 2017-03-15 13:33:23 UTC (rev 290874) @@ -0,0 +1,93 @@ +From 91563ced5897faf729a34be7081568efcfedda31 Mon Sep 17 00:00:00 2001 +From: Alberto Donizetti+Date: Thu, 9 Mar 2017 13:20:54 +0100 +Subject: [PATCH] time: make the ParseInLocation test more robust + +The tzdata 2017a update (2017-02-28) changed the abbreviation of the +Asia/Baghdad time zone (used in TestParseInLocation) from 'AST' to the +numeric '+03'. + +Update the test so that it skips the checks if we're using a recent +tzdata release. + +Fixes #19457 + +Change-Id: I45d705a5520743a611bdd194dc8f8d618679980c +Reviewed-on: https://go-review.googlesource.com/37964 +Reviewed-by: Ian Lance Taylor +Run-TryBot: Ian Lance Taylor +TryBot-Result: Gobot Gobot +--- + src/time/format_test.go | 41 +++-- + 1 file changed, 31 insertions(+), 10 deletions(-) + +diff --git a/src/time/format_test.go b/src/time/format_test.go +index 219c2ca..d0013bc 100644 +--- a/src/time/format_test.go b/src/time/format_test.go +@@ -245,27 +245,45 @@ func TestParseDayOutOfRange(t *testing.T) { + } + } + ++// TestParseInLocation checks that the Parse and ParseInLocation ++// functions do not get confused by the fact that AST (Arabia Standard ++// Time) and AST (Atlantic Standard Time) are different time zones, ++// even though they have the same abbreviation. ++// ++// ICANN has been slowly phasing out invented abbreviation in favor of ++// numeric time zones (for example, the Asia/Baghdad time zone ++// abbreviation got changed from AST to +03 in the 2017a tzdata ++// release); but we still want to make sure that the time package does ++// not get confused on systems with slightly older tzdata packages. + func TestParseInLocation(t *testing.T) { +- // Check that Parse (and ParseInLocation) understand that +- // Feb 01 AST (Arabia Standard Time) and Feb 01 AST (Atlantic Standard Time) +- // are in different time zones even though both are called AST + + baghdad, err := LoadLocation("Asia/Baghdad") + if err != nil { + t.Fatal(err) + } + +- t1, err := ParseInLocation("Jan 02 2006 MST", "Feb 01 2013 AST", baghdad) ++ var t1, t2 Time ++ ++ t1, err = ParseInLocation("Jan 02 2006 MST", "Feb 01 2013 AST", baghdad) + if err != nil { + t.Fatal(err) + } +- t2 := Date(2013, February, 1, 00, 00, 00, 0, baghdad) +- if t1 != t2 { +- t.Fatalf("ParseInLocation(Feb 01 2013 AST, Baghdad) = %v, want %v", t1, t2) +- } ++ + _, offset := t1.Zone() +- if offset != 3*60*60 { +- t.Fatalf("ParseInLocation(Feb 01 2013 AST, Baghdad).Zone = _, %d, want _, %d", offset, 3*60*60) ++ ++ // A zero offset means that ParseInLocation did not recognize the ++ // 'AST' abbreviation as matching the current location (Baghdad, ++ // where we'd expect a +03 hrs offset); likely because we're using ++ // a recent tzdata release (2017a or newer). ++ // If it happens, skip the Baghdad test. ++ if offset != 0 { ++ t2 = Date(2013, February, 1, 00, 00, 00, 0, baghdad) ++ if t1 != t2 { ++ t.Fatalf("ParseInLocation(Feb 01 2013 AST, Baghdad) = %v, want %v", t1, t2) ++ } ++
[arch-commits] Commit in go/repos (6 files)
Date: Thursday, February 16, 2017 @ 23:49:35 Author: arodseth Revision: 212671 archrelease: copy trunk to community-x86_64, community-i686 Added: go/repos/community-i686/PKGBUILD (from rev 212670, go/trunk/PKGBUILD) go/repos/community-x86_64/PKGBUILD (from rev 212670, go/trunk/PKGBUILD) Deleted: go/repos/community-i686/PKGBUILD go/repos/community-i686/go.install go/repos/community-x86_64/PKGBUILD go/repos/community-x86_64/go.install -+ /PKGBUILD | 372 ++ community-i686/PKGBUILD | 187 - community-i686/go.install |6 community-x86_64/PKGBUILD | 187 - community-x86_64/go.install |6 5 files changed, 372 insertions(+), 386 deletions(-) Deleted: community-i686/PKGBUILD === --- community-i686/PKGBUILD 2017-02-16 23:48:04 UTC (rev 212670) +++ community-i686/PKGBUILD 2017-02-16 23:49:35 UTC (rev 212671) @@ -1,187 +0,0 @@ -# $Id$ -# Maintainer: Alexander F Rødseth-# Maintainer: Pierre Neidhardt -# Contributor: Vesa Kaihlavirta -# Contributor: Rémy Oudompheng -# Contributor: Andres Perera -# Contributor: Matthew Bauer -# Contributor: Christian Himpel -# Contributor: Mike Rosset -# Contributor: Daniel YC Lin -# Contributor: John Luebs - -pkgname=('go' 'go-tools') -pkgver=1.7.5 -pkgrel=1 -epoch=2 -arch=('x86_64' 'i686') -url='http://golang.org/' -license=('BSD') -makedepends=('inetutils' 'git' 'go') -options=('!strip' 'staticlibs') -source=("$pkgname-$pkgver::git+https://go.googlesource.com/go#tag=$pkgname$pkgver;) -md5sums=('SKIP') -_gourl=golang.org/x/tools/cmd - -build() { - cd "$pkgname-$pkgver/src" - - export GOROOT="$srcdir/$pkgname-$pkgver" - export GOBIN="$GOROOT/bin" - export GOPATH="$srcdir/" - export GOROOT_FINAL=/usr/lib/go - export GOROOT_BOOTSTRAP=/usr/lib/go - - # - # Arch Linux normally does not enable SSE2 for i686 because of older CPUs. - # - # However, exceptions are made for: - # * Chromium, which is not expected to be used on older i686 CPUs - # * Julia, which requires SSE2 - # - # Go is so slow that it is unusable on i686 when SSE2 is not enabled, - # so I am also making an exception for Go. - # - # If you really want to build Go without SSE2 support, just uncomment the - # following export and rebuild: - # - # export GO386=387 - # - - # Crosscompilation for various platforms. This is not strictly required as the - # compiler can generate libraries on the fly. Prebuilding the libs speeds up - # crosscompilation time. - # - # for os in darwin freebsd linux windows; do - # for arch in 386 amd64 arm; do - # export GOOS="$os" - # export GOARCH="$arch" - # bash make.bash --no-clean - # done - # done - - export GOOS=linux - case "$CARCH" in - x86_64) export GOARCH=amd64 ;; - i686) export GOARCH=386 ;; - esac - - bash make.bash --no-clean - - # System-wide tools - for tool in godex godoc goimports gomvpkg gorename gotype; do -$GOROOT/bin/go get -d golang.org/x/tools/cmd/$tool -$GOROOT/bin/go build -v -x -o $GOPATH/bin/$tool $_gourl/$tool - done - - # Distribution tools - for tool in benchcmp bundle callgraph digraph eg fiximports guru html2article present ssadump stress stringer ; do -$GOROOT/bin/go get -d golang.org/x/tools/cmd/$tool -$GOROOT/bin/go build -v -x -o $GOPATH/pkg/tool/${GOOS}_$GOARCH/$tool golang.org/x/tools/cmd/$tool - done -} - -check() { - cd "$pkgname-$pkgver" - - #export GO386=387 - - export GOOS=linux - case "$CARCH" in -x86_64) GOARCH=amd64 ;; -i686) GOARCH=386 ;; - esac - - export GOROOT="$srcdir/$pkgname-$pkgver" - export GOBIN="$GOROOT/bin" - export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH" - export GOROOT_BOOTSTRAP=/usr/lib/go - - for tool in goimports gomvpkg gorename gotype \ -benchcmp bundle callgraph digraph eg fiximports guru html2article present ssadump stress stringer; do -GOPATH="$srcdir" $GOROOT/bin/go test -v -x $_gourl/$tool - done - - # TestSimpleMulticastListener will fail in standard chroot - cd src && bash run.bash --no-rebuild || true -} - -package_go() { - pkgdesc='Compiler and tools for the Go programming language from Google' - optdepends=('mercurial: for fetching sources from mercurial repositories' - 'git: for fetching sources from git repositories' - 'bzr: for fetching sources from bazaar repositories' - 'subversion: for fetching sources from subversion repositories' - 'go-tools: doc, goimports, gorename, and other tools.') - install="$pkgname.install" - - cd "$pkgname-$pkgver" - - export GOROOT="$srcdir/$pkgname-$pkgver" - export GOBIN="$GOROOT/bin" -
[arch-commits] Commit in go/repos (6 files)
Date: Tuesday, February 2, 2016 @ 11:51:17 Author: ambrevar Revision: 159908 archrelease: copy trunk to community-testing-x86_64, community-testing-i686 Added: go/repos/community-testing-i686/ go/repos/community-testing-i686/PKGBUILD (from rev 159907, go/trunk/PKGBUILD) go/repos/community-testing-i686/go.install (from rev 159907, go/trunk/go.install) go/repos/community-testing-x86_64/ go/repos/community-testing-x86_64/PKGBUILD (from rev 159907, go/trunk/PKGBUILD) go/repos/community-testing-x86_64/go.install (from rev 159907, go/trunk/go.install) -+ community-testing-i686/PKGBUILD | 186 ++ community-testing-i686/go.install | 21 +++ community-testing-x86_64/PKGBUILD | 186 ++ community-testing-x86_64/go.install | 21 +++ 4 files changed, 414 insertions(+) Copied: go/repos/community-testing-i686/PKGBUILD (from rev 159907, go/trunk/PKGBUILD) === --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2016-02-02 10:51:17 UTC (rev 159908) @@ -0,0 +1,186 @@ +# $Id$ +# Maintainer: Vesa Kaihlavirta+# Maintainer: Alexander Rødseth +# Maintainer: Pierre Neidhardt +# Contributor: Rémy Oudompheng +# Contributor: Andres Perera +# Contributor: Matthew Bauer +# Contributor: Christian Himpel +# Contributor: Mike Rosset +# Contributor: Daniel YC Lin +# Contributor: John Luebs + +pkgname=('go' 'go-tools') +epoch=2 +pkgver=1.5.3 +pkgrel=2 +arch=('x86_64' 'i686') +url='http://golang.org/' +license=('BSD') +makedepends=('inetutils' 'git' 'go') +options=('!strip' 'staticlibs') +install="$pkgname.install" +source=("$pkgname-$pkgver::git+https://go.googlesource.com/go#tag=$pkgname$pkgver;) +md5sums=('SKIP') +_gourl=golang.org/x/tools/cmd + +build() { + cd "$pkgname-$pkgver/src" + + export GOROOT="$srcdir/$pkgname-$pkgver" + export GOBIN="$GOROOT/bin" + export GOPATH="$srcdir/" + export GOROOT_FINAL=/usr/lib/go + export GOROOT_BOOTSTRAP=/usr/lib/go + + # + # Arch Linux normally does not enable SSE2 for i686 because of older CPUs. + # + # However, exceptions are made for: + # * Chromium, which is not expected to be used on older i686 CPUs + # * Julia, which requires SSE2 + # + # Go is so slow that it is unusable on i686 when SSE2 is not enabled, + # so I am also making an exception for Go. + # + # If you really want to build Go without SSE2 support, just uncomment the + # following export and rebuild: + # + # export GO386=387 + # + + # Crosscompilation for various platforms. This is not strictly required as the + # compiler can generate libraries on the fly. Prebuilding the libs speeds up + # crosscompilation time. + # + # for os in darwin freebsd linux windows; do + # for arch in 386 amd64 arm; do + # export GOOS="$os" + # export GOARCH="$arch" + # bash make.bash --no-clean + # done + # done + + export GOOS=linux + case "$CARCH" in + x86_64) export GOARCH=amd64 ;; + i686) export GOARCH=386 ;; + esac + + bash make.bash --no-clean + + # System-wide tools + for tool in godex godoc goimports gomvpkg gorename gotype; do +$GOROOT/bin/go get -d golang.org/x/tools/cmd/$tool +$GOROOT/bin/go build -v -x -o $GOPATH/bin/$tool $_gourl/$tool + done + + # Distribution tools + for tool in benchcmp bundle callgraph digraph eg fiximports html2article oracle present ssadump stress stringer ; do +$GOROOT/bin/go get -d golang.org/x/tools/cmd/$tool +$GOROOT/bin/go build -v -x -o $GOPATH/pkg/tool/${GOOS}_$GOARCH/$tool golang.org/x/tools/cmd/$tool + done +} + +check() { + cd "$pkgname-$pkgver" + + #export GO386=387 + + export GOOS=linux + case "$CARCH" in +x86_64) GOARCH=amd64 ;; +i686) GOARCH=386 ;; + esac + + export GOROOT="$srcdir/$pkgname-$pkgver" + export GOBIN="$GOROOT/bin" + export PATH="$srcdir/$pkgname-$pkgver/bin:$PATH" + export GOROOT_BOOTSTRAP=/usr/lib/go + + for tool in godoc goimports gomvpkg gorename gotype \ +benchcmp bundle callgraph digraph eg fiximports html2article oracle present ssadump stress stringer; do +GOPATH="$srcdir" $GOROOT/bin/go test -v -x $_gourl/$tool + done + + # TestSimpleMulticastListener will fail in standard chroot + cd src && bash run.bash --no-rebuild || true +} + +package_go() { + pkgdesc='Compiler and tools for the Go programming language from Google' + optdepends=('mercurial: for fetching sources from mercurial repositories' + 'git: for fetching sources from git repositories' + 'bzr: for fetching sources from bazaar repositories' + 'subversion: for fetching sources from subversion repositories' +