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

Collapse All | Expand All

(-)/var/lib/layman/musl/sys-kernel/linux-headers/linux-headers-3.18-r99.ebuild (-8 / +8 lines)
Lines 5-11 Link Here
5
EAPI="4"
5
EAPI="4"
6
6
7
ETYPE="headers"
7
ETYPE="headers"
8
H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa"
8
H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 bfin cris frv hexagon hppa ia64 m32r m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa"
9
inherit kernel-2
9
inherit kernel-2
10
detect_version
10
detect_version
11
11
Lines 13-19 Link Here
13
SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
13
SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
14
	${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}"
14
	${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}"
15
15
16
KEYWORDS="amd64 arm ~mips ppc x86"
16
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
17
17
18
DEPEND="app-arch/xz-utils
18
DEPEND="app-arch/xz-utils
19
	dev-lang/perl"
19
	dev-lang/perl"
Lines 27-35 Link Here
27
27
28
src_prepare() {
28
src_prepare() {
29
	[[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}
29
	[[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}
30
	epatch "${FILESDIR}"/glibc-specific-inclusion-of-sysinfo.h-in-kernel.h.patch
30
	epatch "${FILESDIR}"/libc-4.3-portability.patch
31
	epatch "${FILESDIR}"/libc-compat.h-fix-some-issues-arising-from-in6.h.patch
32
	epatch "${FILESDIR}"/libc-compat.h-prevent-redefinition-of-struct-ethhdr.patch
33
}
31
}
34
32
35
src_install() {
33
src_install() {
Lines 38-49 Link Here
38
	# hrm, build system sucks
36
	# hrm, build system sucks
39
	find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
37
	find "${ED}" '(' -name '.install' -o -name '*.cmd' ')' -delete
40
	find "${ED}" -depth -type d -delete 2>/dev/null
38
	find "${ED}" -depth -type d -delete 2>/dev/null
41
42
	# provided by libdrm (for now?)
43
	rm -rf "${ED}"/$(kernel_header_destdir)/drm
44
}
39
}
45
40
46
src_test() {
41
src_test() {
42
	# Make sure no uapi/ include paths are used by accident.
43
	egrep -r \
44
		-e '# *include.*["<]uapi/' \
45
		"${D}" && die "#include uapi/xxx detected"
46
47
	einfo "Possible unescaped attribute/type usage"
47
	einfo "Possible unescaped attribute/type usage"
48
	egrep -r \
48
	egrep -r \
49
		-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
49
		-e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \

Return to bug 544476