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

Collapse All | Expand All

(-)gcl-2.6.7.ebuild.org (+27 lines)
Lines 24-29 Link Here
24
	>=app-text/texi2html-1.64
24
	>=app-text/texi2html-1.64
25
	>=sys-devel/autoconf-2.52"
25
	>=sys-devel/autoconf-2.52"
26
26
27
pkg_setup() {
28
        # pkg_setup stolen from axiom ebuild 200805
29
        # for 2.6.25 kernels and higher we need to have
30
        # /proc/sys/kernel/randomize_va_space set to somthing other
31
        # than 2, otherwise gcl fails to compile (see bug #186926).
32
        local current_setting=$(/sbin/sysctl kernel.randomize_va_space 2>/dev/null | cut -d' ' -f3)
33
        if [[ ${current_setting} == 2 ]]; then
34
                echo
35
                eerror "Your kernel has brk randomization enabled. This will"
36
                eerror "cause gcl to fail to compile *and* run (see bug #186926)."
37
                eerror "You can issue:"
38
                eerror
39
                eerror "   /sbin/sysctl -w kernel.randomize_va_space=1"
40
                eerror
41
                eerror "as root to turn brk randomization off temporarily."
42
                eerror "However, when not using axiom you may want to turn"
43
                eerror "brk randomization back on via"
44
                eerror
45
                eerror "   /sbin/sysctl -w kernel.randomize_va_space=2"
46
                eerror
47
                eerror "since it results in a less secure kernel."
48
                die "Kernel brk randomization detected"
49
        fi
50
}
51
52
27
src_unpack() {
53
src_unpack() {
28
	unpack ${A}
54
	unpack ${A}
29
	sed -e "s/gcl-doc/${PF}/g" "${S}"/info/makefile > "${T}"/makefile
55
	sed -e "s/gcl-doc/${PF}/g" "${S}"/info/makefile > "${T}"/makefile
Lines 31-36 Link Here
31
	epatch "${FILESDIR}"/${PV}-fix-configure.in-gentoo.patch
57
	epatch "${FILESDIR}"/${PV}-fix-configure.in-gentoo.patch
32
	epatch "${FILESDIR}"/${P}-fix-configure.in-bfd.patch
58
	epatch "${FILESDIR}"/${P}-fix-configure.in-bfd.patch
33
59
60
	cd "${S}"
34
	eautoconf || die
61
	eautoconf || die
35
}
62
}
36
63

Return to bug 236391