public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2015-10-29 22:02 Mike Frysinger
  0 siblings, 0 replies; 10+ messages in thread
From: Mike Frysinger @ 2015-10-29 22:02 UTC (permalink / raw
  To: gentoo-commits

commit:     cc958c3d516d66978ecb1b8835518fedf4cce950
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 29 22:00:52 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Oct 29 22:01:36 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc958c3d

sys-fs/static-dev: update to EAPI=5 for pkg_pretend #469620

With newer EAPIs we can run the checks sooner when we know we'll
be doing a merge of the package.

 sys-fs/static-dev/static-dev-0.1.ebuild | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/sys-fs/static-dev/static-dev-0.1.ebuild b/sys-fs/static-dev/static-dev-0.1.ebuild
index cdafd45..099adc3 100644
--- a/sys-fs/static-dev/static-dev-0.1.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
+EAPI="5"
+
 DESCRIPTION="A skeleton, statically managed /dev"
 HOMEPAGE="https://bugs.gentoo.org/107875"
 SRC_URI=""
@@ -12,6 +14,7 @@ KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
 IUSE=""
 
 RDEPEND="sys-apps/makedev"
+DEPEND="${RDEPEND}"
 
 abort() {
 	echo
@@ -20,10 +23,17 @@ abort() {
 	die "Cannot install on udev/devfs tmpfs."
 }
 
-pkg_preinst() {
+pkg_pretend() {
+	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
 		abort
 	fi
+	# We also want to not clobber newer devtmpfs setups.
 	if [[ ${ROOT} == "/" ]] && \
 	   ! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
 		abort


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2021-06-10 21:02 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2021-06-10 21:02 UTC (permalink / raw
  To: gentoo-commits

commit:     ca38032064b6bbcf36604e5c0421eac7533a0243
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 10 21:02:28 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 10 21:02:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca380320

sys-fs/static-dev: fix ROOT check for EAPI 7

Closes: https://bugs.gentoo.org/795285
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../static-dev/{static-dev-0.1-r1.ebuild => static-dev-0.1-r2.ebuild}   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r1.ebuild b/sys-fs/static-dev/static-dev-0.1-r2.ebuild
similarity index 97%
rename from sys-fs/static-dev/static-dev-0.1-r1.ebuild
rename to sys-fs/static-dev/static-dev-0.1-r2.ebuild
index 42c60e497de..ca46b76ab1e 100644
--- a/sys-fs/static-dev/static-dev-0.1-r1.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r2.ebuild
@@ -30,7 +30,7 @@ pkg_pretend() {
 	fi
 
 	# We also want to not clobber newer devtmpfs setups.
-	if [[ ${ROOT} == "/" ]] && \
+	if [[ -z ${ROOT} ]] && \
 	   ! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
 		abort
 	fi


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2022-08-27 17:03 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2022-08-27 17:03 UTC (permalink / raw
  To: gentoo-commits

commit:     9e6bd0b440cda7abd4452fb87013a8e6819ef0a3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 27 17:01:10 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 27 17:01:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e6bd0b4

sys-fs/static-dev: fix EbuildReservedName

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r2.ebuild | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r2.ebuild b/sys-fs/static-dev/static-dev-0.1-r2.ebuild
index ca46b76ab1e5..c915e4e6bc45 100644
--- a/sys-fs/static-dev/static-dev-0.1-r2.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -13,7 +13,7 @@ KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
 RDEPEND="sys-apps/makedev"
 
 pkg_pretend() {
-	abort() {
+	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."
@@ -26,13 +26,13 @@ pkg_pretend() {
 
 	# We want to not clobber udev (tmpfs) or older devfs setups.
 	if [[ -d ${ROOT}/dev/.udev || -c ${ROOT}/dev/.devfs ]] ; then
-		abort
+		bailout
 	fi
 
 	# We also want to not clobber newer devtmpfs setups.
 	if [[ -z ${ROOT} ]] && \
 	   ! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
-		abort
+		bailout
 	fi
 }
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-10-29  3:53 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2023-10-29  3:53 UTC (permalink / raw
  To: gentoo-commits

commit:     568963c9d9c964e7a7b11e98ef1444f4425e4062
Author:     Matoro Mahri <matoro_gentoo <AT> matoro <DOT> tk>
AuthorDate: Sun Oct 29 03:50:59 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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_gentoo <AT> matoro.tk>
Signed-off-by: Sam James <sam <AT> 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
+}


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-12-15  6:53 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2023-12-15  6:53 UTC (permalink / raw
  To: gentoo-commits

commit:     cdf642fa053ea93d87296173526ce5032d435842
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 06:53:13 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 06:53:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdf642fa

sys-fs/static-dev: Stabilize 0.1-r3 arm, #919973

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
index 0be25176d6fc..701b98dc6e8a 100644
--- a/sys-fs/static-dev/static-dev-0.1-r3.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
@@ -8,7 +8,7 @@ HOMEPAGE="https://bugs.gentoo.org/107875"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
 
 IDEPEND="sys-apps/makedev"
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-12-15  7:06 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2023-12-15  7:06 UTC (permalink / raw
  To: gentoo-commits

commit:     657830eb7a251fc9c386134e4f69424a0b0c1a2d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 07:05:19 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 07:05:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=657830eb

sys-fs/static-dev: Stabilize 0.1-r3 amd64, #919973

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
index 701b98dc6e8a..d91d2023d3c6 100644
--- a/sys-fs/static-dev/static-dev-0.1-r3.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
@@ -8,7 +8,7 @@ HOMEPAGE="https://bugs.gentoo.org/107875"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
 
 IDEPEND="sys-apps/makedev"
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-12-15  7:06 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2023-12-15  7:06 UTC (permalink / raw
  To: gentoo-commits

commit:     bda65eef6a2c98a17b4c85c0366429178d63efaf
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 07:05:20 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 07:05:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bda65eef

sys-fs/static-dev: Stabilize 0.1-r3 sparc, #919973

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
index d91d2023d3c6..eceacf78cbd5 100644
--- a/sys-fs/static-dev/static-dev-0.1-r3.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
@@ -8,7 +8,7 @@ HOMEPAGE="https://bugs.gentoo.org/107875"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 sparc ~x86"
 
 IDEPEND="sys-apps/makedev"
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-12-15  7:57 Sam James
  0 siblings, 0 replies; 10+ messages in thread
From: Sam James @ 2023-12-15  7:57 UTC (permalink / raw
  To: gentoo-commits

commit:     e5dd83aa8b24f3ef4aea16fc13bcae2e18586304
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 07:57:35 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 07:57:35 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5dd83aa

sys-fs/static-dev: Stabilize 0.1-r3 ppc64, #919973

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
index eceacf78cbd5..80a7f164bd4a 100644
--- a/sys-fs/static-dev/static-dev-0.1-r3.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
@@ -8,7 +8,7 @@ HOMEPAGE="https://bugs.gentoo.org/107875"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 sparc ~x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 sparc ~x86"
 
 IDEPEND="sys-apps/makedev"
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-12-15 10:10 Michał Górny
  0 siblings, 0 replies; 10+ messages in thread
From: Michał Górny @ 2023-12-15 10:10 UTC (permalink / raw
  To: gentoo-commits

commit:     e5b01df18db71dcc0bebe30c08e5dcc5ba2f6fc0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 10:09:57 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 10:09:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5b01df1

sys-fs/static-dev: Stabilize 0.1-r3 ppc, #919973

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
index 80a7f164bd4a..8038e27588fc 100644
--- a/sys-fs/static-dev/static-dev-0.1-r3.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
@@ -8,7 +8,7 @@ HOMEPAGE="https://bugs.gentoo.org/107875"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 sparc ~x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc ~x86"
 
 IDEPEND="sys-apps/makedev"
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/
@ 2023-12-15 12:27 Arthur Zamarin
  0 siblings, 0 replies; 10+ messages in thread
From: Arthur Zamarin @ 2023-12-15 12:27 UTC (permalink / raw
  To: gentoo-commits

commit:     fc843254cb242e2e9fd56e48bef1775d4df405a3
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 15 12:27:08 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Dec 15 12:27:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc843254

sys-fs/static-dev: Stabilize 0.1-r3 x86, #919973

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 sys-fs/static-dev/static-dev-0.1-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-fs/static-dev/static-dev-0.1-r3.ebuild b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
index 8038e27588fc..9d274185752f 100644
--- a/sys-fs/static-dev/static-dev-0.1-r3.ebuild
+++ b/sys-fs/static-dev/static-dev-0.1-r3.ebuild
@@ -8,7 +8,7 @@ HOMEPAGE="https://bugs.gentoo.org/107875"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc ~x86"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 sparc x86"
 
 IDEPEND="sys-apps/makedev"
 


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-12-15 12:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-27 17:03 [gentoo-commits] repo/gentoo:master commit in: sys-fs/static-dev/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2023-12-15 12:27 Arthur Zamarin
2023-12-15 10:10 Michał Górny
2023-12-15  7:57 Sam James
2023-12-15  7:06 Sam James
2023-12-15  7:06 Sam James
2023-12-15  6:53 Sam James
2023-10-29  3:53 Sam James
2021-06-10 21:02 Sam James
2015-10-29 22:02 Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox