FS#54475 - [python2-py-bcrypt] py-bcrypt conflicts with python2-bcrypt
Attached to Project:
Community Packages
Opened by Damjan Georgievski (damjan) - Friday, 16 June 2017, 14:02 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 19 March 2018, 05:34 GMT
Opened by Damjan Georgievski (damjan) - Friday, 16 June 2017, 14:02 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 19 March 2018, 05:34 GMT
|
Details
Both python2-py-bcrypt and python2-bcrypt have the same
files in /usr/lib/python2.7/site-packages/bcrypt/ so they
conflict
(also python-py-bcrypt and python-bcrypt). python2-py-bcrypt is required by matrix-synapse python2-bcrypt is required by python2-paramiko and by reference by ansible, duplicity etc. python2-bcrypt has version 3.1.3 and seems actively maintained. pybcrypt is 0.4 and last update has been in 2013. Not sure if the apis are compatible, since I can't find docs about py-bcrypt, curently I force installed the newer bcrypt, and synapse still starts and works (but I suspect it might fail when I change the password - I just don't remember the old password to do it). I have no idea what a proper way to fix this would be - but I do use ansible and synapse on this same computer. |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Monday, 19 March 2018, 05:34 GMT
Reason for closing: Fixed
Additional comments about closing: python-py-bcrypt removed from repos, nearly a year later I assume everyone upgraded even without a replaces.
Monday, 19 March 2018, 05:34 GMT
Reason for closing: Fixed
Additional comments about closing: python-py-bcrypt removed from repos, nearly a year later I assume everyone upgraded even without a replaces.
/usr/bin/hash_password from synapse works with the python2-bcrypt-3.1.3 package installed.
Packages (1) python-py-bcrypt-0.4-2
error: failed to commit transaction (conflicting files)
python-py-bcrypt: /usr/lib/python3.6/site-packages/bcrypt/__init__.py exists in filesystem
python-py-bcrypt: /usr/lib/python3.6/site-packages/bcrypt/__pycache__/__init__.cpython-36.pyc exists in filesystem
/usr/lib/python3.6/site-packages/bcrypt/__init__.py is owned by python-bcrypt 3.1.3-1
/usr/lib/python3.6/site-packages/bcrypt/__pycache__/__init__.cpython-36.pyc is owned by python-bcrypt 3.1.3-1
# pacman -R python2-py-bcrypt
# pacman -Sy matrix-synapse
# pacman -R upgrade-helper
pkgname='synapse-workaround'
pkgver=1
pkgrel=1
arch=('x86_64')
provides=('python2-py-bcrypt=0.4')
package() {
echo "test"
}
Until then, upgrading matrix-synapse isn't just "less intuitive" ... it's broken.