Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 649724

Summary: mysql-multilib-r1: prefix environment, pkg_config failure: mysqld: Too many arguments
Product: Gentoo Linux Reporter: Xiami <i>
Component: EclassesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED OBSOLETE    
Severity: normal CC: grknight, jmbsvicetto, robbat2
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
mysql-multilib-r1.patch

Description Xiami 2018-03-06 09:45:09 UTC
Created attachment 522502 [details]
build.log

On prefix system, eclass will add '--defaults-file=${MY_SYSCONFDIR}/my.cnf' for mysqld. But the single quote preserves as part of argument passed to mysqld, causing an error:

/home/xiami/gentoo//usr/sbin/mysqld: Too many arguments (first extra is ''--defaults-file=/home/xiami/gentoo/etc/mysql/my.cnf'').

To fix this, either remove single quote or run mysqld under *eval* environment (preferred?) would be ok. Both patches uploaded into a single attachment.

Don't know which product I should submit to (both eclass and prefix). Sorry if I sent to wrong place.
Comment 1 Xiami 2018-03-06 09:46:00 UTC
Created attachment 522504 [details, diff]
mysql-multilib-r1.patch
Comment 2 Xiami 2018-03-06 09:51:23 UTC
On line 938:
su -s /bin/sh -c "${cmd[*]}" mysql >"${TMPDIR}"/mysql_install_db.log 2>&1

Therefore I take the same "eval" method.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2019-04-09 14:44:28 UTC
Eclass removed