Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: upstream OpenBSD patches to master and/or Go 1.4 branch #20672

Closed
henryas opened this issue Jun 14, 2017 · 20 comments
Closed

build: upstream OpenBSD patches to master and/or Go 1.4 branch #20672

henryas opened this issue Jun 14, 2017 · 20 comments
Labels
FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-OpenBSD
Milestone

Comments

@henryas
Copy link

henryas commented Jun 14, 2017

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

Go1.4.3

What operating system and processor architecture are you using (go env)?

OpenBSD 386

What did you do?

I downloaded Go1.4.3 source from Go's website and failed to build Go's toolchain (Go1.4.3) in my OpenBSD/386 machine. I made a post in Golang Nuts and Dave Cheney suggested to look for possible patches in OpenBSD's ports. It turned out that there are patches that exist in OpenBSD's version that do not exist in Go's official version.

The OpenBSD's version builds just fine on my machine, but the official version does not.

I have included the OpenBSD port for Go1.4.3 for your reference and perhaps someone could integrate their patches into the official version.

Thanks

Henry
go.tar.gz

@bradfitz
Copy link
Contributor

This is probably an easier way to look at them:
http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/lang/go/patches/

Looks like Joel (@4a6f656c) is the author or maintainer of them.

Joel, do you want to upstream them? We'd prefer if they were upstream.

@bradfitz bradfitz changed the title Patches for Go1.4.3 - OpenBSD/386 build: upstream OpenBSD patches to master and/or Go 1.4 branch Jun 14, 2017
@bradfitz bradfitz added this to the Unplanned milestone Jun 14, 2017
@bradfitz bradfitz added help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-OpenBSD labels Jun 14, 2017
@ALTree
Copy link
Member

ALTree commented Jun 14, 2017

I downloaded Go1.4.3 source from Go's website

This may be a silly question but... why? If you are bootstrapping, you should use go1.4-bootstrap, not go1.4.3

@bradfitz
Copy link
Contributor

@ALTree, I assumed the issue is that they're not on the 1.4 release branch, hence the necessary changes are not in the go1.4-bootstrap tarball.

@ALTree
Copy link
Member

ALTree commented Jun 14, 2017

Ah, so you're asking them to upstream the changes to go1.4-bootstrap and then we'll publish a new bootstrap release?

I thought you were asking them to apply the patches to go1.4.3 (which is unmaintained and it's not usable for bootstrapping, even on many linux system), that's why I was confused.

@bradfitz
Copy link
Contributor

Ah, so you're asking them to upstream the changes to go1.4-bootstrap and then we'll publish a new bootstrap release?

Yes.

@4a6f656c
Copy link
Contributor

@bradfitz - I did not realise that go1.4-bootstrap tarball existed and just stumbled across this issue. I'm more than happy to upstream the changes - what's the process for targeting the release-branch.go1.4 branch (I don't seem to be able to find any references re this)?

@ianlancetaylor
Copy link
Contributor

Contributing to the 1.4 release branch is the same as the usual contribution process, but first run git pull; git checkout release-branch.go1.4. Then you can git change, git mail as usual.

Note that the trybots do not work for the 1.4 release branch. In fact, there's not much automated testing at all.

And, of course, patches must be minimal and completely safe.

@4a6f656c
Copy link
Contributor

@ianlancetaylor - ack, thanks.

@gopherbot
Copy link

Change https://golang.org/cl/66070 mentions this issue: [release-branch.go1.4] cmd/link: specify correct size for dynamic symbols in 386 elf output

@gopherbot
Copy link

Change https://golang.org/cl/66071 mentions this issue: [release-branch.go1.4] runtime: stop using sigreturn on openbsd/386

@gopherbot
Copy link

Change https://golang.org/cl/66072 mentions this issue: [release-branch.go1.4] runtime, syscall: update openbsd for changes to syskill

@gopherbot
Copy link

Change https://golang.org/cl/66073 mentions this issue: [release-branch.go1.4] time: Skip TestParseInLocation test.

gopherbot pushed a commit that referenced this issue Oct 2, 2017
…bols in 386 elf output

This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch.

Updates #20672

Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6
Reviewed-on: https://go-review.googlesource.com/66070
Reviewed-by: Ian Lance Taylor <iant@golang.org>
gopherbot pushed a commit that referenced this issue Oct 2, 2017
In future releases of OpenBSD, the sigreturn syscall will no longer
exist. As such, stop using sigreturn on openbsd/386 and just return
from the signal trampoline.

This is a backport of https://golang.org/cl/23024 to the Go 1.4 branch.

Updates #20672

Change-Id: Ia1caf9427c51a6871f51dbff06720f3158e38c68
Reviewed-on: https://go-review.googlesource.com/66071
Reviewed-by: Ian Lance Taylor <iant@golang.org>
gopherbot pushed a commit that referenced this issue Oct 3, 2017
…o syskill

Change the openbsd runtime to use the current sys_kill and sys_thrkill
system calls.

This is a backport of https://golang.org/cl/34093 to the Go 1.4 branch.

Updates #20672

Change-Id: I4fde5bad2fbfbe99196053d69ba235b49ddb32c8
Reviewed-on: https://go-review.googlesource.com/66072
Reviewed-by: Ian Lance Taylor <iant@golang.org>
gopherbot pushed a commit that referenced this issue Oct 3, 2017
This test is now failing due to tz data updates (see issue #19457) - skip the test
since it does not impact the use of Go 1.4 for bootstrapping.

Similar to issue #17545.

Updates #20672

Change-Id: I8017159fa2a59b052c49fda7d50be7a863e0a08d
Reviewed-on: https://go-review.googlesource.com/66073
Reviewed-by: Ian Lance Taylor <iant@golang.org>
@4a6f656c
Copy link
Contributor

4a6f656c commented Oct 3, 2017

@bradfitz I believe a new go1.4-release tarball can be rolled and this can then be closed out.

@4a6f656c
Copy link
Contributor

@bradfitz any chance of getting a new go1.4-release tarball spun?

@bradfitz
Copy link
Contributor

@gopherbot
Copy link

Change https://golang.org/cl/79275 mentions this issue: cmd/upload: add support for updating go1.4-bootstrap-yyyymmdd.tar.gz

@gopherbot
Copy link

Change https://golang.org/cl/79276 mentions this issue: doc: update the URL of the latest go1.4 source snapshot

gopherbot pushed a commit that referenced this issue Nov 22, 2017
Updates #20672

Change-Id: I3c62b1606aec93e188255f1701c0af569d540016
Reviewed-on: https://go-review.googlesource.com/79276
Reviewed-by: Ian Lance Taylor <iant@golang.org>
gopherbot pushed a commit to golang/build that referenced this issue Nov 22, 2017
Stop doing this by hand and automate it.

Updates golang/go#20672

Change-Id: I2ff02053882f76406c220bf015dd21ad0c0dca1a
Reviewed-on: https://go-review.googlesource.com/79275
Reviewed-by: Ian Lance Taylor <iant@golang.org>
@gopherbot
Copy link

Change https://golang.org/cl/79936 mentions this issue: doc: update URL of the go1.4 source snapshot to use dl.google.com

gopherbot pushed a commit that referenced this issue Nov 27, 2017
Updates #20672

Change-Id: I88a1d8693ef9d1e4758719603ce1f3c3f6b920bc
Reviewed-on: https://go-review.googlesource.com/79936
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@bradfitz
Copy link
Contributor

bradfitz commented Dec 5, 2017

@broady, can you update the website with this?

Cherry-pick 79276 and 79936 to the release branch?

wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
…bols in 386 elf output

This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6
Reviewed-on: https://go-review.googlesource.com/66070
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
In future releases of OpenBSD, the sigreturn syscall will no longer
exist. As such, stop using sigreturn on openbsd/386 and just return
from the signal trampoline.

This is a backport of https://golang.org/cl/23024 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Ia1caf9427c51a6871f51dbff06720f3158e38c68
Reviewed-on: https://go-review.googlesource.com/66071
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
…o syskill

Change the openbsd runtime to use the current sys_kill and sys_thrkill
system calls.

This is a backport of https://golang.org/cl/34093 to the Go 1.4 branch.

Updates golang#20672

Change-Id: I4fde5bad2fbfbe99196053d69ba235b49ddb32c8
Reviewed-on: https://go-review.googlesource.com/66072
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
This test is now failing due to tz data updates (see issue golang#19457) - skip the test
since it does not impact the use of Go 1.4 for bootstrapping.

Similar to issue golang#17545.

Updates golang#20672

Change-Id: I8017159fa2a59b052c49fda7d50be7a863e0a08d
Reviewed-on: https://go-review.googlesource.com/66073
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
…bols in 386 elf output

This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6
Reviewed-on: https://go-review.googlesource.com/66070
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
In future releases of OpenBSD, the sigreturn syscall will no longer
exist. As such, stop using sigreturn on openbsd/386 and just return
from the signal trampoline.

This is a backport of https://golang.org/cl/23024 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Ia1caf9427c51a6871f51dbff06720f3158e38c68
Reviewed-on: https://go-review.googlesource.com/66071
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
…o syskill

Change the openbsd runtime to use the current sys_kill and sys_thrkill
system calls.

This is a backport of https://golang.org/cl/34093 to the Go 1.4 branch.

Updates golang#20672

Change-Id: I4fde5bad2fbfbe99196053d69ba235b49ddb32c8
Reviewed-on: https://go-review.googlesource.com/66072
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
This test is now failing due to tz data updates (see issue golang#19457) - skip the test
since it does not impact the use of Go 1.4 for bootstrapping.

Similar to issue golang#17545.

Updates golang#20672

Change-Id: I8017159fa2a59b052c49fda7d50be7a863e0a08d
Reviewed-on: https://go-review.googlesource.com/66073
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
…bols in 386 elf output

This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6
Reviewed-on: https://go-review.googlesource.com/66070
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
In future releases of OpenBSD, the sigreturn syscall will no longer
exist. As such, stop using sigreturn on openbsd/386 and just return
from the signal trampoline.

This is a backport of https://golang.org/cl/23024 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Ia1caf9427c51a6871f51dbff06720f3158e38c68
Reviewed-on: https://go-review.googlesource.com/66071
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
…o syskill

Change the openbsd runtime to use the current sys_kill and sys_thrkill
system calls.

This is a backport of https://golang.org/cl/34093 to the Go 1.4 branch.

Updates golang#20672

Change-Id: I4fde5bad2fbfbe99196053d69ba235b49ddb32c8
Reviewed-on: https://go-review.googlesource.com/66072
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
This test is now failing due to tz data updates (see issue golang#19457) - skip the test
since it does not impact the use of Go 1.4 for bootstrapping.

Similar to issue golang#17545.

Updates golang#20672

Change-Id: I8017159fa2a59b052c49fda7d50be7a863e0a08d
Reviewed-on: https://go-review.googlesource.com/66073
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 20, 2018
…bols in 386 elf output

This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6
Reviewed-on: https://go-review.googlesource.com/66070
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 20, 2018
In future releases of OpenBSD, the sigreturn syscall will no longer
exist. As such, stop using sigreturn on openbsd/386 and just return
from the signal trampoline.

This is a backport of https://golang.org/cl/23024 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Ia1caf9427c51a6871f51dbff06720f3158e38c68
Reviewed-on: https://go-review.googlesource.com/66071
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 20, 2018
…o syskill

Change the openbsd runtime to use the current sys_kill and sys_thrkill
system calls.

This is a backport of https://golang.org/cl/34093 to the Go 1.4 branch.

Updates golang#20672

Change-Id: I4fde5bad2fbfbe99196053d69ba235b49ddb32c8
Reviewed-on: https://go-review.googlesource.com/66072
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 20, 2018
This test is now failing due to tz data updates (see issue golang#19457) - skip the test
since it does not impact the use of Go 1.4 for bootstrapping.

Similar to issue golang#17545.

Updates golang#20672

Change-Id: I8017159fa2a59b052c49fda7d50be7a863e0a08d
Reviewed-on: https://go-review.googlesource.com/66073
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
…bols in 386 elf output

This is a backport of https://golang.org/cl/22912 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Id71c0c4596a599c5293b013f68894f6ee13e06d6
Reviewed-on: https://go-review.googlesource.com/66070
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
In future releases of OpenBSD, the sigreturn syscall will no longer
exist. As such, stop using sigreturn on openbsd/386 and just return
from the signal trampoline.

This is a backport of https://golang.org/cl/23024 to the Go 1.4 branch.

Updates golang#20672

Change-Id: Ia1caf9427c51a6871f51dbff06720f3158e38c68
Reviewed-on: https://go-review.googlesource.com/66071
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
…o syskill

Change the openbsd runtime to use the current sys_kill and sys_thrkill
system calls.

This is a backport of https://golang.org/cl/34093 to the Go 1.4 branch.

Updates golang#20672

Change-Id: I4fde5bad2fbfbe99196053d69ba235b49ddb32c8
Reviewed-on: https://go-review.googlesource.com/66072
Reviewed-by: Ian Lance Taylor <iant@golang.org>
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
This test is now failing due to tz data updates (see issue golang#19457) - skip the test
since it does not impact the use of Go 1.4 for bootstrapping.

Similar to issue golang#17545.

Updates golang#20672

Change-Id: I8017159fa2a59b052c49fda7d50be7a863e0a08d
Reviewed-on: https://go-review.googlesource.com/66073
Reviewed-by: Ian Lance Taylor <iant@golang.org>
@bradfitz
Copy link
Contributor

bradfitz commented Apr 2, 2019

Looks like this is sufficiently done.

Let me know if I'm mistaken.

@bradfitz bradfitz closed this as completed Apr 2, 2019
@golang golang locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-OpenBSD
Projects
None yet
Development

No branches or pull requests

6 participants