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 5F9A9158087 for ; Sat, 18 Dec 2021 04:39:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 477172BC02F; Sat, 18 Dec 2021 04:39:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2CFB2BC031 for ; Sat, 18 Dec 2021 04:39:42 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A72F3431A9 for ; Sat, 18 Dec 2021 04:39:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A8B3824E for ; Sat, 18 Dec 2021 04:39:37 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639802367.fa280d0503125ef715e6f52bbeae4c0ab2d09aea.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/eudev/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/eudev/eudev-3.2.11.ebuild sys-fs/eudev/eudev-9999.ebuild X-VCS-Directories: sys-fs/eudev/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: fa280d0503125ef715e6f52bbeae4c0ab2d09aea X-VCS-Branch: master Date: Sat, 18 Dec 2021 04:39:37 +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: b862fce3-f996-4541-9f97-883bb3fd8d96 X-Archives-Hash: 9ea474d0f2225ced24645c7d7b9725bf commit: fa280d0503125ef715e6f52bbeae4c0ab2d09aea Author: Sam James gentoo org> AuthorDate: Sat Dec 18 03:44:34 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 18 04:39:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa280d05 sys-fs/eudev: modernise for EAPI 7 Signed-off-by: Sam James gentoo.org> sys-fs/eudev/eudev-3.2.11.ebuild | 68 +++++++++++++++++++++------------------- sys-fs/eudev/eudev-9999.ebuild | 68 +++++++++++++++++++++------------------- 2 files changed, 72 insertions(+), 64 deletions(-) diff --git a/sys-fs/eudev/eudev-3.2.11.ebuild b/sys-fs/eudev/eudev-3.2.11.ebuild index f482a0348910..cf9f8b3b41a6 100644 --- a/sys-fs/eudev/eudev-3.2.11.ebuild +++ b/sys-fs/eudev/eudev-3.2.11.ebuild @@ -3,7 +3,7 @@ EAPI=7 -KV_min=2.6.39 +KV_MIN=2.6.39 inherit autotools linux-info multilib multilib-minimal toolchain-funcs @@ -23,7 +23,8 @@ SLOT="0" IUSE="+kmod introspection rule-generator selinux static-libs test" RESTRICT="!test? ( test )" -COMMON_DEPEND=">=sys-apps/util-linux-2.20 +DEPEND=">=sys-apps/util-linux-2.20 + >=sys-kernel/linux-headers-${KV_MIN} virtual/libcrypt:= introspection? ( >=dev-libs/gobject-introspection-1.38 ) kmod? ( >=sys-apps/kmod-16 ) @@ -31,15 +32,7 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.20 !/dev/null - if [[ -d ${EROOT}dev/loop ]]; then + rmdir "${EROOT}"/dev/loop 2>/dev/null + if [[ -d ${EROOT}/dev/loop ]]; then ewarn "Please make sure your remove /dev/loop," ewarn "else losetup may be confused when looking for unused devices." fi @@ -207,15 +210,16 @@ pkg_postinst() { done if has_version 'sys-apps/hwids[udev]'; then - udevadm hwdb --update --root="${ROOT%/}" + udevadm hwdb --update --root="${ROOT}" # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda # reload database after it has be rebuilt, but only if we are not upgrading # also pass if we are -9999 since who knows what hwdb related changes there might be - if [[ ${rvres} == doit* ]] && [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then + if [[ ${rvres} == doit* ]] && [[ -z ${ROOT} ]] && [[ ${PV} != "9999" ]]; then udevadm control --reload fi fi + if [[ ${rvres} != doitnew ]]; then ewarn ewarn "You need to restart eudev as soon as possible to make the" diff --git a/sys-fs/eudev/eudev-9999.ebuild b/sys-fs/eudev/eudev-9999.ebuild index d7b7155f78de..99ca4c45aba6 100644 --- a/sys-fs/eudev/eudev-9999.ebuild +++ b/sys-fs/eudev/eudev-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -KV_min=2.6.39 +KV_MIN=2.6.39 inherit autotools linux-info multilib multilib-minimal toolchain-funcs @@ -23,7 +23,8 @@ SLOT="0" IUSE="+kmod introspection rule-generator selinux static-libs test" RESTRICT="!test? ( test )" -COMMON_DEPEND=">=sys-apps/util-linux-2.20 +DEPEND=">=sys-apps/util-linux-2.20 + >=sys-kernel/linux-headers-${KV_MIN} virtual/libcrypt:= introspection? ( >=dev-libs/gobject-introspection-1.38 ) kmod? ( >=sys-apps/kmod-16 ) @@ -31,15 +32,7 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.20 !/dev/null - if [[ -d ${EROOT}dev/loop ]]; then + rmdir "${EROOT}"/dev/loop 2>/dev/null + if [[ -d ${EROOT}/dev/loop ]]; then ewarn "Please make sure your remove /dev/loop," ewarn "else losetup may be confused when looking for unused devices." fi @@ -207,15 +210,16 @@ pkg_postinst() { done if has_version 'sys-apps/hwids[udev]'; then - udevadm hwdb --update --root="${ROOT%/}" + udevadm hwdb --update --root="${ROOT}" # https://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda # reload database after it has be rebuilt, but only if we are not upgrading # also pass if we are -9999 since who knows what hwdb related changes there might be - if [[ ${rvres} == doit* ]] && [[ ${ROOT%/} == "" ]] && [[ ${PV} != "9999" ]]; then + if [[ ${rvres} == doit* ]] && [[ -z ${ROOT} ]] && [[ ${PV} != "9999" ]]; then udevadm control --reload fi fi + if [[ ${rvres} != doitnew ]]; then ewarn ewarn "You need to restart eudev as soon as possible to make the"