Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: dev-python/whoosh fails to compile
Date: Wed, 09 Aug 2017 09:23:01
Message-Id: 4971a381-2936-b45f-f91a-b3ecb5ab4d09@gmail.com
In Reply to: Re: [gentoo-user] Re: dev-python/whoosh fails to compile by John Covici
1 On 09/08/2017 08:35, John Covici wrote:
2 > On Wed, 09 Aug 2017 00:06:08 -0400,
3 > Ian Zimmerman wrote:
4 >>
5 >> On 2017-07-29 11:23, Alan McKinnon wrote:
6 >>
7 >>> On 29/07/2017 10:51, John Covici wrote:
8 >>>> Hi. In my latest world update, portage wants to include this new
9 >>>> package dev-python/whoosh. The package fails to compile and googling
10 >>>> and searching bgo yields nothing.
11 >>>>
12 >>>> Any assistance would be appreciated.
13 >>>
14 >>> [snip]
15 >>>
16 >>>> pkg_resources.DistributionNotFound: The 'sphinxcontrib-websupport' distribution was not found and is required by Sphinx
17 >>>
18 >>> [snip]
19 >>>
20 >>>> * The specific snippet of code:
21 >>>> * sphinx-build -b html -c docs/source/ docs/source/ docs/source/build/html || die;
22 >>>
23 >>> File a bug at bgo
24 >>
25 >> What was the conclusion of this? After syncing my portage wants to
26 >> build this too (the same exact version), and I'm afraid to let it
27 >> proceed lest I land in a mess.
28 >>
29 >> I couldn't find any relevant filed bug, either.
30 >
31 > I have not had a chance to file a bug, but I got it working by doing
32 > the following:
33 > whoosh was looking for
34 > raise DistributionNotFound(req, requirers)
35 > pkg_resources.DistributionNotFound: The 'sphinxcontrib-websupport'
36 > distribution was not found and is required by Sphinx
37 > So, I emerged that, but I had to use --nodeps because it wanted
38 > whoosh first, and after doing that I was able to emerge whoosh. Very
39 > nuts.
40
41 Not nuts at all, looks like a simple circular dependency:
42 whoosh needs sphinxcontrib-websupport (via sphinx) to build, but
43 sphinxcontrib-websupport is declared to depend on whoosh. Circular.
44
45 This ebuild bug probably crept in as everyone so far who installed
46 sphinx already had a functioning whoosh. All those packages are in
47 stable, so this will hit everyone who now needs whoosh added for the
48 first time.
49
50 The package maintainer needs to have the info you can give him, so a bug
51 at b.g.o. is indeed called for.
52
53 These circular dep bugs are tricky to find because installing everything
54 from scratch again and in different order usually doesn't get tested.
55
56
57 --
58 Alan McKinnon
59 alan.mckinnon@×××××.com