Re: [9fans] hg and golang

2014-03-26 Thread David du Colombier
By the way, I've just updated the binary package to Mercurial 2.9.1.

http://www.9legacy.org/download.html

-- 
David du Colombier



Re: [9fans] hg and golang

2014-03-25 Thread Erik Quanstrom
no need to recreate.

- erik


Ramakrishnan Muthukrishnan  wrote:

>On Wed, Mar 26, 2014 at 6:04 AM, Erik Quanstrom  wrote:
>> what build error did you get.  do you mind sending it along?  perhaps it as 
>> caused by truncated intermediates.
>
>Sure, I need to rush now for work, I will reduce the memory back to
>64MB once I get back to work and send you the errors I see.
>
>Thanks
>Ramakrishnan
>
>> Ramakrishnan Muthukrishnan  wrote:
>>
>>>On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom  
>>>wrote:
> Thank you Erik.
>
> I got an out of physical memory at this point, while in the middle of
> the build. I will try increasing the memory (I am running on a
> virtualbox instance)

 that's kind of odd.  how much memory are you using, and can you send a 
 screenshot?
>>>
>>>I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
>>>compiled but I get mk stage errors. I will look at Skip's and David's
>>>instructions to apply the APE patch and try again.
>>>
>>>Attaching the screenshot for the out of memory error.
>>>
>>>--
>>>  Ramakrishnan
>
>
>
>-- 
>  Ramakrishnan
>
>


Re: [9fans] hg and golang

2014-03-25 Thread Ramakrishnan Muthukrishnan
On Wed, Mar 26, 2014 at 6:04 AM, Erik Quanstrom  wrote:
> what build error did you get.  do you mind sending it along?  perhaps it as 
> caused by truncated intermediates.

Sure, I need to rush now for work, I will reduce the memory back to
64MB once I get back to work and send you the errors I see.

Thanks
Ramakrishnan

> Ramakrishnan Muthukrishnan  wrote:
>
>>On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom  
>>wrote:
 Thank you Erik.

 I got an out of physical memory at this point, while in the middle of
 the build. I will try increasing the memory (I am running on a
 virtualbox instance)
>>>
>>> that's kind of odd.  how much memory are you using, and can you send a 
>>> screenshot?
>>
>>I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
>>compiled but I get mk stage errors. I will look at Skip's and David's
>>instructions to apply the APE patch and try again.
>>
>>Attaching the screenshot for the out of memory error.
>>
>>--
>>  Ramakrishnan



-- 
  Ramakrishnan



Re: [9fans] hg and golang

2014-03-25 Thread Ramakrishnan Muthukrishnan
On Wed, Mar 26, 2014 at 5:57 AM, Jeff Sickel  wrote:
> Ramakrishnan,
>
> Let me know if you’re still getting mk stage errors.
>
> You should be able to use the latest hg (2.9.1) if you grab the source 
> release (http://mercurial.selenic.com/release/mercurial-2.9.1.tar.gz).  Just 
> note that the following patch-diff has never been accepted for some reason.

Thank you Jeff. I have now got a working hg installation! :) Thanks a lot.

Quite pleased with what I have got today and managed to learn some new
things about the system.

Ramakrishnan



Re: [9fans] hg and golang

2014-03-25 Thread Ramakrishnan Muthukrishnan
On Wed, Mar 26, 2014 at 3:58 AM, David du Colombier <0in...@gmail.com> wrote:
>> I searched and didn't find a canonical way to install mercurial and
>> golang on plan9. Can someone point to me some instructions? I see from
>> the golang build dashboard[1] that golang on plan9 is reasonably
>> healthy.
>
> As Skip said, Python 2.7.6 and Mercurial 2.8.2 are available
> as a binary package on http://www.9legacy.org/download.html.
>
> If you want to compile from sources, you will need to
> get the APE changes from Jeff Sickel. If you are running
> Plan 9 from Bell Labs, you can apply the following patch:
>
> http://www.9legacy.org/9legacy/patch/ape-jas.diff
>
> Here is an excerpt from my notes to compile Python on Plan 9:

[...]

Hello David,

That worked perfectly! Thanks. I compiled python from sources. I now
have a working Python and Mercurial installation. Now, on to compiling
Go.

Thank you again, to everyone.
-- 
  Ramakrishnan



Re: [9fans] hg and golang

2014-03-25 Thread Erik Quanstrom
what build error did you get.  do you mind sending it along?  perhaps it as 
caused by truncated intermediates.  

- erik


Ramakrishnan Muthukrishnan  wrote:

>On Wed, Mar 26, 2014 at 12:05 AM, erik quanstrom  wrote:
>>> Thank you Erik.
>>>
>>> I got an out of physical memory at this point, while in the middle of
>>> the build. I will try increasing the memory (I am running on a
>>> virtualbox instance)
>>
>> that's kind of odd.  how much memory are you using, and can you send a 
>> screenshot?
>
>I only had 64MB, sorry, my mistake.. I increased it to 1024MB and it
>compiled but I get mk stage errors. I will look at Skip's and David's
>instructions to apply the APE patch and try again.
>
>Attaching the screenshot for the out of memory error.
>
>-- 
>  Ramakrishnan


Re: [9fans] hg and golang

2014-03-25 Thread Jeff Sickel
Ramakrishnan,

Let me know if you’re still getting mk stage errors.

You should be able to use the latest hg (2.9.1) if you grab the source release 
(http://mercurial.selenic.com/release/mercurial-2.9.1.tar.gz).  Just note that 
the following patch-diff has never been accepted for some reason.

-jas


% hg diff
diff -r ca387377df7a setup.py
--- a/setup.py  Wed Jan 01 21:46:03 2014 -0600
+++ b/setup.py  Thu Jan 02 19:47:36 2014 -0600
@@ -129,7 +129,7 @@
py2exeloaded = False

def runcmd(cmd, env):
-if sys.platform == 'plan9':
+if sys.platform == 'plan9' and (sys.version_info[0] == 2 and 
sys.version_info[1] < 7):
# subprocess kludge to work around issues in half-baked Python
# ports, notably bichued/python:
_, out, err = os.popen3(cmd)




Re: [9fans] hg and golang

2014-03-25 Thread David du Colombier
> I searched and didn't find a canonical way to install mercurial and
> golang on plan9. Can someone point to me some instructions? I see from
> the golang build dashboard[1] that golang on plan9 is reasonably
> healthy.

As Skip said, Python 2.7.6 and Mercurial 2.8.2 are available
as a binary package on http://www.9legacy.org/download.html.

If you want to compile from sources, you will need to
get the APE changes from Jeff Sickel. If you are running
Plan 9 from Bell Labs, you can apply the following patch:

http://www.9legacy.org/9legacy/patch/ape-jas.diff

Here is an excerpt from my notes to compile Python on Plan 9:

# clone the repositories from Unix

hg clone -r 2.8.2 http://selenic.com/hg
hg clone -b 2.7-plan9 https://bitbucket.org/jas/cpython

# copy the directories to Plan 9

mkdir /sys/src/cmd/cpython
dircp /mnt/term/home/djc/tmp/cpython /sys/src/cmd/cpython

mkdir /sys/src/cmd/hg
dircp /mnt/term/home/djc/tmp/hg /sys/src/cmd/hg

# get the ape changes from Jeff Sickel

hget http://www.9legacy.org/9legacy/patch/ape-jas.diff | ape/patch -p0

# build ape

cd /sys/src/ape && mk nuke && mk install && mk clean

# build python

cd /sys/src/cmd/cpython
mk stage
mk install

# archive

disk/mkfs -a -s dist /sys/lib/sysconfig/proto/allproto > /tmp/cpython.mkfs

# extract

disk/mkext -d / < /tmp/cpython.mkfs

-- 
David du Colombier



Re: [9fans] hg and golang

2014-03-25 Thread erik quanstrom
> Thank you Erik.
> 
> I got an out of physical memory at this point, while in the middle of
> the build. I will try increasing the memory (I am running on a
> virtualbox instance)

that's kind of odd.  how much memory are you using, and can you send a 
screenshot?

- erik



Re: [9fans] hg and golang

2014-03-25 Thread Ramakrishnan Muthukrishnan
On Tue, Mar 25, 2014 at 11:32 PM, erik quanstrom  wrote:
>> Number of plan9 installations at my tiny bedroom in a corner in India,
>> went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
>> installation on virtualbox that I wanted to mess with, as a cpu
>> system.
>
> hopefully i've got this correct.  rc history to the rescue
> python may or may not work on the standard distribution.  there are some
> ape patches that have not gone in yet.
>
> cd /sys/src
> hget https://bitbucket.org/jas/cpython/get/2.7-plan9.tar.bz2 
> |bunzip2|tar xv
> hget http://selenic.com/hg/archive/b96cb15ec9e0.tar.bz2 |bunzip2|tar 
> xv
> rm -f @LongLink
> mv jas-cpython-cea9c7fcee30 cpython # details may vary
> mv Mercurial-b96cb15ec9e0 hg# details may vary
> cd cpython
> mk

Thank you Erik.

I got an out of physical memory at this point, while in the middle of
the build. I will try increasing the memory (I am running on a
virtualbox instance)

> mk stage
> mk install
>
> python has some odd troubles with its mkfile, so you might need to mk stage
> more than once.
>
> - erik
>



-- 
  Ramakrishnan



Re: [9fans] hg and golang

2014-03-25 Thread Skip Tavakkolian
hg and python you need are on sources.
% 9fs sources
% cd /n/sources/contrib/jas

there is a compiled version here:
http://www.9legacy.org/download.html

after that 'hg clone' the sources for Go, etc.



On Tue, Mar 25, 2014 at 10:55 AM, Ramakrishnan Muthukrishnan <
vu3...@gmail.com> wrote:

> Hello 9fans and plan9 hackers,
>
> Number of plan9 installations at my tiny bedroom in a corner in India,
> went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
> installation on virtualbox that I wanted to mess with, as a cpu
> system.
>
> I searched and didn't find a canonical way to install mercurial and
> golang on plan9. Can someone point to me some instructions? I see from
> the golang build dashboard[1] that golang on plan9 is reasonably
> healthy.
>
> [1] http://build.golang.org/
> PS: This list is great. Digging up the archives has given me access to
> bottomless pit of knowledge and wisdom! Thanks.
> --
>   Ramakrishnan
>
>


Re: [9fans] hg and golang

2014-03-25 Thread erik quanstrom
> Number of plan9 installations at my tiny bedroom in a corner in India,
> went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
> installation on virtualbox that I wanted to mess with, as a cpu
> system.

hopefully i've got this correct.  rc history to the rescue
python may or may not work on the standard distribution.  there are some
ape patches that have not gone in yet.

cd /sys/src
hget https://bitbucket.org/jas/cpython/get/2.7-plan9.tar.bz2 
|bunzip2|tar xv
hget http://selenic.com/hg/archive/b96cb15ec9e0.tar.bz2 |bunzip2|tar xv
rm -f @LongLink
mv jas-cpython-cea9c7fcee30 cpython # details may vary
mv Mercurial-b96cb15ec9e0 hg# details may vary
cd cpython
mk
mk stage
mk install

python has some odd troubles with its mkfile, so you might need to mk stage
more than once.

- erik



[9fans] hg and golang

2014-03-25 Thread Ramakrishnan Muthukrishnan
Hello 9fans and plan9 hackers,

Number of plan9 installations at my tiny bedroom in a corner in India,
went up from 1 to 2, 1st being a raspberry pi and now, a 9atom
installation on virtualbox that I wanted to mess with, as a cpu
system.

I searched and didn't find a canonical way to install mercurial and
golang on plan9. Can someone point to me some instructions? I see from
the golang build dashboard[1] that golang on plan9 is reasonably
healthy.

[1] http://build.golang.org/
PS: This list is great. Digging up the archives has given me access to
bottomless pit of knowledge and wisdom! Thanks.
-- 
  Ramakrishnan