Go to file
Jordi Massaguer f4a0ff5be5 Accepting request 509364 from home:jordimassaguerpla:branch:enable_gcc6_for_sle12_and_fix_s390x
- Simplify all the "ifdef suse_version" by removing versions which
  have reach eol (13.* 42.1 sle11*)

- Add gcc6-go.patch for sle12 and leap42.x and use binutils-gold
  except for s390x/s390
  Remove gcc5-go.patch cause we use gcc6 for sle12 and leap42.x and
  gcc7 for newer versions (factory)

OBS-URL: https://build.opensuse.org/request/show/509364
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=290
2017-07-12 10:30:13 +00:00
.gitattributes osc copypac from project:home:saschpe:go package:go revision:4 2010-10-08 14:25:58 +00:00
.gitignore osc copypac from project:home:saschpe:go package:go revision:4 2010-10-08 14:25:58 +00:00
allow-binary-only-packages.patch Accepting request 491619 from home:thipp:branch:devel:languages:go 2017-04-27 15:07:49 +00:00
armv6l.patch Accepting request 431323 from home:jordimassaguerpla:branch:d:l:g:update_go_1_7 2016-10-07 10:13:54 +00:00
fix_certificates_lookup.patch Accepting request 431323 from home:jordimassaguerpla:branch:d:l:g:update_go_1_7 2016-10-07 10:13:54 +00:00
gcc6-go.patch Accepting request 509364 from home:jordimassaguerpla:branch:enable_gcc6_for_sle12_and_fix_s390x 2017-07-12 10:30:13 +00:00
gcc7-go.patch Accepting request 500676 from home:thipp:branches:devel:languages:go 2017-06-06 09:09:32 +00:00
go1.8.3.src.tar.gz Accepting request 498928 from home:thipp:branch:devel:languages:go 2017-05-29 11:00:01 +00:00
go-1.5-build-dont-reinstall-stdlibs.patch Accepting request 348297 from home:matwey:branches:devel:languages:go 2015-12-22 14:58:30 +00:00
go-1.5-install-dont-reinstall-stdlibs.patch Accepting request 431323 from home:jordimassaguerpla:branch:d:l:g:update_go_1_7 2016-10-07 10:13:54 +00:00
go-rpmlintrc Accepting request 243219 from home:dimstar:rpmlintrc 2014-08-12 07:18:55 +00:00
go.changes Accepting request 509364 from home:jordimassaguerpla:branch:enable_gcc6_for_sle12_and_fix_s390x 2017-07-12 10:30:13 +00:00
go.gdbinit Accepting request 497883 from home:jordimassaguerpla:branch:d:l:g:fix_update_alternatives 2017-05-24 11:06:00 +00:00
go.sh Accepting request 497883 from home:jordimassaguerpla:branch:d:l:g:fix_update_alternatives 2017-05-24 11:06:00 +00:00
go.spec Accepting request 509364 from home:jordimassaguerpla:branch:enable_gcc6_for_sle12_and_fix_s390x 2017-07-12 10:30:13 +00:00
README.SUSE Accepting request 325388 from home:MargueriteSu:branches:devel:languages:go 2015-08-22 14:58:04 +00:00
runtime-bump-MaxGomaxprocs.patch Accepting request 479045 from home:cyphar:branches:devel:languages:go 2017-03-31 09:53:21 +00:00
tools-packaging.patch Accepting request 348297 from home:matwey:branches:devel:languages:go 2015-12-22 14:58:30 +00:00
verbose-build.patch Accepting request 325388 from home:MargueriteSu:branches:devel:languages:go 2015-08-22 14:58:04 +00:00

Updated: 05.05.2012
Authors: Graham Anderson, <graham@andtech.eu>


PROJECT DETAILS
---------------

OBS: https://build.opensuse.org/project/show?project=devel:languages:go

Maintainers: Sascha Peilicke (saschpe),
             Graham Anderson (andtecheu)

Wiki: http://en.opensuse.org/Go
      http://en.opensuse.org/openSUSE:Packaging_Go
	  
             
GENERAL NOTES
-------------

Go toolchain environmental variables are configured via go.sh, which is
installed to /etc/profile.d/go.sh

Packaging guidelines and an RPM spec file recipe for packaging third party Go
libraries can be found on the openSUSE wiki:

    http://en.opensuse.org/openSUSE:Packaging_Go

The openSUSE go package uses the standard Go distribution toolchain, with a
a small patchset to modify a few of the toolchain commands to suit our
environment and packaging needs.

This means that many of the standard go toolchain commands are not inside a
users PATH, but rather are invoked and used via the "go" command. Should you
wish to script or manually use the commands, the install location on a 64 bit
system is /usr/lib64/go/pkg/tool/linux_amd64

The "go" tool, the "godoc" document server are inside a users PATH.

We currently don't support the gccgo implementation, this is not for
any other reason than contributer and maintainer time constraints.


GO DOCUMENTATION
----------------

As of yet, there are no man pages for the standard Go distribution toolchain,
please see the documentation provided by the "godoc" command. Man pages are
slated to be included in the release in future.

One of the diffs from the maintained patchset adds the distro specific doc and
source file locations of the *-doc RPM packages to the virtual filesystem of
the "godoc" documentation server. That is to say, as long as packages follow
the Go packaging guidelines, API and other documentation should always be
available via the godoc server if the packages "doc" RPM is installed.


PACKAGE INSTALL LOCATIONS
-------------------------

Go standard library packages are installed to a location in $GOROOT, which is
defined as /usr/lib64/go on 64bit systems.

Third party package binaries are installed to the default system wide
$GOPATH entry. On 64bit systems the location /usr/lib64/go/contrib is used.
This is specified in the macros.go RPM macro definition file that is part of
the main Go package and is used for packaging most third party Go libraries.

The reasons binary packages are installed to a GOPATH entry instead of GOROOT
are mainly to do with how the Go toolchain prioritises and behaves with
packages installed to the same location as the Go std library.

By installing third party packages to a system-wide GOPATH entry location,
we can ensure that no packages clobber the standard library namespace or file
tree. Additionally we can support binary only packages, which as of Go 1.1
will only be supported outside of the $GOROOT.

There are additional benefits to this location; such as allowing users and
developers to prioritise linking from their own user defined GOPATH, which
defaults to $HOME/go configured via /etc/profile.d/go.sh config. This has
particular benefit for development workflows.

For Go 1.1 and beyond, building and linking with binary only pacakges will
only be supported with the following caveat. Package source code must not
exist in the same GOPATH segment as the binary package .a archive file.

If both the binary archive (.a) and the package source are installed to the
same GOPATH segment, then the "go build" or "go install" command will
prioritise building the software using package sources before using package
binary archives. A side effect of this is that is actually possible to have
source code only third party packages.
   
To summarise the priority of binary package linking and building:

  1. Any source files or binary packages in $GOROOT are considered first. Any
     binary packages in $GOROOT that are considered "stale" by the build tools
     are ignored in favour of the package source.

  2. $GOPATH is considered next for import statements. GOPATH is a colon
     delimited list of paths. GOPATH segments are examined by the build tools
     in a FIFO manner, left to right.

     Both a system wide and a user GOPATH segment are configured by default,
     the user GOPATH segment takes priority over the system segment to allow
     flexibility for development workflows.

     The default user GOPATH is:

         GOPATH=$HOME/go:$GOROOT/contrib

     The default root user GOPATH is:

         GOPATH=$GOROOT/contrib

  3. For Go < 1.1, If both the source and binary archive is available for a
     package import in the same GOPATH segment, the binary archive will take
     precedence and will be linked during compilation.

     For Go >= 1.1 If the package source is avaiable in the GOPATH segment, it
     will always be used in preference to the binary