FS#43457 - [ecm] [gmp-ecm] /usr/bin/ecm exists in both 'ecm' and 'gmp-ecm'

Attached to Project: Community Packages
Opened by Claire Farron (clfarron4) - Thursday, 15 January 2015, 14:37 GMT
Last edited by Gaetan Bisson (vesath) - Friday, 16 January 2015, 17:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Gaetan Bisson (vesath)
Antonio Rojas (arojas)
Maxime Gauduin (Alucryd)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: /usr/bin/ecm exists in both 'ecm' and 'gmp-ecm'


Additional info:
ecm 1.03-4
gmp-ecm 6.4.4-1
https://bbs.archlinux.org/viewtopic.php?pid=1493213#p1493213
ecm_gmp-ecm_error.txt (see attached)

Steps to reproduce:
Try install both ecm and gmp-ecm at the same time or install one when the other is already installed.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Friday, 16 January 2015, 17:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  ecm-tools-1.0.3-1 released by Maxime
Comment by Gaetan Bisson (vesath) - Friday, 16 January 2015, 01:45 GMT
gmp-ecm is a well-known implementation of the Elliptic Curve Method (ECM) for factoring integers. It is a dependency of sage-mathematics.

Maxime, I see the ecm package is not used by anything else. Could you remind me what it does?
Comment by Maxime Gauduin (Alucryd) - Friday, 16 January 2015, 08:52 GMT
ECM removes (while UnECM restores) sync, ECC and EDC from CD ISO sectors, which are used for error detection. Since compression algorithms handle them quite poorly and already have error detection mechanisms anyway, the idea is to make ISOs much more compressible. ECM is mainly used for archiving PSX ISOs.

I could rename the package ecm-tools (windows binaries tend to be distributed under that name) if you think sage's ecm should be named just ecm. Not quite sure what to call the binaries though, off the top of my head I'd say bin2ecm and ecm2bin are likely candidates. However unecm is a symlink to ecm; when invoked as unecm, it is equivalent to ecm d, so I'd have to patch that in. What do you think?
Comment by Antonio Rojas (arojas) - Friday, 16 January 2015, 09:35 GMT
Sage would also require patching if the gmp ecm binary is renamed, but nothing too bad (there's just one call that I know of). So I'm fine with whatever you guys decide. If gmp-ecm is renamed, please push it to staging first so I can fix Sage.
Comment by Maxime Gauduin (Alucryd) - Friday, 16 January 2015, 13:55 GMT
I created a fork on GitHub (since ECM's upstream is pretty much dead) named ecm-tools and pushed a package with the same name in [community], replacing ecm. The package now provides bin2ecm and ecm2bin, no more conflict so I'll close the task.

Antonio, can you wait a week or two before renaming gmp-ecm to ecm so that my replaces=('ecm') has time to take effect? Once that delay has passed I'll remove said line and you'll be able to safely rename gmp-ecm to ecm.
Comment by Gaetan Bisson (vesath) - Friday, 16 January 2015, 17:24 GMT
Thanks a lot Maxime!

Just another comment: Please do not rename gmp-ecm into ecm; gmp-ecm is the proper upstream name for that package. The conflict was only between binary names, no need to rename packages too.

Loading...