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 E84A01382C5 for ; Mon, 1 Mar 2021 11:27:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44234E08CD; Mon, 1 Mar 2021 11:27:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 2C1B2E08CD for ; Mon, 1 Mar 2021 11:27:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 CA85F340D8D for ; Mon, 1 Mar 2021 11:27:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 69B8DC3 for ; Mon, 1 Mar 2021 11:27:07 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1614598003.9ac72d9bb80c9993794ccea2aeea86c6ae055055.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd-tmpfiles/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild X-VCS-Directories: sys-apps/systemd-tmpfiles/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 9ac72d9bb80c9993794ccea2aeea86c6ae055055 X-VCS-Branch: master Date: Mon, 1 Mar 2021 11:27:07 +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: 2196a217-e888-4987-9caf-2466c9239e17 X-Archives-Hash: 3f4b068518ddf67e18ee9e25b7e1ea72 commit: 9ac72d9bb80c9993794ccea2aeea86c6ae055055 Author: Georgy Yakovlev gentoo org> AuthorDate: Mon Mar 1 11:23:43 2021 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Mon Mar 1 11:26:43 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ac72d9b sys-apps/systemd-tmpfiles: enforce shebangs in .py files Closes: https://bugs.gentoo.org/767403 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev gentoo.org> sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild b/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild index d12d038db90..d243c5691c3 100644 --- a/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild +++ b/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild @@ -31,6 +31,7 @@ RDEPEND="${DEPEND} " BDEPEND=" + ${PYTHON_DEPS} app-text/docbook-xml-dtd:4.2 app-text/docbook-xml-dtd:4.5 app-text/docbook-xsl-stylesheets @@ -40,13 +41,12 @@ BDEPEND=" >=sys-apps/coreutils-8.16 sys-devel/m4 virtual/pkgconfig - test? ( ${PYTHON_DEPS} ) " S="${WORKDIR}/systemd-${PV}" pkg_setup() { - use test && python-any-r1_pkg_setup + python-any-r1_pkg_setup } src_prepare() { @@ -55,6 +55,10 @@ src_prepare() { use elibc_musl && eapply "${WORKDIR}/${P}-musl" use elibc_musl && eapply "${FILESDIR}/musl-1.2.2.patch" # https://bugs.gentoo.org/766833 default + + # https://bugs.gentoo.org/767403 + python_fix_shebang src/test/*.py + python_fix_shebang tools/*.py } src_configure() { @@ -188,7 +192,6 @@ src_install() { src_test() { # 'meson test' will compile full systemd, but we can still outsmart it - python_fix_shebang src/test/test-systemd-tmpfiles.py "${EPYTHON}" src/test/test-systemd-tmpfiles.py \ "${BUILD_DIR}"/systemd-tmpfiles.standalone || die "${FUNCNAME} failed" }