Packages that `replace` another circumvent dependency checks on installation
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Reproduce the transaction using the listed sagemath and Cython package versions, then inspect the dependency checks performed during installation and replacement handling. Done means installing python3-Cython is rejected when it would remove the version required by sagemath, while the transaction remains consistent and xbps-pkgdb -a reports no unsatisfied dependency.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
The package python3-Cython0.29 was created to provide a pre-3.0 version of Cython because half the dependants of python3-Cython will not build with 3.0 or later. The packages python3-Cython0.29 and python3-Cython conflict. This is usually not an issue because Cython is generally only a build-time dependency, so a package can hostmakedepend on one or the other as needed.
However, both urh and sagemath have run-time dependencies on python3-Cython0.29 (now; before the update to 3.0, they depended on python3-Cython). To smooth update paths for users, python3-Cython0.29 was marked replaces="python3-Cython>=0" while python3-Cython was marked replaces="python3-Cython0.29>=0" so that installing one will remove the other. Neither package provides the other because Cython 3 introduces breaking changes.
Installing or updating sagemath will cause python3-Cython0.29 to be installed as a dependency. Subsequently installing python3-Cython will succeed (removing python3-Cython0.29 in the process), although sagemath will now be broken because it is missing python3-Cython0.29
Steps to reproduce:
- [Optional] Install
sagemath<=10.1_1, which depends onpython3-Cython. Both packages are installed. - Install (or update to)
sagemath>=10.1_2, which depends onpython3-Cython0.29. Both packages will be installed, removing an existingpython3-Cythonpackage if previously installed. - Try removing
python3-Cython0.29:python3-Cython0.29-0.29.36_2 in transaction breaks installed pkg `sagemath-10.1_2' Transaction aborted due to unresolved dependencies. - Install
python3-Cython>=3.0.2_1. This will succeed, removingpython3-Cython0.29. - Running
xbps-pkgdb -areports an unsatisfied dependency forsagemath:ERROR: sagemath: dependency not satisfied: python3-Cython0.29>=0 - Updating (or force-reinstalling)
sagemathwill installpython3-Cython0.29and removepython3-Cython.
Expected behavior:
Step 4 should detect the unresolved dependency in the transaction, preventing the installation of python3-Cython.
- Langage dominant
- C
- Étoiles
- 1.2k
- Forks
- 156
- Merge moyen
- 1 h 39 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de void-linux/xbps
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
void-linux/xbps#475 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
void-linux/xbps#701 ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
void-linux/xbps#700 ·
-
xbps-query -RX repository overridesPeut-être pris @naevui l’a pris il y a 57 jours. Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
void-linux/xbps#696 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 52/100
void-linux/xbps#695 · 7 commentaires ·
Toutes les issues de void-linux/xbps
Issues similaires
-
bug core p3
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
RunanywhereAI/runanywhere-sdks#1258 ·
Les mainteneurs répondent en général sous 1 jour
-
Plugin mapper: latency_samples is 0 for eight UAD 11.8.3 plug-ins that delay by 55-56 samplesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
rolotrealanis98/open-apollo#126 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
cython/cython#8110 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
onehumanbeing/esp32-iphone-agent#62 ·
Les mainteneurs répondent en général sous 1 jour
-
ai-driven-fuzzing bug claude Minor
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
linagora/open-bastion#425 ·
Les mainteneurs répondent en général sous 1 jour