public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger (vapier)" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/static-dev: static-dev-0.1.ebuild ChangeLog
Date: Mon, 17 Nov 2014 02:19:23 +0000 (UTC)	[thread overview]
Message-ID: <20141117021923.7DAF729FF@oystercatcher.gentoo.org> (raw)

vapier      14/11/17 02:19:23

  Modified:             static-dev-0.1.ebuild ChangeLog
  Log:
  Only check for devtmpfs when installing into / #469620 by Roy Bamford.
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

Revision  Changes    Path
1.16                 sys-fs/static-dev/static-dev-0.1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild?r1=1.15&r2=1.16

Index: static-dev-0.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- static-dev-0.1.ebuild	27 Apr 2013 09:51:05 -0000	1.15
+++ static-dev-0.1.ebuild	17 Nov 2014 02:19:23 -0000	1.16
@@ -1,6 +1,6 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild,v 1.15 2013/04/27 09:51:05 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/static-dev/static-dev-0.1.ebuild,v 1.16 2014/11/17 02:19:23 vapier Exp $
 
 DESCRIPTION="A skeleton, statically managed /dev"
 HOMEPAGE="http://bugs.gentoo.org/107875"
@@ -13,19 +13,20 @@
 
 RDEPEND="sys-apps/makedev"
 
+abort() {
+	echo
+	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."
+}
+
 pkg_preinst() {
-	if [[ -d ${ROOT}/dev/.udev || -c ${ROOT}/dev/.devfs ]] || \
+	if [[ -d ${ROOT}/dev/.udev || -c ${ROOT}/dev/.devfs ]] ; then
+		abort
+	fi
+	if [[ ${ROOT} == "/" ]] && \
 	   ! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
-		echo ""
-		eerror "We have detected that you currently use udev or devfs or devtmpfs"
-		eerror "and this ebuild cannot install to the same mount-point."
-		eerror "Please reinstall the ebuild (as root) like follows:"
-		eerror ""
-		eerror "mkdir /tmp/newroot"
-		eerror "mount -o bind / /tmp/newroot"
-		eerror "ROOT=/tmp/newroot/ emerge sys-fs/static-dev"
-		eerror "umount /tmp/newroot"
-		die "Cannot install on udev/devfs tmpfs."
+		abort
 	fi
 }
 



1.15                 sys-fs/static-dev/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/static-dev/ChangeLog?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/static-dev/ChangeLog?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/static-dev/ChangeLog?r1=1.14&r2=1.15

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-fs/static-dev/ChangeLog,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ChangeLog	27 Apr 2013 09:51:05 -0000	1.14
+++ ChangeLog	17 Nov 2014 02:19:23 -0000	1.15
@@ -1,6 +1,9 @@
 # ChangeLog for sys-fs/static-dev
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/static-dev/ChangeLog,v 1.14 2013/04/27 09:51:05 vapier Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/static-dev/ChangeLog,v 1.15 2014/11/17 02:19:23 vapier Exp $
+
+  17 Nov 2014; Mike Frysinger <vapier@gentoo.org> static-dev-0.1.ebuild:
+  Only check for devtmpfs when installing into / #469620 by Roy Bamford.
 
   27 Apr 2013; Mike Frysinger <vapier@gentoo.org> static-dev-0.1.ebuild:
   Check for devtmpfs too #454404 by Alexander Tsoy.





             reply	other threads:[~2014-11-17  2:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-17  2:19 Mike Frysinger (vapier) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-04-27  9:51 [gentoo-commits] gentoo-x86 commit in sys-fs/static-dev: static-dev-0.1.ebuild ChangeLog Mike Frysinger (vapier)
2011-07-21  1:56 Mike Frysinger (vapier)
2011-04-15 21:57 Ulrich Mueller (ulm)
2011-02-06 11:05 Mart Raudsepp (leio)
2009-12-05 23:59 Mike Frysinger (vapier)
2007-10-01  1:48 Mike Frysinger (vapier)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141117021923.7DAF729FF@oystercatcher.gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox