From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 08F23138335 for ; Thu, 7 Feb 2019 22:50:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 29405E0B5E; Thu, 7 Feb 2019 22:50:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F2EAAE0B5E for ; Thu, 7 Feb 2019 22:50:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 487D9335DB1 for ; Thu, 7 Feb 2019 22:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1868537 for ; Thu, 7 Feb 2019 22:50:34 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1549579812.303548c5add9046a3c9465a2f5002b579580001c.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: media-sound/amarok/ X-VCS-Repository: proj/kde X-VCS-Files: media-sound/amarok/amarok-9999.ebuild X-VCS-Directories: media-sound/amarok/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 303548c5add9046a3c9465a2f5002b579580001c X-VCS-Branch: master Date: Thu, 7 Feb 2019 22:50:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 417a5a8a-972b-45b9-b5b7-550a10a218d3 X-Archives-Hash: fbc5c01e2a2c1e01c6900b1f14fcd039 commit: 303548c5add9046a3c9465a2f5002b579580001c Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Feb 7 22:50:12 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Feb 7 22:50:12 2019 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=303548c5 media-sound/amarok: Remove virtual/mysql from RDEPEND, more postinst There is a slim chance that someone indeed would run a shared DB instance. Package-Manager: Portage-2.3.59, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> media-sound/amarok/amarok-9999.ebuild | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/media-sound/amarok/amarok-9999.ebuild b/media-sound/amarok/amarok-9999.ebuild index 6ff515262e..58fdd12eba 100644 --- a/media-sound/amarok/amarok-9999.ebuild +++ b/media-sound/amarok/amarok-9999.ebuild @@ -77,7 +77,6 @@ DEPEND=" RDEPEND="${DEPEND} !media-sound/amarok:4 $(add_qt_dep qtquickcontrols2) - virtual/mysql " PATCHES=( "${FILESDIR}"/${PN}-2.8.90-mysqld-rpath.patch ) @@ -113,7 +112,15 @@ src_install() { pkg_postinst() { kde5_pkg_postinst - elog "You'll have to configure amarok to use an external db server." - elog "Please read https://community.kde.org/Amarok/Community/MySQL for details on how" - elog "to configure the external db and migrate your data from the embedded database." + pkg_is_installed() { + echo "${1} ($(has_version ${1} || echo "not ")installed)" + } + + if [[ -z "${REPLACING_VERSIONS}" ]]; then + elog "You'll have to configure amarok to use an external db server, one of:" + elog " $(pkg_is_installed dev-db/mariadb)" + elog " $(pkg_is_installed dev-db/mysql)" + elog "Please read https://community.kde.org/Amarok/Community/MySQL for details on how" + elog "to configure the external db and migrate your data from the embedded database." + fi }