Package: golang
Version: 1.2-2
I got a little overzealous yesterday and decided that there's probably not
any reason why the "golang" packages aren't available on kFreeBSD other
than lack of interest/testing. So I installed me a VM and played around.
I tested that the packages build and install successfully on Debian
GNU/kFreeBSD amd64 with nothing more than the attached patch (which is
pretty minor itself - just adding the necessary "Architectures" and
"${go:Hostos}" to match "${go:Hostarch}").
If there's a different preferred format (or a different method of sending
the patch entirely), I'm very willing to adapt. I'm also willing to run
any kinds of tests deemed necessary. Just let me know!
tianon@debian-freebsd:~/golang-1.2$ uname -a
GNU/kFreeBSD debian-freebsd 9.2-1-amd64 #0 Mon, 30 Sep 2013 15:27:06 +0200
x86_64 amd64 AMD FX(tm)-8350 Eight-Core Processor GNU/kFreeBSD
tianon@debian-freebsd:~/golang-1.2$ dpkg --get-selections | grep golang
golang install
golang-build-deps install
golang-doc install
golang-go install
golang-go-freebsd-amd64 install
golang-src install
tianon@debian-freebsd:~/golang-1.2$ go version
go version go1.2 freebsd/amd64
♥,
- Tianon
diff --git a/debian/control b/debian/control
index b93cf92..d8e8367 100644
--- a/debian/control
+++ b/debian/control
@@ -11,10 +11,10 @@ Standards-Version: 3.9.3
Homepage: http://golang.org/
Package: golang-go
-Architecture: i386 amd64 armel armhf
+Architecture: i386 amd64 armel armhf kfreebsd-i386 kfreebsd-amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends},
golang-src (>= ${source:Version}),
- golang-go-linux-${go:Hostarch} (= ${source:Version})
+ golang-go-${go:Hostos}-${go:Hostarch} (= ${source:Version})
Replaces: golang-weekly-go, golang-weekly-tools, golang-tools
Conflicts: golang-weekly-go, golang-weekly-tools, golang-tools
Provides: go-compiler, golang-weekly-go, golang-weekly-tools, golang-tools
@@ -39,7 +39,7 @@ Replaces: golang-weekly-src, golang-go (<< 2:1-3~)
Conflicts: golang-weekly-src
Provides: golang-weekly-src
Breaks: golang-go (<< 2:1-3~)
-Architecture: i386 amd64 armel armhf
+Architecture: i386 amd64 armel armhf kfreebsd-i386 kfreebsd-amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Go programming language compiler - source files
The Go programming language is an open source project to make
diff --git a/debian/control.base b/debian/control.base
index 213ff39..904bce3 100644
--- a/debian/control.base
+++ b/debian/control.base
@@ -10,10 +10,10 @@ Standards-Version: 3.9.3
Homepage: http://golang.org/
Package: golang-go
-Architecture: i386 amd64 armel armhf
+Architecture: i386 amd64 armel armhf kfreebsd-i386 kfreebsd-amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends},
golang-src (>= ${source:Version}),
- golang-go-linux-${go:Hostarch} (= ${source:Version})
+ golang-go-${go:Hostos}-${go:Hostarch} (= ${source:Version})
Replaces: golang-weekly-go, golang-weekly-tools, golang-tools
Conflicts: golang-weekly-go, golang-weekly-tools, golang-tools
Provides: go-compiler, golang-weekly-go, golang-weekly-tools, golang-tools
@@ -38,7 +38,7 @@ Replaces: golang-weekly-src, golang-go (<< 2:1-3~)
Conflicts: golang-weekly-src
Provides: golang-weekly-src
Breaks: golang-go (<< 2:1-3~)
-Architecture: i386 amd64 armel armhf
+Architecture: i386 amd64 armel armhf kfreebsd-i386 kfreebsd-amd64
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Go programming language compiler - source files
The Go programming language is an open source project to make
diff --git a/debian/rules b/debian/rules
index ab5e3fd..7cdb85c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -94,6 +94,7 @@ override_dh_strip:
override_dh_prep:
dh_prep
+ echo 'go:Hostos=${GOHOSTOS}' >> debian/golang-go.substvars
echo 'go:Hostarch=$(GOHOSTARCH)' >> debian/golang-go.substvars
override_dh_builddeb: