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

Collapse All | Expand All

(-)kernel-mod.eclass.bak (-1 / +25 lines)
Lines 156-161 Link Here
156
	emake KERNEL_DIR=${KERNEL_DIR} || die
156
	emake KERNEL_DIR=${KERNEL_DIR} || die
157
}
157
}
158
158
159
kernel-mod_check_module_safe ()
160
{
161
	if kernel-mod_is_2_4_kernel
162
	then
163
		return 1
164
	else
165
		if [ "`has sandbox ${FEATURES}`" -o "`has usersandbox ${FEATURES}`" ]
166
		then
167
			eerror "Due to a problem with kbuild in 2.5/2.6 kernels, external modules"
168
			eerror "require that sandbox and usersandbox be disabled."
169
			eerror "The only place in your live filesystem that will be affected is"
170
			eerror "in /usr/src/linux (nothing destructive)."
171
			eerror "Please see bug #32737 on bugs.gentoo.org for info, until then"
172
			eerror "you can install the ${PN} modules by doing "
173
			eerror ""
174
			eerror "# FEATURES='-sandbox -usersandbox' emerge ${PN}"
175
			die "'sandbox' or 'usersandbox' enabled for 2.5/2.6 kernel module build"
176
		fi
177
	fi
178
}
179
180
			
181
			
182
159
kernel-mod_is_2_4_kernel() {
183
kernel-mod_is_2_4_kernel() {
160
	kernel-mod_getversion
184
	kernel-mod_getversion
161
185
Lines 189-192 Link Here
189
    fi
213
    fi
190
}
214
}
191
215
192
EXPORT_FUNCTIONS src_compile
216
EXPORT_FUNCTIONS src_compile check_module_safe

Return to bug 32737