Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649724 - mysql-multilib-r1: prefix environment, pkg_config failure: mysqld: Too many arguments
Summary: mysql-multilib-r1: prefix environment, pkg_config failure: mysqld: Too many a...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-03-06 09:45 UTC by Xiami
Modified: 2019-04-09 14:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,6.45 KB, text/plain)
2018-03-06 09:45 UTC, Xiami
Details
mysql-multilib-r1.patch (mysql-multilib-r1.patch,1.01 KB, patch)
2018-03-06 09:46 UTC, Xiami
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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