fix cycle dependency in libxml+python (#13847)
* fix cycle dependency in libxml+python * comment why we need these dependencies
This commit is contained in:
parent
da189b8d1d
commit
bd60e0f137
@ -27,7 +27,8 @@ class Libxml2(AutotoolsPackage):
|
|||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
depends_on('xz')
|
depends_on('xz')
|
||||||
|
|
||||||
depends_on('python+shared', when='+python')
|
# avoid cycle dependency for concretizer
|
||||||
|
depends_on('python+shared~libxml2', when='+python')
|
||||||
extends('python', when='+python',
|
extends('python', when='+python',
|
||||||
ignore=r'(bin.*$)|(include.*$)|(share.*$)|(lib/libxml2.*$)|'
|
ignore=r'(bin.*$)|(include.*$)|(share.*$)|(lib/libxml2.*$)|'
|
||||||
'(lib/xml2.*$)|(lib/cmake.*$)')
|
'(lib/xml2.*$)|(lib/cmake.*$)')
|
||||||
|
@ -70,6 +70,10 @@ class Python(AutotoolsPackage):
|
|||||||
|
|
||||||
extendable = True
|
extendable = True
|
||||||
|
|
||||||
|
# Variants to avoid cyclical dependencies for concretizer
|
||||||
|
variant('libxml2', default=False,
|
||||||
|
description='Use a gettext library build with libxml2')
|
||||||
|
|
||||||
variant(
|
variant(
|
||||||
'debug', default=False,
|
'debug', default=False,
|
||||||
description="debug build with extra checks (this is high overhead)"
|
description="debug build with extra checks (this is high overhead)"
|
||||||
@ -116,7 +120,8 @@ class Python(AutotoolsPackage):
|
|||||||
variant('tix', default=False, description='Build Tix module')
|
variant('tix', default=False, description='Build Tix module')
|
||||||
|
|
||||||
depends_on('pkgconfig@0.9.0:', type='build')
|
depends_on('pkgconfig@0.9.0:', type='build')
|
||||||
depends_on('gettext')
|
depends_on('gettext +libxml2', when='+libxml2')
|
||||||
|
depends_on('gettext ~libxml2', when='~libxml2')
|
||||||
|
|
||||||
# Optional dependencies
|
# Optional dependencies
|
||||||
# See detect_modules() in setup.py for details
|
# See detect_modules() in setup.py for details
|
||||||
|
Loading…
Reference in New Issue
Block a user