Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 299777 | Differences between
and this patch

Collapse All | Expand All

(-)chromium-5.0.307.9.ebuild.orig (-13 / +12 lines)
Lines 40-59 Link Here
40
	>=dev-util/pkgconfig-0.23
40
	>=dev-util/pkgconfig-0.23
41
	sys-devel/flex"
41
	sys-devel/flex"
42
42
43
pkg_setup() {
43
pkg_preinst() {
44
	# Prevent user problems like bug 299777.
44
	# Prevent user problems like bug 299777.
45
	if ! grep -q /dev/shm <<< $(get_mounts); then
45
	if [[ ${ROOT} == / && ]]; then
46
		eerror "You don't have tmpfs mounted at /dev/shm."
46
		if [[ ! grep -q /dev/shm <<< $(get_mounts) ]]; then
47
		eerror "${PN} isn't going to work in that configuration."
47
			ewarn "You don't have tmpfs mounted at /dev/shm."
48
		eerror "Please uncomment the /dev/shm entry in /etc/fstab,"
48
			ewarn "${PN} isn't going to work in that configuration."
49
		eerror "run 'mount /dev/shm' and try again."
49
			ewarn "To fix this, please uncomment the /dev/shm entry"
50
		die "/dev/shm is not mounted"
50
			ewarn "in /etc/fstab and run 'mount /dev/shm'."
51
	fi
51
		fi
52
	if [ `stat -c %a /dev/shm` -ne 1777 ]; then
52
		if [[ $(stat -c %a /dev/shm) != 1777 ]]; then
53
		eerror "/dev/shm does not have correct permissions."
53
			ewarn "/dev/shm does not have correct permissions."
54
		eerror "${PN} isn't going to work in that configuration."
54
			ewarn "${PN} isn't going to work in that configuration."
55
		eerror "Please run chmod 1777 /dev/shm and try again."
55
			ewarn "Please run chmod 1777 /dev/shm to fix this."
56
		die "/dev/shm has incorrect permissions"
57
	fi
56
	fi
58
57
59
	elog "${PN} might crash occasionally. To get more useful backtraces"
58
	elog "${PN} might crash occasionally. To get more useful backtraces"

Return to bug 299777