Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26622 - [python2-cherrypy] conflicts with python-cherrypy

Attached to Project: Community Packages
Opened by speps (archspeps) - Wednesday, 26 October 2011, 04:11 GMT
Last edited by Thomas Dziedzic (tomd123) - Sunday, 06 November 2011, 19:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Thomas Dziedzic (tomd123)
Kaiting Chen (kaitocracy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Actually is not possible to have python2-cherrypy and python-cherrypy together
for a file present in both packages /usr/bin/cherryd.

Solutions are:
1 . let python2-cherrypy conflict with python-cherrypy
2 . rename /usr/bin/cherryd to /usr/bin/cherryd2
(or /usr/bin/python2-cherryd or else) in python2-cherrypy

I prefer the second choice, cause they could nicely work together.

A simple mv "$pkgdir/usr/bin/cherryd" "$pkgdir/usr/bin/whatelse"
at the end of package_python2-cherrypy() would solve.

Additional info:
* package version(s) python{,2}-cherrypy 3.2.0-3


Steps to reproduce:
sudo pacman -S python2-cherrypy
sudo pacman -S python-cherrypy
resolving dependencies...
looking for inter-conflicts...

Targets (1): python-cherrypy-3.2.0-3 [0.48 MB]

Total Download Size: 0.00 MB
Total Installed Size: 3.90 MB

Proceed with installation? [Y/n] y
(1/1) checking package integrity [##################################] 100%
(1/1) checking for file conflicts [##################################] 100%
error: failed to commit transaction (conflicting files)
python-cherrypy: /usr/bin/cherryd exists in filesystem
Errors occurred, no packages were upgraded.
This task depends upon

Closed by  Thomas Dziedzic (tomd123)
Sunday, 06 November 2011, 19:17 GMT
Reason for closing:  Fixed
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 26 October 2011, 08:21 GMT
What if there are packages that depend on python2-cherrypy that also expect /usr/bin/cherryd to exist?
An alternative would be to add conflicts=('python-cherrypy') to python2-cherrypy (and the other way around).
If there are no packages that has the combination of needing python2-cherrypy and that it must be "/usr/bin/cherryd", just renaming it would be fine, IMO.
Thanks for noticing.

Update: Just noticed that only "calibre" uses python2-cherrypy. I installed calibre and renamed /usr/bin/cherryd to /usr/bin/cherryd2 and so far, calibre seems to be working fine, even when I click "start server" in the settings (I don't know for sure if it uses cherry for that particular function or not, though).
Comment by Giovanni Scafora (giovanni) - Wednesday, 26 October 2011, 08:42 GMT
I'd not rename /usr/bin/cherryd to /usr/bin/cherryd2, because calibre use it for particular function.
So, I'd exclude the "rename solution".
Comment by Jelle van der Waa (jelly) - Wednesday, 26 October 2011, 08:49 GMT
python-cherrypy is not required by any package in the repo. Therefore i would make it conflict or rename python-cherrypy's name.
Comment by Giovanni Scafora (giovanni) - Wednesday, 26 October 2011, 08:51 GMT
I'm fine with the first solution ---> 1 . let python2-cherrypy conflict with python-cherrypy
Comment by Thomas Dziedzic (tomd123) - Wednesday, 26 October 2011, 13:21 GMT
giovanni, how about we rename python2-cherryd and you rename it to that in calibre? I doubt it will be hard.
Comment by Jelle van der Waa (jelly) - Wednesday, 26 October 2011, 13:33 GMT
That would suck , because he has to 'sed' everytime calibre updates and the package isn't vanilla anymore. Would anyone use python2-cherry and python-cherry at the same time? Only if they maybe develop on python3 and use calibre at the same time.
Comment by speps (archspeps) - Wednesday, 26 October 2011, 13:48 GMT
@giovanni, where does /usr/bin/cherryd is called in calibre? I do not see any reference to cherryd in calibre source code.

Also the same python{,2}-cherrypy calls the cherryd daemon from within
/usr/lib/python{2.7,3.2}/site-packages/cherrypy/cherryd and not /usr/bin/cherryd (same file).
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 26 October 2011, 14:16 GMT
I can find no references to /usr/bin/cherryd or even just "cherryd" in any of the source files either.
(I do find references to cherrypy from the .py files, though, but that's another matter).

+1 to renaming /usr/bin/cherryd to /usr/bin/cherryd2 in python2-cherrypy.
Comment by Thomas Dziedzic (tomd123) - Sunday, 06 November 2011, 19:17 GMT
python2-cherrypy was renamed from cherryd to cherryd2 by kaiting, closing

Loading...