Opened 14 years ago

Closed 13 years ago

#22476 closed request (fixed)

Add port for the Go Programming Language

Reported by: luis.beca@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: nerdling (Jeremy Lavergne), jweede@…, lstoll@…, celil.rufat@…, pbhogan@…, oliver.saunders@…, junyaogura@…
Port: go gc gccgo

Description

Please consider adding The Go Programming Language to MacPorts.

http://golang.org/

Attachments (1)

Portfile (929 bytes) - added by nerdling (Jeremy Lavergne) 14 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added
Port: go gc gccgo added

I'm thinking two separate ports: one for gccgo and one for gc. Thoughts?

comment:2 Changed 14 years ago by nerdling (Jeremy Lavergne)

Cc: jweede@… added

comment:3 Changed 14 years ago by nerdling (Jeremy Lavergne)

The present portfile is working up until the tests.

--- FAIL: log.TestAllLog
	log output should match "^/[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23 world$" is "/opt/local/var/macports/build/_Users_macports_lang_go/work/go-1.0/src/pkg/log/log_test.go:60: hello 23 world"
	log output should match "^/[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23 world$" is "/opt/local/var/macports/build/_Users_macports_lang_go/work/go-1.0/src/pkg/log/log_test.go:58: hello 23 world"
	log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] /[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/11/11 20:25:14.920977 /opt/local/var/macports/build/_Users_macports_lang_go/work/go-1.0/src/pkg/log/log_test.go:60: hello 23 world"
	log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-9] /[A-Za-z0-9_/\\-]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/11/11 20:25:14.921262 /opt/local/var/macports/build/_Users_macports_lang_go/work/go-1.0/src/pkg/log/log_test.go:58: hello 23 world"
FAIL
make[1]: *** [test] Error 1
make: *** [log.test] Error 2

However, this looks like a correct regex. Anyone got any ideas?

comment:4 Changed 14 years ago by nerdling (Jeremy Lavergne)

Hm, i think their regex doesn't allow a period in the name. Strange?

comment:5 Changed 14 years ago by nerdling (Jeremy Lavergne)

Also, if I understand the gccgo portion correctly, that's simply compiling a gcc branch. Sounds like a variant should be added to the gcc ports for that feature.

comment:6 Changed 14 years ago by lstoll@…

Cc: lstoll@… added

Cc Me!

Changed 14 years ago by nerdling (Jeremy Lavergne)

Attachment: Portfile added

comment:7 Changed 14 years ago by nerdling (Jeremy Lavergne)

I've updated the portfile:

  • overrides the build phase entirely
  • moves downloaded files from ${distname} to ${name} to avoid failing a test with a "." in the directory path. Note: changing ${distname} causes the mercurial download to fail.

comment:8 Changed 14 years ago by blb@…

Another ticket is #22506 with a different Portfile.

comment:9 Changed 14 years ago by nefar@…

I don't think that will allow you to compile much. That port will not be referencing the packages by the looks of it, whereas my port has necessary wrappers.

comment:10 Changed 14 years ago by nefar@…

oops, I meant to make my comment on my port :)

comment:11 Changed 14 years ago by nefar@…

Also, I'm curious why snc added this when I told him I was already doing it.

comment:12 Changed 14 years ago by nerdling (Jeremy Lavergne)

"36 hours ago" should tell you why :p

comment:13 Changed 14 years ago by celil.rufat@…

Cc: celil.rufat@… added

Cc Me!

comment:14 Changed 14 years ago by blb@…

And now #22569 with another Portfile.

comment:15 Changed 14 years ago by pbhogan@…

Cc: pbhogan@… added

Cc Me!

comment:16 Changed 14 years ago by oliver.saunders@…

Cc: oliver.saunders@… added

Cc Me!

comment:17 Changed 14 years ago by junyaogura@…

Cc: junyaogura@… added

Cc Me!

comment:18 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.