update to go-1.9.2

This commit is contained in:
Ertuğrul Erata
2017-12-31 23:22:20 +03:00
parent a615b0f4db
commit e14ea7d0d4
2 changed files with 15 additions and 9 deletions
+3 -4
View File
@@ -10,18 +10,17 @@ from pisi.actionsapi import shelltools
from pisi.actionsapi import get
NoStrip = ["/"]
#NoStrip = ["/usr/lib/go/pkg", "/usr/lib/go/src/runtime/race", "/usr/lib/go/src/debug/elf", "/usr/lib/go/src/debug/dwarf"]
def build():
shelltools.export("go_platform","linux-amd64")
shelltools.export("go_linker","/lib/ld-linux-x86-64.so.2")
shelltools.export("GOROOT", "%s/go-go1.7.6" % get.workDIR()) #0
shelltools.export("GOROOT", "%s/go-go1.9.2" % get.workDIR()) #0
shelltools.export("GOBIN", "$GOROOT/bin") #1
shelltools.export("GOPATH", "%s" % get.workDIR())
shelltools.export("GOROOT_FINAL", "/usr/lib/go")
shelltools.export("GOROOT_BOOTSTRAP", "%s/go-go1.7.6/go-linux-amd64-bootstrap" % get.workDIR()) #2
shelltools.export("GOROOT_BOOTSTRAP", "%s/go-go1.9.2/go-linux-amd64-bootstrap" % get.workDIR()) #2
shelltools.export("GOOS","linux")
shelltools.export("GOARCH","amd64")
@@ -42,7 +41,7 @@ def build():
def install():
shelltools.export("GOROOT_FINAL", "/usr/lib/go")
shelltools.cd("%s/go-go1.7.6" % get.workDIR())
shelltools.cd("%s/go-go1.9.2" % get.workDIR())
pisitools.dodir("/usr/lib/go")
shelltools.system("cp -r api bin doc lib pkg src %s/usr/lib/go" % get.installDIR())
+12 -5
View File
@@ -12,17 +12,17 @@
<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="3591e9c184d75f3abdae6954796c779d1b2265a1" type="targz">https://github.com/golang/go/archive/go1.7.6.tar.gz</Archive>
<Archive sha1sum="97058ade5ad63119f78aa5d1717b1ac26c9f5f7b" type="tarbz2" target="go-go1.7.6">https://dev.gentoo.org/~williamh/dist/go-linux-amd64-bootstrap.tbz</Archive>
<Archive sha1sum="6f0797b14fe2d22ea2a4fcff0049a18bae44520d" type="targz">https://github.com/golang/go/archive/go1.9.2.tar.gz</Archive>
<Archive sha1sum="ed23e5951771f03d71dffdbd222617dd451fa511" type="tarbz2" target="go-go1.9.2">https://dev.gentoo.org/~williamh/dist/go-linux-amd64-bootstrap-1.8.tbz</Archive>
<!--BuildDependencies>
<Dependency>perl</Dependency>
<Dependency>gawk</Dependency>
<Dependency>mercurial</Dependency>
<Dependency>git</Dependency>
</BuildDependencies-->
<Patches>
<!--Patches>
<Patch>45f759500ec80a1362deecd3693cbe44a354bf98.patch</Patch>
</Patches>
</Patches-->
</Source>
<Package>
<Name>golang</Name>
@@ -30,10 +30,10 @@
<Dependency>git</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin/</Path>
<Path fileType="library">/usr/lib/</Path>
<Path fileType="data">/usr/share/</Path>
<Path fileType="config">/etc</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/profile.d/go.sh">go.sh</AdditionalFile>
@@ -41,6 +41,13 @@
</Package>
<History>
<Update release="7">
<Date>2017-12-31</Date>
<Version>1.9.2</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="6">
<Date>2017-08-21</Date>
<Version>1.7.6</Version>