From nobody@FreeBSD.org  Sun Aug 21 23:40:55 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 460E9106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Aug 2011 23:40:55 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 35D418FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Aug 2011 23:40:55 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7LNetQa062388
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 21 Aug 2011 23:40:55 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p7LNes7V062387;
	Sun, 21 Aug 2011 23:40:54 GMT
	(envelope-from nobody)
Message-Id: <201108212340.p7LNes7V062387@red.freebsd.org>
Date: Sun, 21 Aug 2011 23:40:54 GMT
From: Dean Matzkov <bapabooiee@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/bzr-git does not work with devel/dulwich-0.8.0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: c-s@c-s.li

>Number:         159980
>Category:       ports
>Synopsis:       devel/bzr-git does not work with devel/dulwich-0.8.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 21 23:50:03 UTC 2011
>Closed-Date:    Wed Aug 24 13:27:52 EDT 2011
>Last-Modified:  Wed Aug 24 13:27:52 EDT 2011
>Originator:     Dean Matzkov
>Release:        8.2-RELEASE
>Organization:
>Environment:
>Description:
devel/bzr-git doesn't work with devel/dulwich-0.8.0, erroring-out like so:


----SNIP----

bzr: ERROR: exceptions.ImportError: cannot import name ThinPackData

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/git/commands.py", line 74, in run
    source_repo = Repository.open(src_location)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/repository.py", line 618, in open
    control = bzrdir.BzrDir.open(base)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 828, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 858, in open_from_transport
    redirected)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/lazy_import.py", line 129, in __call__
    return obj(*args, **kwargs)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/transport/__init__.py", line 1690, in do_catching_redirections
    return action(transport)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 845, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/controldir.py", line 749, in find_format
    return prober.probe_transport(transport)
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/git/__init__.py", line 138, in probe_transport
    from bzrlib.plugins.git.transportgit import TransportRepo
  File "/usr/local/lib/python2.6/site-packages/bzrlib/plugins/git/transportgit.py", line 32, in <module>
    from dulwich.pack import (
ImportError: cannot import name ThinPackData

bzr 2.4.0 on python 2.6.7 (FreeBSD-8.2-RELEASE-i386-32bit-ELF)
arguments: ['/usr/local/bin/bzr', 'git-import', '/tmp/gitrepo']
plugins: bash_completion[2.4.0], changelog_merge[2.4.0], git[0.6.1],
    launchpad[2.4.0], netrc_credential_store[2.4.0], news_merge[2.4.0],
    weave_fmt[2.4.0]
encoding: 'US-ASCII', fsenc: 'US-ASCII', lang: None

----SNIP----


Downgrading devel/dulwich to v0.7.1 no longer results in bzr-git exhibiting this problem, and allows the command to execute successfully.
>How-To-Repeat:
# cd /usr/ports/devel/bzr-git ; make install
$ mkdir /tmp/testrepo ; cd /tmp/testrepo
$ bzr init
$ bzr git-import /path/to/git/repo.git
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Aug 21 23:50:14 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159980 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: c-s@c-s.li
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/159980: devel/bzr-git does not work with devel/dulwich-0.8.0
Date: Sun, 21 Aug 2011 23:50:12 UT

 Maintainer of devel/bzr-git,
 
 Please note that PR ports/159980 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/159980
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: C-S <c-s@c-s.li>
To: bug-followup@FreeBSD.org, bapabooiee@gmail.com
Cc: glarkin@freebsd.org
Subject: Re: ports/159980: devel/bzr-git does not work with
 devel/dulwich-0.8.0
Date: Mon, 22 Aug 2011 10:41:19 +0200

 You encounter this bug because the current version of bzr-git in the
 ports tree, version 0.6.1, does not work with dulwich 0.8. I have
 already posted a patch to update the port of bzr-git to the version
 0.6.2. Please check it out:
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/159662
 
 I hope to get it to the ports tree as soon as possible.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: glarkin 
State-Changed-When: Wed Aug 24 13:27:00 EDT 2011 
State-Changed-Why:  
Closed, resolved by patch committed in ports/159662 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159980 
>Unformatted:
