Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 1 | # Go on OpenBSD |
| 2 | |
Constantine A. Murenin | 1beb25b | 2015-02-25 20:26:18 +0000 | [diff] [blame] | 3 | Go is available within the OpenBSD ports tree collection since OpenBSD 5.2. It is marked as i386- and amd64- only. See [`ports/lang/go`](http://ports.su/lang/go) for details. |
Constantine A. Murenin | c2964ab | 2015-02-25 20:04:31 +0000 | [diff] [blame] | 4 | |
Dimitri Sokolyuk | 0f43a30 | 2017-10-10 09:17:44 +0200 | [diff] [blame] | 5 | | **OpenBSD release** | **Go in ports** | |
Constantine A. Murenin | c2964ab | 2015-02-25 20:04:31 +0000 | [diff] [blame] | 6 | |:--------------------|:--------------------| |
Dimitri Sokolyuk | b4b7491 | 2019-11-19 03:44:52 +0100 | [diff] [blame] | 7 | | 6.6 (Oct 17, 2019) | go-1.13.1 | |
Dimitri Sokolyuk | ad75509 | 2019-08-07 00:10:32 +0200 | [diff] [blame] | 8 | | 6.5 (Apr 4, 2019) | go-1.12.1 | |
| 9 | | 6.4 (Oct 18, 2018) | go-1.11 | |
| 10 | | 6.3 (Apr 2, 2018) | go-1.10 | |
Dimitri Sokolyuk | 0f43a30 | 2017-10-10 09:17:44 +0200 | [diff] [blame] | 11 | | 6.2 (Oct 9, 2017) | go-1.9 | |
Dimitri Sokolyuk | 09a63d1 | 2017-04-22 13:03:37 +0200 | [diff] [blame] | 12 | | 6.1 (Apr 11, 2017) | go-1.8 | |
Dimitri Sokolyuk | ec09792 | 2016-09-10 15:31:41 +0200 | [diff] [blame] | 13 | | 6.0 (Sep 1, 2016) | go-1.6.3 | |
Dimitri Sokolyuk | f0ac427 | 2016-04-24 00:44:03 +0200 | [diff] [blame] | 14 | | 5.9 (Mar 29, 2016) | go-1.5.4 | |
Dimitri Sokolyuk | 6502da8 | 2015-10-19 17:15:00 +0200 | [diff] [blame] | 15 | | 5.8 (Oct 18, 2015) | go-1.4.2 | |
Jack Peirce | 67c8815 | 2015-05-07 20:20:37 -0600 | [diff] [blame] | 16 | | 5.7 (May 1, 2015) | go-1.4.1 | |
Constantine A. Murenin | 1beb25b | 2015-02-25 20:26:18 +0000 | [diff] [blame] | 17 | | 5.6 (Nov 1, 2014) | go-1.3p0 | |
Constantine A. Murenin | c2964ab | 2015-02-25 20:04:31 +0000 | [diff] [blame] | 18 | |
Mikio Hara | 82de287 | 2016-09-29 14:41:13 +0900 | [diff] [blame] | 19 | ## Building from source |
Constantine A. Murenin | c2964ab | 2015-02-25 20:04:31 +0000 | [diff] [blame] | 20 | |
Mikio Hara | c53c0cd | 2016-10-20 16:15:03 +0900 | [diff] [blame] | 21 | | **Kernel version** | **Architectures** | **Initial support version** | **Final support version** | |
| 22 | |:-------------------|:------------------|:----------------------------|:--------------------------| |
mikioh | 96f68ee | 2018-08-01 11:16:10 +0900 | [diff] [blame] | 23 | | 6.4 | amd64, arm, 386 | Go 1.11 | | |
| 24 | | 6.2 through 6.3 | amd64, arm, 386 | Go 1.9 | | |
mikioh | 8fc4562 | 2019-01-24 08:47:46 +0900 | [diff] [blame] | 25 | | 6.1 | amd64, arm, 386 | Go 1.8 | Go 1.10.8 | |
| 26 | | 6.0 | amd64, 386 | Go 1.4.1 _*_ | Go 1.10.8 | |
| 27 | | 6.0 | arm | Go 1.5 | Go 1.10.8 | |
Mikio Hara | 4726440 | 2018-02-08 08:58:37 +0900 | [diff] [blame] | 28 | | 5.9 | amd64, 386 | Go 1.4.1 _*_ | Go 1.8.7 | |
| 29 | | 5.9 | arm | Go 1.5 | Go 1.8.7 | |
Mikio Hara | 21fdcde | 2017-05-24 21:35:56 +0900 | [diff] [blame] | 30 | | 5.6 through 5.8 | amd64, 386 | Go 1.4.1 _*_ | Go 1.7.6 | |
| 31 | | 5.5 | amd64, 386 | Go 1.3 _*_ | Go 1.7.6 | |
Mikio Hara | c53c0cd | 2016-10-20 16:15:03 +0900 | [diff] [blame] | 32 | | 5.0 through 5.4 | amd64, 386 | Go 1 | Go 1.2.2 | |
Mikio Hara | 69c9dc4 | 2017-03-23 12:35:02 +0900 | [diff] [blame] | 33 | |
Mikio Hara | ddebc2c | 2016-09-29 16:31:41 +0900 | [diff] [blame] | 34 | _*_ Go 1.5 or above is recommended. |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 35 | |
Erik Williamson | 1c94c54 | 2017-09-28 20:20:43 -0700 | [diff] [blame] | 36 | ## Longterm support |
| 37 | |
Erik Williamson | 2221b05 | 2017-09-28 20:26:55 -0700 | [diff] [blame] | 38 | Go aims to support the two most recent OpenBSD releases, because OpenBSD officially supports only the two most recent releases, and makes a best-effort attempt to maintain ABI support in consecutive releases. |
Erik Williamson | 1c94c54 | 2017-09-28 20:20:43 -0700 | [diff] [blame] | 39 | |
Mikio Hara | 82de287 | 2016-09-29 14:41:13 +0900 | [diff] [blame] | 40 | ## ulimits (` /etc/login.conf `) |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 41 | |
Michael McConville | 8ccc317 | 2016-01-13 23:39:29 -0500 | [diff] [blame] | 42 | Edit `/etc/login.conf` so that the staff class has the proper |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 43 | settings. The following is a working example of the staff class: |
| 44 | ``` |
| 45 | staff:\ |
| 46 | :datasize-cur=infinity:\ |
| 47 | :datasize-max=infinity:\ |
| 48 | :datasize=infinity:\ |
| 49 | :openfiles-cur=4096:\ |
| 50 | :maxproc-max=512:\ |
| 51 | :maxproc-cur=512:\ |
| 52 | :ignorenologin:\ |
| 53 | :requirehome@:\ |
| 54 | :tc=default: |
| 55 | ``` |
| 56 | |
Michael McConville | eee069b | 2016-01-13 23:36:43 -0500 | [diff] [blame] | 57 | If the database file `/etc/login.conf.db` exists, you need to rebuild it with: |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 58 | ``` |
| 59 | # cap_mkdb /etc/login.conf |
| 60 | ``` |
| 61 | |
Michael McConville | 1abb122 | 2016-01-13 23:41:10 -0500 | [diff] [blame] | 62 | Ensure that the user you intend to build Go with is in the `staff` login class: |
Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 63 | ``` |
Michael McConville | 1abb122 | 2016-01-13 23:41:10 -0500 | [diff] [blame] | 64 | # usermod -L staff your_username_here |
Michael McConville | 9d08e0a | 2016-01-13 23:17:38 -0500 | [diff] [blame] | 65 | ``` |