diff options
author | 2010-12-20 19:55:17 +0000 | |
---|---|---|
committer | 2010-12-20 19:55:17 +0000 | |
commit | 2a38c0db877cc8638c59e0118ff68324484dfd1d (patch) | |
tree | eafae1b1317847d145f000b362e796abb2ad0767 /www-client | |
parent | x86 stable wrt bug #349199 (diff) | |
download | gentoo-2-2a38c0db877cc8638c59e0118ff68324484dfd1d.tar.gz gentoo-2-2a38c0db877cc8638c59e0118ff68324484dfd1d.tar.bz2 gentoo-2-2a38c0db877cc8638c59e0118ff68324484dfd1d.zip |
Add more checks to prevent user problems like bug #299777.
(Portage version: 2.1.9.25/cvs/Linux i686)
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/chromium-bin/ChangeLog | 6 | ||||
-rw-r--r-- | www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild | 23 |
2 files changed, 26 insertions, 3 deletions
diff --git a/www-client/chromium-bin/ChangeLog b/www-client/chromium-bin/ChangeLog index b10ae0baaaa8..00cb10bf4fd5 100644 --- a/www-client/chromium-bin/ChangeLog +++ b/www-client/chromium-bin/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-client/chromium-bin # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium-bin/ChangeLog,v 1.83 2010/12/14 14:50:21 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium-bin/ChangeLog,v 1.84 2010/12/20 19:55:17 phajdan.jr Exp $ + + 20 Dec 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> + chromium-bin-8.0.552.224.ebuild: + Add more checks to prevent user problems like bug #299777. *chromium-bin-8.0.552.224 (14 Dec 2010) diff --git a/www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild b/www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild index beb18ef64f5e..6e56f59e3b2b 100644 --- a/www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild +++ b/www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild @@ -1,9 +1,9 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild,v 1.1 2010/12/14 14:50:21 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium-bin/chromium-bin-8.0.552.224.ebuild,v 1.2 2010/12/20 19:55:17 phajdan.jr Exp $ EAPI="2" -inherit eutils multilib +inherit eutils multilib portability DESCRIPTION="Open-source version of Google Chrome web browser (binary version)" HOMEPAGE="http://code.google.com/chromium/" @@ -51,6 +51,25 @@ RDEPEND="app-arch/bzip2 pkg_setup() { CHROMIUM_HOME="/opt/chromium.org" + + # Prevent user problems like bug #299777. + if ! egrep -q '^shm.+/dev/shm' /etc/fstab; then + ewarn "You don't have /dev/shm entry in /etc/fstab." + ewarn "${PN} may fail to start in that configuration." + ewarn "Please add the following line to your /etc/fstab:" + ewarn "shm /dev/shm tmpfs nodev,nosuid,noexec 0 0" + fi + if ! grep -q /dev/shm <<< $(get_mounts); then + ewarn "You don't have tmpfs mounted at /dev/shm." + ewarn "${PN} may fail to start in that configuration." + ewarn "Please uncomment the /dev/shm entry in /etc/fstab," + ewarn "and run 'mount /dev/shm'." + fi + if [ `stat -c %a /dev/shm` -ne 1777 ]; then + ewarn "/dev/shm does not have correct permissions." + ewarn "${PN} may fail to start in that configuration." + ewarn "Please run 'chmod 1777 /dev/shm'." + fi } src_install() { |