[MacPorts] #64006: mysql* lacks editline or readline support

MacPorts noreply at macports.org
Fri Nov 19 12:45:24 UTC 2021


#64006: mysql* lacks editline or readline support
-------------------------------------+-------------------------
 Reporter:  laggardkernel            |      Owner:  herbygillot
     Type:  defect                   |     Status:  assigned
 Priority:  Normal                   |  Milestone:
Component:  ports                    |    Version:  2.7.1
 Keywords:  mysql editline readline  |       Port:  mysql8
-------------------------------------+-------------------------
 MySQL supports line editor like editline (libedit) or readline. AFAIK,
 both of them are supported. It seemss editline is chosen by default even
 if the dependency is not declared during build, cause editline error was
 popped up when I connected the server with `mysql -h localhost -u root -p`

 {{{
 ❯ mysql -u root -h localhost -p
 Enter password:
 Welcome to the MySQL monitor.  Commands end with ; or \g.
 Your MySQL connection id is 8
 Server version: 8.0.27 Source distribution

 Copyright (c) 2000, 2021, Oracle and/or its affiliates.

 Oracle is a registered trademark of Oracle Corporation and/or its
 affiliates. Other names may be trademarks of their respective
 owners.

 bind: Invalid command `ed-tty-sigint'.
 bind: Invalid command `ed-tty-sigquit'.
 Type 'help;' or '\h' for help. Type '\c' to clear the current input
 statement.

 mysql root at localhost:(none)>

 }}}

 {{{
 # editline is missing
 ❯ otool -L /opt/local/bin/mysql
 /opt/local/bin/mysql:
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.11)
         /opt/local/lib/libzstd.1.dylib (compatibility version 1.0.0,
 current version 1.5.0)
         /opt/local/libexec/openssl11/lib/libssl.1.1.dylib (compatibility
 version 1.1.0, current version 1.1.0)
         /opt/local/libexec/openssl11/lib/libcrypto.1.1.dylib
 (compatibility version 1.1.0, current version 1.1.0)
         /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /opt/local/lib/libncurses.6.dylib (compatibility version 6.0.0,
 current version 6.0.0)
         /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current
 version 400.9.4)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1252.250.1)
 }}}

 Related settings in my `~/.editrc`

 {{{
 bind "^C" ed-tty-sigint
 bind "^D" ed-tty-sigquit
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64006>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list