Comment 13 for bug 1432497

Revision history for this message
In , I-ian-1 (i-ian-1) wrote :

Author: ian
Date: Tue Mar 24 19:50:31 2015
New Revision: 221643

URL: https://gcc.gnu.org/viewcvs?rev=221643&root=gcc&view=rev
Log:
 PR go/65462
cmd: Fix dependencies for 'go get' with gccgo

Problem described in GCC BZ 65462.
Generate the list of the standard GO package names based on what was built into libgo in the libgo Makefile.
Change the var name from reqPkgSrc to reqStdPkgSrc to clarify it only affects standard GO packages.
Skip the attempted loading of a package only if it is a standard GO package and the flag is set indicating its source is not required to be available.
This requires a corresponding change to gotools to build and link in the new file containing the list of standard GO package names that was generated by the libgo Makefile.

gotools/:
 PR go/65462
 * Makefile.am (go_cmd_go_files): Add $(libgodir)/zstdpkglist.go.
 * Makefile.in: Rebuild.

Modified:
    trunk/gotools/ChangeLog
    trunk/gotools/Makefile.am
    trunk/gotools/Makefile.in
    trunk/libgo/Makefile.am
    trunk/libgo/Makefile.in
    trunk/libgo/go/cmd/go/build.go
    trunk/libgo/go/cmd/go/pkg.go
    trunk/libgo/go/cmd/go/test.go