Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942287 - dev-db/mariadb-connector-c: src_test() hangs (because of `mysqladmin ping` failing)
Summary: dev-db/mariadb-connector-c: src_test() hangs (because of `mysqladmin ping` fa...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 941482
  Show dependency tree
 
Reported: 2024-10-26 13:30 UTC by Michał Górny
Modified: 2024-10-27 12:34 UTC (History)
1 user (show)

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


Attachments
build.log (cut out the repeating message) (build.log,198.65 KB, text/plain)
2024-10-26 13:34 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-26 13:30:41 UTC
src_test() contains:

	while ! mysqladmin ping --socket="${T}/mysql/mysql.sock" --silent ; do
		sleep 1
	done

However, it does not define any limiting conditions, so if `mysqladmin ping` keeps failing, the test phase hangs forever.


In this case, mysqladmin fails because of:

^Gmysqladmin: Can't read dir of '/etc/mysql/mysql.d' (Errcode: 2 "No such file or directory")
Fatal error in defaults handling. Program aborted


i.e. there are two issues here:

1) src_test() needs to fail after N unsuccessful attempts,

2) it needs to be fixed to work without /etc/mysql/mysql.d (or the directory needs to be guaranteed somehow?)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-10-26 13:34:15 UTC
Created attachment 906854 [details]
build.log (cut out the repeating message)