go update works....

This commit is contained in:
Ertuğrul Erata
2016-04-29 11:03:43 +03:00
parent 3d3440750c
commit 2663ebd5d2
2 changed files with 32 additions and 21 deletions
+28 -15
View File
@@ -9,45 +9,58 @@ from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
shelltools.export("GOROOT_BOOTSTRAP", "/usr/lib/go")
shelltools.export("GOROOT", "%s/go-go1.6" % get.workDIR())
shelltools.export("GOROOT", "%s/go-go1.6.2" % get.workDIR())
shelltools.export("GOBIN", "$GOROOT/bin")
shelltools.export("GOPATH", "%s" % get.workDIR())
shelltools.export("GOROOT_FINAL", "/usr/lib/go")
shelltools.export("GOROOT_BOOTSTRAP", "%s/go-go1.6.2/go-linux-amd64-bootstrap" % get.workDIR())
shelltools.export("GOHOSTARCH","amd64")
shelltools.export("GOHOSTOS","linux")
shelltools.export("CC", "gcc")
shelltools.export("GOOS","linux")
shelltools.export("GOARCH","amd64")
pisitools.cxxflags.add("-fpic")
shelltools.export("CC_FOR_TARGET", "gcc")
shelltools.export("CXX_FOR_TARGET", "g++")
NoStrip=["/"]
def build():
shelltools.cd("src")
shelltools.system("bash make.bash")
shelltools.cd("%s/go-go1.6" % get.workDIR())
shelltools.system("./make.bash")
#shelltools.cd("%s/go-go1.6.2" % get.workDIR())
#shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc")
#shelltools.system("$GOROOT/bin/go build -o $GOPATH/godoc golang.org/x/tools/cmd/godoc")
for tool in ["godex", "godoc", "goimports", "gomvpkg", "gorename", "gotype", "benchcmp", "bundle", "callgraph", "digraph", "eg", "fiximports", "html2article", "oracle", "present", "ssadump", "stress", "stringer"]:
shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/%s" % tool)
shelltools.system("$GOROOT/bin/go build -v -x -o $GOROOT/pkg/tool/$GOOS\_$GOARCH/%s golang.org/x/tools/cmd/%s" % (tool, tool))
#for tool in ["godex", "godoc", "goimports", "gomvpkg", "gorename", "gotype", "benchcmp", "bundle", "callgraph", "digraph", "eg", "fiximports", "html2article", "oracle", #"present", "ssadump", "stress", "stringer"]:
# shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/%s" % tool)
# shelltools.system("$GOROOT/bin/go build -v -x -o $GOROOT/pkg/tool/$GOOS\_$GOARCH/%s golang.org/x/tools/cmd/%s" % (tool, tool))
def install():
shelltools.cd("%s/go-go1.6" % get.workDIR())
pisitools.dobin("bin/*")
shelltools.cd("%s/go-go1.6.2" % get.workDIR())
pisitools.dodir("/usr/lib/go")
pisitools.insinto("/usr/lib/go", "bin")
pisitools.dosym("/usr/lib/go/bin/go", "/usr/bin/go")
pisitools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt")
pisitools.insinto("/usr/lib/go", "doc")
#pisitools.insinto("/usr/lib/go", "include")
pisitools.insinto("/usr/lib/go", "lib")
pisitools.insinto("/usr/lib/go", "pkg")
pisitools.insinto("/usr/lib/go", "src")
pisitools.dosym("/usr/bin/go","/usr/lib/go/bin/go")
pisitools.dosym("/usr/bin/gofmt","/usr/lib/go/bin/gofmt")
shelltools.chmod("%s/usr/lib/go/bin" % get.installDIR(), 0755)
shelltools.chmod("%s/usr/lib/go/pkg/tool" % get.installDIR(), 0755)
pisitools.insinto("/usr/lib/go", "misc")
pisitools.removeDir("/usr/lib/go/pkg/bootstrap")
pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
+4 -6
View File
@@ -12,14 +12,13 @@
<IsA>app:console</IsA>
<Summary>Compiler and tools for the Go programming language from Google</Summary>
<Description>Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.</Description>
<Archive sha1sum="26efe56b3602ecf52a33060e74b0d44d26269c6f" type="targz">https://github.com/golang/go/archive/go1.6.tar.gz</Archive>
<Archive sha1sum="1c7b23001917ba2fdc51d2e35079a851c99ab437" type="targz">https://github.com/golang/go/archive/go1.6.2.tar.gz</Archive>
<Archive sha1sum="97058ade5ad63119f78aa5d1717b1ac26c9f5f7b" type="tarbz2" target="go-go1.6.2">https://dev.gentoo.org/~williamh/dist/go-linux-amd64-bootstrap.tbz</Archive>
<BuildDependencies>
<Dependency>perl</Dependency>
<Dependency>gawk</Dependency>
<Dependency>mercurial</Dependency>
<Dependency>glibc-32bit</Dependency>
<Dependency>git</Dependency>
<Dependency>golang</Dependency><!-- for bootstrapping-->
</BuildDependencies>
<Patches>
</Patches>
@@ -27,7 +26,6 @@
<Package>
<Name>golang</Name>
<RuntimeDependencies>
<Dependency>glibc-32bit</Dependency>
<Dependency>git</Dependency>
</RuntimeDependencies>
<Files>
@@ -43,8 +41,8 @@
<History>
<Update release="2">
<Date>2016-03-23</Date>
<Version>1.6</Version>
<Date>2016-04-26</Date>
<Version>1.6.2</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>