Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 508688
Collapse All | Expand All

(-)sandbox-2.6-r1.ebuild (-1 / +27 lines)
Lines 7-13 Link Here
7
# period.
7
# period.
8
#
8
#
9
9
10
inherit eutils flag-o-matic toolchain-funcs multilib unpacker multiprocessing
10
inherit eutils flag-o-matic toolchain-funcs multilib unpacker multiprocessing linux-info
11
11
12
DESCRIPTION="sandbox'd LD_PRELOAD hack"
12
DESCRIPTION="sandbox'd LD_PRELOAD hack"
13
HOMEPAGE="http://www.gentoo.org/proj/en/portage/sandbox/"
13
HOMEPAGE="http://www.gentoo.org/proj/en/portage/sandbox/"
Lines 26-34 Link Here
26
EMULTILIB_PKG="true"
26
EMULTILIB_PKG="true"
27
has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
27
has sandbox_death_notice ${EBUILD_DEATH_HOOKS} || EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} sandbox_death_notice"
28
28
29
30
sandbox_assert_ia32_emulation() {
31
	local IA32_EMULATION
32
	linux-info_pkg_setup
33
34
	if linux_config_exists; then
35
		IA32_EMULATION=`linux_chkconfig_string IA32_EMULATION`
36
37
		if [ "x$IA32_EMULATION" = x ] ; then
38
39
			# check if multilib is enabled for this system ond only then print:
40
41
			if use multilib; then
42
				eerror
43
				eerror "Please note that CONFIG_IA32_EMULATION must be set on a multilib system."
44
				eerror "    Executable file formats / Emulations  --->"
45
				eerror "        [*] IA32 Emulation"
46
				eerror
47
			fi
48
		fi
49
	fi
50
}
51
29
sandbox_death_notice() {
52
sandbox_death_notice() {
53
30
	ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
54
	ewarn "If configure failed with a 'cannot run C compiled programs' error, try this:"
31
	ewarn "FEATURES=-sandbox emerge sandbox"
55
	ewarn "FEATURES=-sandbox emerge sandbox"
56
57
	sandbox_assert_ia32_emulation
32
}
58
}
33
59
34
sb_get_install_abis() { use multilib && get_install_abis || echo ${ABI:-default} ; }
60
sb_get_install_abis() { use multilib && get_install_abis || echo ${ABI:-default} ; }

Return to bug 508688