https://bugzilla.novell.com/show_bug.cgi?id=685655 https://bugzilla.novell.com/show_bug.cgi?id=685655#c0 Summary: Two different programs factor get installed. /usr/bin/factor and /usr/games/factor Classification: openSUSE Product: openSUSE 11.5 Version: Factory Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Enhancement Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: h.eisewurgl@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.18) Gecko/20110320 SUSE/2.0.13-0.2.1 SeaMonkey/2.0.13 I was wondering why I had two programs 'factor' installed. One ist located in /usr/bin/factor and the other in /usr/games/factor. /usr/games/factor comes with the package bsd-games which I added for whatever reason. There is a big difference between these two. The default (in the meaning of: the order of the directories in the PATH variable) /usr/bin/factor is much slower and is restricted to 64 bit numbers, but on the other side it supports the options --help and --version. The second one, /usr/games/factor, is often lightyears faster and can factorize even numbers with at least 160 decimal digits, I expect even more. I am wondering why there are two programs with the same name and the same functionality. Reproducible: Always Steps to Reproduce: Example of the max. size of the argument $ /usr/bin/factor 4951760154835678088235319297 factor: `4951760154835678088235319297' is too large $ /usr/games/factor 4951760154835678088235319297 4951760154835678088235319297: 2147483647 2305843009213693951 Example for the time it needs to factorize $ time /usr/bin/factor 140737211531309 140737211531309: 8388593 16777213 real 0m0.049s user 0m0.048s sys 0m0.000s $ time /usr/games/factor 140737211531309 140737211531309: 16777213 8388593 real 0m0.009s user 0m0.008s sys 0m0.000s What about writing a small wrapper script which checks if /usr/games/factor is present and use this one instead of the /usr/bin/factor. I do not expect breaking the installation or any running system and if one installes the package bsd-games the faster version is used. Something like this: * rename the file /usr/bin/factor to /usr/bin/factor.bin * add a wrapper script #!/bin/sh [ -x /usr/bin/factor.bin ] && exec /usr/bin/factor.bin $@ exec /usr/games/factor $@ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.