mysql-sandbox binary name conflicts

Asked by Jeffrey Ness

Greetings,

While working to get mysql-sandbox published to EPEL (Extra Packages for Enterprise Linux) I was informed one of your binaries conflicts with an existing packages software:

   https://bugzilla.redhat.com/show_bug.cgi?id=687942

lrzsz installs a binary named 'sb' to /usr/bin the same as your software:

# rpm -Uhv mysql-sandbox-3.0.17-3.el5.noarch.rpm
Preparing... ########################################### [100%]
        file /usr/bin/sb from install of mysql-sandbox-3.0.17-3.el5.noarch
conflicts with file from package lrzsz-0.12.20-22.1.x86_64
------

You can see below the binaries are completely different:

[root@208934-el5-64 ~]# sb
sb: need at least one file to send
Try `sb --help' for more information.
[root@208934-el5-64 ~]# sb --help
sb version 0.12.20
Usage: sb [options] file ...
 or: sb [options] -{c|i} COMMAND
Send file(s) with ZMODEM/YMODEM/XMODEM protocol
  (X) = option applies to XMODEM only
  (Y) = option applies to YMODEM only
  (Z) = option applies to ZMODEM only
-+, --append append to existing destination file (Z)
-2, --twostop use 2 stop bits
-4, --try-4k go up to 4K blocksize
    --start-4k start with 4K blocksize (doesn't try 8)
-8, --try-8k go up to 8K blocksize
    --start-8k start with 8K blocksize
-a, --ascii ASCII transfer (change CR/LF to LF)
-b, --binary binary transfer
-B, --bufsize N buffer N bytes (N==auto: buffer whole file)
-c, --command COMMAND execute remote command COMMAND (Z)
-C, --command-tries N try N times to execute a command (Z)
-d, --dot-to-slash change '.' to '/' in pathnames (Y/Z)
    --delay-startup N sleep N seconds before doing anything
-e, --escape escape all control characters (Z)
-E, --rename force receiver to rename files it already has
-f, --full-path send full pathname (Y/Z)
-i, --immediate-command CMD send remote CMD, return immediately (Z)
-h, --help print this usage message
-k, --1k send 1024 byte packets (X)
-L, --packetlen N limit subpacket length to N bytes (Z)
-l, --framelen N limit frame length to N bytes (l>=L) (Z)
-m, --min-bps N stop transmission if BPS below N
-M, --min-bps-time N for at least N seconds (default: 120)
-n, --newer send file if source newer (Z)
-N, --newer-or-longer send file if source newer or longer (Z)
-o, --16-bit-crc use 16 bit CRC instead of 32 bit CRC (Z)
-O, --disable-timeouts disable timeout code, wait forever
-p, --protect protect existing destination file (Z)
-r, --resume resume interrupted file transfer (Z)
-R, --restricted restricted, more secure mode
-q, --quiet quiet (no progress reports)
-s, --stop-at {HH:MM|+N} stop transmission at HH:MM or in N seconds
    --tcp build a TCP connection to transmit files
    --tcp-server open socket, wait for connection
-u, --unlink unlink file after transmission
-U, --unrestrict turn off restricted mode (if allowed to)
-v, --verbose be verbose, provide debugging information
-w, --windowsize N Window is N bytes (Z)
-X, --xmodem use XMODEM protocol
-y, --overwrite overwrite existing files
-Y, --overwrite-or-skip overwrite existing files, else skip
    --ymodem use YMODEM protocol
-Z, --zmodem use ZMODEM protocol

 === after removing lrzsz and installing mysql-sandbox ===

[root@208934-el5-64 ~]# rpm -e lrzsz
[root@208934-el5-64 ~]# rpm -Uvh mysql-sandbox-3.0.17-3.noarch.rpm
Preparing... ########################################### [100%]
 1:mysql-sandbox ########################################### [100%]

[root@208934-el5-64 ~]# sb --help
MySQL Sandbox should not run as root

If you know what you are doing and want to
run as root nonetheless, please set the environment
variable 'SANDBOX_AS_ROOT' to a nonzero value

----

What I need to see is if you would consider renaming your binary from 'sb' to 'mysql-sb' (or something else of your choice).

Thanks

Question information

Language:
English Edit question
Status:
Expired
For:
MySQL Sandbox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jeffrey Ness (jeffrey-ness) said :
#2

Still awaiting a answer.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
MikeG (mikegriffin) said :
#4

This also affects Ubuntu:

root@mg-ubuntu:~# dpkg -L lrzsz
/.
/usr
/usr/bin
/usr/bin/rz
/usr/bin/sz
/usr/bin/sb
/usr/bin/sx
/usr/bin/rb
/usr/bin/rx

<SNIP>

root@mg-ubuntu:~# which sb
/usr/local/bin/sb
root@mg-ubuntu:~# ls -la /usr/local/bin/
total 228
drwxr-xr-x 2 root root 4096 Sep 27 23:05 .
drwxr-xr-x 10 root root 4096 May 1 2012 ..
-r-xr-xr-x 1 root root 4684 Sep 27 23:05 deploy_to_remote_sandboxes.sh
-r-xr-xr-x 1 root root 31077 Sep 27 23:05 low_level_make_sandbox
-r-xr-xr-x 1 root root 8804 Sep 27 23:05 make_multiple_custom_sandbox
-r-xr-xr-x 1 root root 13442 Sep 27 23:05 make_multiple_sandbox
-r-xr-xr-x 1 root root 19842 Sep 27 23:05 make_replication_sandbox
-r-xr-xr-x 1 root root 10489 Sep 27 23:05 make_sandbox
-r-xr-xr-x 1 root root 5030 Sep 27 23:05 make_sandbox_from_installed
-r-xr-xr-x 1 root root 7483 Sep 27 23:05 make_sandbox_from_source
-r-xr-xr-x 1 root root 2968 Sep 27 23:05 msandbox
-r-xr-xr-x 1 root root 6645 Sep 27 23:05 sb
-r-xr-xr-x 1 root root 42436 Sep 27 23:05 sbtool
-r-xr-xr-x 1 root root 46270 Sep 27 23:05 test_sandbox

Any chance you can rename the 'sb' to something not conflicting, which allows the software to get in to popular distros without using CPAN and risking breakage of perl due to the fact that modules are otherwise managed by the native package manager?

Revision history for this message
Giuseppe Maxia (giuseppe-maxia) said :
#5

Sorry for the late update. I thought I had fixed this issue long time ago, but it turns out I hadn't.

I have fixed it now, in revision 69. (MySQL::Sandbox 3.0.41)

Cheers

Giuseppe