'httprepository' object has no attribute 'do_read'

Stephen Bannasch stephen.bannasch at deanbrook.org
Wed Nov 10 22:06:07 PST 2010


At 8:42 PM -0800 11/10/10, David Orriss Jr wrote:
>On Wed, Nov 10, 2010 at 8:29 PM, Stephen Bannasch
><stephen.bannasch at deanbrook.org> wrote:
>> At 7:41 PM -0800 11/10/10, David Orriss Jr wrote:
>>>Hello,
>>>
>>>I'm following the steps to build OpenJDK7.  I'm following the steps here:
>>>
>>>http://wikis.sun.com/display/OpenJDK/Darwin10Build
>>>
>>>However when I get to the step to fetch code:
>>>
>>>$ hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port
>>
>> What version of hg are you using? The forest extension doesn't work with 1.6.x.
>>
>> I'm still using the forest extension with:
>>
>> $ hg --version
>> Mercurial Distributed SCM (version 1.5.4)
>>
>
>Actually.. that was the clue I needed.  I noted that Mercurial 1.7 was
>active in my macports but 1.6.4 was still there and inactive.
>Switching them with the activate command put me back to 1.6.4 and now
>the fclone command works.
>
>Thanks Stephen.

Your welcome.

In case it's useful for anybody I use homebrew (https://github.com/mxcl/homebrew) instead of macports because the recipes are in Ruby.  Here's a custom recipe for hg 1.5.4


$ cat ./Library/Formula/mercurial.rb
require 'formula'

class Mercurial <Formula
  url 'http://mercurial.selenic.com/release/mercurial-1.5.4.tar.gz'
  # url 'http://mercurial.selenic.com/release/mercurial-1.6.tar.gz'
  homepage 'http://mercurial.selenic.com/downloads/'
  md5 'db0d673000463fae1ca5cb8a202315ae'
  # md5 'e97772cb424d29d9382c41daafa6f92d'

  def install
    # Make Mercurial into the Cellar.
    system "make", "PREFIX=#{prefix}", "install"
    # Now we have lib/python2.[56]/site-packages/ with Mercurial
    # libs in them. We want to move these out of site-packages into
    # a self-contained folder. Let's choose libexec.
    libexec.mkpath
    libexec.install Dir["#{lib}/python*/site-packages/*"]

    # Move the hg startup script into libexec too, and link it from bin
    libexec.install bin+'hg'
    ln_s libexec+'hg', bin+'hg'

    # Remove the hard-coded python invocation from hg
    inreplace bin+'hg', %r[#!/.*/python], '#!/usr/bin/env python'

    # We now have a self-contained Mercurial install.
  end
end



More information about the bsd-port-dev mailing list