Skip to contentSkip to conversation

Python cyclic dependencies

morty Mike Looijmans 2 participants 2 messages Feb 4, 2017 – Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

In the do_rootfs log, I found these messages:

Breaking circular dependency on python-core for libz1. Breaking circular dependency on python-core for python-lang. Breaking circular dependency on python-core for libz1. Breaking circular dependency on python-core for python-lang. Breaking circular dependency on python-core for python-re. Breaking circular dependency on python-core for python-re.

Looking at the Python recipes, the package information for Python seems wrong indeed, in python-2.7-manifest.inc:

RDEPENDS_${PN}-re="${PN}-core"
RDEPENDS_${PN}-lang="${PN}-core"
RDEPENDS_${PN}-core="${PN}-lang ${PN}-re"

And this is what creates that cycle. Either core depends on lang, or vice versa, but not both (or they should simply be one and the same package)

I'd be happy to provide a patch either way...

Signature · 16 lines
Mike Looijmans


Kind regards,

Mike Looijmans
System Expert

TOPIC Products
Materiaalweg 4, NL-5681 RJ Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: [email protected]
Website: www.topicproducts.com

Please consider the environment before printing this e-mail
#1 lore raw
Quoted 9 lines · Mike Looijmans

RDEPENDS_${PN}-re="${PN}-core"
RDEPENDS_${PN}-lang="${PN}-core"
RDEPENDS_${PN}-core="${PN}-lang ${PN}-re"

And this is what creates that cycle. Either core depends on lang, or vice versa, but not both (or they should simply be one and the same package)

I'd be happy to provide a patch either way...

I'd be tempted to say squash them into core, and add RPROVIDES for compatibility. Obviously nobody needs to save the few hundred kb you'd remove by allowing the parts to be installed independently.

Ross