[MacPorts] #15435: Mysql5 is not support readline
#15435: Mysql5 is not support readline -------------------------------+-------------------------------------------- Reporter: naoya.n@gmail.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Low | Milestone: MacPorts 1.6.1 Component: ports | Version: 1.6.0 Keywords: | -------------------------------+-------------------------------------------- Mysql5 is not support readline. I found below the patch. This patch is added variant readline. --- /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile.orig 2008-05-05 13:56:36.000000000 +0900 +++ /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile 2008-05-26 15:53:07.000000000 +0900 @@ -68,6 +68,12 @@ startupitem.stop "${prefix}/share/${mysql}/mysql/mysql.server stop" } +variant readline { + # enable readline + depends_lib-append port:readline + configure.args-append --with-readline +} + pre-destroot { # Some directories we must have in all cases xinstall -m 755 -d ${destroot}${sysconfdir} -- Ticket URL: <http://trac.macports.org/ticket/15435> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support --------------------------------+------------------------------------------- Reporter: naoya.n@gmail.com | Owner: ryandesign@macports.org Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------+------------------------------------------- Changes (by ryandesign@macports.org): * status: new => assigned * cc: ryandesign@macports.org (removed) * cc: jwa@macports.org (added) * summary: Mysql5 is not support readline => mysql5 readline support * milestone: MacPorts 1.6.1 => Port Enhancements * owner: macports-tickets@lists.macosforge.org => ryandesign@macports.org * type: defect => enhancement Comment: readline functionality is probably useful enough to enable always, not in a variant. I'll look into this. -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support --------------------------------+------------------------------------------- Reporter: naoya.n@gmail.com | Owner: ryandesign@macports.org Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------+------------------------------------------- Comment (by ryandesign@macports.org): After a little investigation ("`./configure --help`"), it looks to me as though "`--with-readline`" is the default, for mysql3, mysql4 and mysql5, and means "use the readline library included with MySQL". Alternately, you can use "`--without-readline`" which means "don't use the included readline but use the system readline" which in our case would mean "use the MacPorts readline". We could do that, but would that provide any advantage? I'm also curious how you arrived at the conclusion that "Mysql5 is not support readline" and whether the `+readline` variant you supplied actually does anything. -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support --------------------------------+------------------------------------------- Reporter: naoya.n@gmail.com | Owner: ryandesign@macports.org Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: --------------------------------+------------------------------------------- Comment (by ryandesign@macports.org): Dave Feldman sent me this reply via email:
In fact, I did experience problems with mysql5 installed from macports. While emacs keybindings appeared to work fine, vi keybindings did not work at all despite being enabled in my .inputrc. When I modified my Portfile to add --with-readline and reinstalled mysql5, vi keybindings worked perfectly fine.
-- Ticket URL: <http://trac.macports.org/ticket/15435#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support -----------------------------------+---------------------------------------- Reporter: naoya.n@gmail.com | Owner: ryandesign@macports.org Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: mysql5, mysql5-devel | -----------------------------------+---------------------------------------- Changes (by ryandesign@macports.org): * port: => mysql5, mysql5-devel Old description:
Mysql5 is not support readline.
I found below the patch. This patch is added variant readline.
--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile.orig 2008-05-05 13:56:36.000000000 +0900 +++ /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile 2008-05-26 15:53:07.000000000 +0900 @@ -68,6 +68,12 @@ startupitem.stop "${prefix}/share/${mysql}/mysql/mysql.server stop" }
+variant readline { + # enable readline + depends_lib-append port:readline + configure.args-append --with-readline +} + pre-destroot { # Some directories we must have in all cases xinstall -m 755 -d ${destroot}${sysconfdir}
New description: Mysql5 is not support readline. I found below the patch. This patch is added variant readline. {{{ --- /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile.orig 2008-05-05 13:56:36.000000000 +0900 +++ /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile 2008-05-26 15:53:07.000000000 +0900 @@ -68,6 +68,12 @@ startupitem.stop "${prefix}/share/${mysql}/mysql/mysql.server stop" } +variant readline { + # enable readline + depends_lib-append port:readline + configure.args-append --with-readline +} + pre-destroot { # Some directories we must have in all cases xinstall -m 755 -d ${destroot}${sysconfdir} }}} -- -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support -------------------------------+-------------------------------------------- Reporter: naoya.n@… | Owner: ryandesign@… Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Keywords: | Port: mysql5, mysql5-devel -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: naoya.n@… (added) Comment: Has duplicate #19030, in which the reporter states that adding --with''out''-readline (i.e. without the built-in readline but with the system's (i.e. MacPorts') readline) made readline work, as I had [comment:2 supposed above]. -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support -------------------------------+-------------------------------------------- Reporter: naoya.n@… | Owner: ryandesign@… Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Keywords: | Port: mysql5, mysql5-devel -------------------------------+-------------------------------------------- Comment(by naoya.n@…): I'm sorry for post duplicate ticket and thank you for your comment. My previous patch is adding variants, but I think that adding --without- readline configuration option is good way. regards -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support -------------------------------+-------------------------------------------- Reporter: naoya.n@… | Owner: ryandesign@… Type: enhancement | Status: assigned Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Keywords: | Port: mysql5, mysql5-devel -------------------------------+-------------------------------------------- Comment(by ryandesign@…): Oh, I didn't even realize you were the same person reporting both issues. Well it's easy to forget after 10 months. My apologies for letting this ticket sit so long. I think the reason is that I don't know how to use readline, so I don't know how to verify that the fix works. -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15435: mysql5 readline support -----------------------------------+---------------------------------------- Reporter: naoya.n@… | Owner: ryandesign@… Type: enhancement | Status: closed Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: mysql5, mysql5-devel | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: Should be fixed in r48916. I was at least able to verify that MySQL's parts were not linked with the readline libraries before the change, and now they are. -- Ticket URL: <http://trac.macports.org/ticket/15435#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts