Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571508 - dev-db/mysql-init-scripts calls portageq incorrectly - /etc/init.d/mysql: line 76: [: too many arguments
Summary: dev-db/mysql-init-scripts calls portageq incorrectly - /etc/init.d/mysql: lin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-10 20:15 UTC by James Broadhead
Modified: 2016-07-20 16:23 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Broadhead 2016-01-10 20:15:35 UTC
* Checking mysqld configuration for mysql ...                                           [ ok ]
 * Starting mysql ...
/etc/init.d/mysql: line 76: [: too many arguments
 * You don't appear to have the mysql database installed yet.
 * Please run `emerge --config =ERROR: expected 2 parameters, got 3!` to have this done...
 * ERROR: mysql failed to start


Reproducible: Always
Comment 1 Brian Evans (RETIRED) gentoo-dev 2016-01-10 22:27:05 UTC
Works here.

Calls are `portageq envvar EROOT` and
`portageq match / $(portageq expand_virtual / virtual/mysql)`
where / is EROOT
Comment 2 Brian Evans (RETIRED) gentoo-dev 2016-05-19 18:37:31 UTC
Please provide some details to reproduce.

particularly the output of 
EROOT=$(portageq envvar EROOT) portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql)

and portageq envvar EROOT


If additional information is not updated in a timely fashion, this bug will be closed as WORKSFORME.
Comment 3 James Broadhead 2016-05-22 21:38:08 UTC
$ portageq envvar EROOT
/
jbo@iskander ~ 0
$ portageq match / $(portageq expand_virtual / virtual/mysql)
ERROR: expected 2 parameters, got 3!
jbo@iskander ~ 2
$ EROOT=$(portageq envvar EROOT) portageq match ${EROOT} $(portageq expand_virtual ${EROOT} virtual/mysql)
Not a directory: 'virtual/mysql'
Run portageq with --help for info
ERROR: expected 2 parameters, got 0!
jbo@iskander ~ 2
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-20 15:39:11 UTC
$ echo $(portageq match / $(portageq expand_virtual / virtual/mysql))
ERROR: expected 2 parameters, got 3!
$ portageq expand_virtual / virtual/mysql
=dev-db/mysql-5.6*[-embedded,-static]
dev-db/mysql:0/18[client-libs(+),abi_x86_32(-),abi_x86_64(-)]
Comment 5 Brian Evans (RETIRED) gentoo-dev 2016-07-20 16:23:49 UTC
Fixed in git;  will mark mysql-init-scripts-2.1 stable in a few days if no one has issues