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 4F5FA158089 for ; Sun, 29 Oct 2023 03:53:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C7A82BC020; Sun, 29 Oct 2023 03:53:04 +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 E22F22BC013 for ; Sun, 29 Oct 2023 03:53:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 D2BD9335C0F for ; Sun, 29 Oct 2023 03:53:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3C2E81220 for ; Sun, 29 Oct 2023 03:53:01 +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: <1698551511.568963c9d9c964e7a7b11e98ef1444f4425e4062.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/static-dev/static-dev-0.1-r3.ebuild X-VCS-Directories: sys-fs/static-dev/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 568963c9d9c964e7a7b11e98ef1444f4425e4062 X-VCS-Branch: master Date: Sun, 29 Oct 2023 03:53:01 +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: 3ad0a97d-661a-4e24-a337-b27ad4d5f5f6 X-Archives-Hash: 80f7e5d54b2074c418d944f8a2f3ebbf commit: 568963c9d9c964e7a7b11e98ef1444f4425e4062 Author: Matoro Mahri matoro tk> AuthorDate: Sun Oct 29 03:50:59 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Oct 29 03:51:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=568963c9 sys-fs/static-dev: sys-apps/makedev should be IDEPEND not RDEPEND Signed-off-by: Matoro Mahri matoro.tk> Signed-off-by: Sam James gentoo.org> sys-fs/static-dev/static-dev-0.1-r3.ebuild | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild new file mode 100644 index 000000000000..0be25176d6fc --- /dev/null +++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="A skeleton, statically managed /dev" +HOMEPAGE="https://bugs.gentoo.org/107875" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" + +IDEPEND="sys-apps/makedev" + +pkg_pretend() { + bailout() { + eerror "We have detected that you currently use udev or devfs or devtmpfs" + eerror "and this ebuild cannot install to the same mount-point." + die "Cannot install on udev/devfs tmpfs." + } + + if [[ ${MERGE_TYPE} == "buildonly" ]] ; then + # User is just compiling which is fine -- all our checks are merge-time. + return + fi + + # We want to not clobber udev (tmpfs) or older devfs setups. + if [[ -d ${ROOT}/dev/.udev || -c ${ROOT}/dev/.devfs ]] ; then + bailout + fi + + # We also want to not clobber newer devtmpfs setups. + if [[ -z ${ROOT} ]] && \ + ! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then + bailout + fi +} + +pkg_postinst() { + MAKEDEV -d "${ROOT}"/dev generic sg scd rtc hde hdf hdg hdh input audio video +}