Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283882 - dev-util/mercurial requires python with USE=threads at runtime
Summary: dev-util/mercurial requires python with USE=threads at runtime
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-06 21:57 UTC by Henning Schild
Modified: 2009-09-17 08:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Schild 2009-09-06 21:57:55 UTC
Mercurial can not be used when python is build without thread support.

Reproducible: Always

Steps to Reproduce:
1.USE="-threads" emerge -av1 dev-lang/python
2.emerge -av dev-util/mercurial
3.mkdir /tmp/foo
4.cd /tmp/foo
5.hg init
6.hg clone /tmp/foo/ /tmp/foo_clone
7.touch foo_file
8.hg add foo_file

Actual Results:  
on clone/add (6/8) hg fails with "abort: could not import module thread!"

Expected Results:  
step 2 should fail when python was not build with USE="threads"
Comment 1 Wormo (RETIRED) gentoo-dev 2009-09-11 07:11:58 UTC
Thanks for reporting this missing dependency, assigning to maintainer
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-16 12:00:25 UTC
I think this should fix it. Hoping to commit it soon.

--- /usr/portage/dev-util/mercurial/mercurial-1.3.1.ebuild      2009-07-25 12:02:01.000000000 +0200
+++ mercurial-1.3.1.ebuild      2009-09-16 13:54:40.000000000 +0200
@@ -2,6 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/mercurial-1.3.1.ebuild,v 1.1 2009/07/25 10:02:01 nelchael Exp $

+EAPI=2
+
 inherit bash-completion elisp-common flag-o-matic eutils distutils

 DESCRIPTION="Scalable distributed SCM"
@@ -13,7 +15,7 @@
 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
 IUSE="bugzilla emacs gpg test tk zsh-completion"

-CDEPEND=">=dev-lang/python-2.4"
+CDEPEND=">=dev-lang/python-2.4[threads]"
 RDEPEND="${CDEPEND}
        bugzilla? ( dev-python/mysql-python )
        gpg? ( app-crypt/gnupg )
Comment 3 Dirkjan Ochtman (RETIRED) gentoo-dev 2009-09-17 08:59:37 UTC
/var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v  <--  ChangeLog
new revision: 1.105; previous revision: 1.104
/var/cvsroot/gentoo-x86/dev-util/mercurial/mercurial-1.3.1-r1.ebuild,v  <--  mercurial-1.3.1-r1.ebuild
initial revision: 1.1