From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pymysql/
Date: Sat, 20 Mar 2021 19:21:31 +0000 (UTC) [thread overview]
Message-ID: <1616268088.bc4ab2412698e8ab8f3d316380448df3eb28c5f7.whissi@gentoo> (raw)
commit: bc4ab2412698e8ab8f3d316380448df3eb28c5f7
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 20 18:32:33 2021 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 20 19:21:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc4ab241
dev-python/pymysql: adjust mysql_install_db location
Since commit 755be857e3051, mysql_install_db location has changed.
While here, make sure mysqld from $EPREFIX is used, too.
Reported-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
dev-python/pymysql/pymysql-1.0.2.ebuild | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/dev-python/pymysql/pymysql-1.0.2.ebuild b/dev-python/pymysql/pymysql-1.0.2.ebuild
index dbbedb94264..c2dda33e27a 100644
--- a/dev-python/pymysql/pymysql-1.0.2.ebuild
+++ b/dev-python/pymysql/pymysql-1.0.2.ebuild
@@ -41,6 +41,13 @@ src_test() {
einfo "USER set to '${USER}'"
fi
+ local mysql_install_db_cmd="${EPREFIX}/usr/share/mariadb/scripts/mysql_install_db"
+ [[ ! -x "${mysql_install_db_cmd}" ]] && mysql_install_db_cmd="${EPREFIX}/usr/bin/mysql_install_db"
+ [[ ! -x "${mysql_install_db_cmd}" ]] && die "mysql_install_db command not found!"
+
+ local mysqld_cmd="${EPREFIX}/usr/sbin/mysqld"
+ [[ ! -x "${mysqld_cmd}" ]] && die "mysqld command not found!"
+
local PIDFILE="${T}/mysqld.pid"
if pkill -0 -F "${PIDFILE}" &>/dev/null ; then
einfo "Killing already running mysqld process ..."
@@ -54,16 +61,16 @@ src_test() {
einfo "Creating mysql test instance ..."
mkdir -p "${T}"/mysql || die
- "${BROOT}"/usr/share/mariadb/scripts/mysql_install_db \
+ "${mysql_install_db_cmd}" \
--no-defaults \
--auth-root-authentication-method=normal \
- --basedir="${BROOT}/usr" \
+ --basedir="${EPREFIX}/usr" \
--datadir="${T}"/mysql 1>"${T}"/mysqld_install.log \
|| die
einfo "Starting mysql test instance ..."
# TODO: random port
- mysqld \
+ "${mysqld_cmd}" \
--no-defaults \
--character-set-server=utf8 \
--bind-address=127.0.0.1 \
next reply other threads:[~2021-03-20 19:21 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-20 19:21 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-27 21:07 [gentoo-commits] repo/gentoo:master commit in: dev-python/pymysql/ Michał Górny
2024-05-22 9:10 Michał Górny
2024-05-22 9:05 Michał Górny
2024-05-22 4:49 Michał Górny
2024-05-22 4:49 Michał Górny
2024-05-18 8:09 Michał Górny
2024-01-04 11:29 WANG Xuerui
2023-07-28 9:26 Michał Górny
2023-07-28 9:26 Michał Górny
2023-07-28 7:56 Sam James
2023-06-27 3:54 Michał Górny
2023-04-28 14:49 Arthur Zamarin
2023-04-28 14:47 Arthur Zamarin
2023-03-28 13:23 Michał Górny
2022-11-06 7:59 Michał Górny
2022-11-06 7:24 Sam James
2022-10-14 15:09 Andrew Ammerlaan
2022-02-14 8:35 Matt Turner
2021-11-14 23:51 Sam James
2021-10-24 21:14 Sam James
2021-10-02 23:17 Sam James
2021-09-06 23:42 Sam James
2021-09-06 23:37 Sam James
2021-09-06 0:13 Sam James
2021-08-10 4:59 Sam James
2021-07-28 16:14 Sergei Trofimovich
2021-06-05 17:59 Michał Górny
2021-02-25 13:54 Agostino Sarubbo
2021-01-09 17:40 Michał Górny
2021-01-08 9:29 Michał Górny
2021-01-07 9:16 Michał Górny
2020-10-09 8:53 Michał Górny
2020-10-09 8:40 Agostino Sarubbo
2020-10-02 14:40 Thomas Deutschmann
2020-09-23 7:29 Michał Górny
2020-09-17 15:16 Brian Evans
2020-08-18 5:52 Sam James
2020-06-11 20:33 Michał Górny
2020-06-11 20:33 Michał Górny
2020-06-11 20:33 Michał Górny
2020-04-18 17:55 Craig Andrews
2020-02-05 19:53 Michał Górny
2020-01-07 20:24 Brian Evans
2019-01-16 13:33 Thomas Deutschmann
2018-09-11 19:13 Brian Evans
2018-06-09 17:09 Thomas Deutschmann
2018-02-22 21:23 Thomas Deutschmann
2018-01-05 23:19 Michał Górny
2017-09-29 23:32 Matt Thode
2017-08-30 21:07 Matt Thode
2017-03-10 21:58 Zac Medico
2017-01-26 20:27 Brian Evans
2016-09-04 6:46 Patrice Clement
2015-10-19 16:29 Justin Lecher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1616268088.bc4ab2412698e8ab8f3d316380448df3eb28c5f7.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox