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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5F10615808C for ; Mon, 21 Mar 2022 10:06:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2BEBFE0829; Mon, 21 Mar 2022 10:06:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98A73E07EF for ; Mon, 21 Mar 2022 10:06:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A0F35340CEF for ; Mon, 21 Mar 2022 10:06:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B3E132E for ; Mon, 21 Mar 2022 10:06:39 +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: <1647857085.64370c71231259a942e981b7436e81023c6e5254.asturm@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt5-build.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 64370c71231259a942e981b7436e81023c6e5254 X-VCS-Branch: master Date: Mon, 21 Mar 2022 10:06:39 +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: 3adf196e-3e3e-4dca-9b89-3d69d14ea596 X-Archives-Hash: be5baa7560e4ef54d57f8e87a7c39d34 commit: 64370c71231259a942e981b7436e81023c6e5254 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Nov 22 18:41:24 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Mar 21 10:04:45 2022 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=64370c71 qt5-build.eclass: New helper function: qt5_symlink_binary_to_path() Symlink necessary tools to /usr/bin According to upstream discussion on Qt6 recommended tools to be in PATH. See also: https://lists.qt-project.org/pipermail/development/2020-November/040626.html Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/qt5-build.eclass | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass index 8242db0b..921f4f27 100644 --- a/eclass/qt5-build.eclass +++ b/eclass/qt5-build.eclass @@ -316,6 +316,16 @@ qt5-build_pkg_postrm() { ###### Public helpers ###### +# @FUNCTION: qt5_symlink_binary_to_path +# @USAGE: [suffix] +# @DESCRIPTION: +# Symlink a given binary from QT5_BINDIR to QT5_PREFIX/bin, with optional suffix +qt5_symlink_binary_to_path() { + [[ $# -ge 1 ]] || die "${FUNCNAME}() requires at least one argument" + + dosym -r "${QT5_BINDIR}"/${1} /usr/bin/${1}${2} +} + # @FUNCTION: qt_use # @USAGE: [feature] [enableval] # @DESCRIPTION: