From f7d754fcce193a1ef8629361095b86c75a6313af Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Mon, 20 Jun 2011 22:23:43 +1000 Subject: [PATCH] build: exclude packages that fail on Plan 9 (for now) All but two packages depend on net: debug/proc os/signal With this change, we can produce a working build with GOOS=plan9. R=golang-dev, r CC=golang-dev https://golang.org/cl/4639053 --- src/pkg/Makefile | 30 ++++++++++++++++++++++++++++++ src/pkg/runtime/cgo/Makefile | 4 ++++ 2 files changed, 34 insertions(+) diff --git a/src/pkg/Makefile b/src/pkg/Makefile index b743660813..3da71a200f 100644 --- a/src/pkg/Makefile +++ b/src/pkg/Makefile @@ -182,6 +182,36 @@ DIRS+=\ endif +ifeq ($(GOOS),plan9) +NOPLAN9BUILD=\ + crypto/tls\ + debug/proc\ + exp/gui/x11\ + expvar\ + http\ + http/cgi\ + http/fcgi\ + http/httptest\ + http/pprof\ + http/spdy\ + mail\ + mime/multipart\ + net\ + net/dict\ + net/textproto\ + netchan\ + os/signal\ + rpc\ + rpc/jsonrpc\ + smtp\ + syslog\ + websocket\ + ../cmd/godoc\ + ../cmd/goinstall\ + +DIRS:=$(filter-out $(NOPLAN9BUILD),$(DIRS)) +endif + NOTEST+=\ crypto\ crypto/openpgp/error\ diff --git a/src/pkg/runtime/cgo/Makefile b/src/pkg/runtime/cgo/Makefile index f26da2c518..7e752f127f 100644 --- a/src/pkg/runtime/cgo/Makefile +++ b/src/pkg/runtime/cgo/Makefile @@ -10,6 +10,10 @@ ifeq ($(GOARCH),arm) ENABLED:=0 endif +ifeq ($(GOOS),plan9) +ENABLED:=0 +endif + ifeq ($(DISABLE_CGO),1) ENABLED:=0 endif -- 2.50.0