Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890559 - dev-python/sympy-1.11.1: bogus optional dependency on dev-libs/libxml2:2[${PYTHON_USEDEP}]
Summary: dev-python/sympy-1.11.1: bogus optional dependency on dev-libs/libxml2:2[${PY...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Andrey Grozin
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-01-12 00:09 UTC by Alexander Miller
Modified: 2023-02-19 19:46 UTC (History)
4 users (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 Alexander Miller 2023-01-12 00:09:42 UTC
The dependency doesn't make sense since libxml2 has a python USE flag. That has to be added, too, for ${PYTHON_USEDEP} to be effective.

However, it looks like the libxml2 usage has been replaced with lxml a long time ago, see upstream commit 45a4d079652f <https://github.com/sympy/sympy/commit/45a4d079652f58f4bc36466771836bf3d7c7ff73>.

I might be missing something, but I guess the dependency on libxml2 shouldn't be fixed, but be replaced with one on lxml.

BTW, wouldn't optfeature be a better fit for all these flags/dependencies?
Comment 1 cJ 2023-02-18 01:57:38 UTC
Included a commit for this in a not-so-related merge request, but this commit could be cherry-picked earlier.

https://github.com/gentoo/gentoo/pull/29636/commits/1fa32b7f8a231f29221c6f1b0905d94f68c4d81c
Comment 2 Larry the Git Cow gentoo-dev 2023-02-19 19:46:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=267f8e520aadfbe1b7461923fc83bec802bb4f85

commit 267f8e520aadfbe1b7461923fc83bec802bb4f85
Author:     Jérôme Carretero <cJ@zougloub.eu>
AuthorDate: 2023-02-17 14:44:37 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-02-19 19:46:15 +0000

    dev-python/sympy: depend on lxml, not libxml2, for mathml (#890559)
    
    Closes: https://bugs.gentoo.org/890559
    Signed-off-by: Jérôme Carretero <cJ-gentoo@zougloub.eu>
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/sympy/{sympy-1.11.1-r1.ebuild => sympy-1.11.1-r2.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)