/[gentoo-x86]/sys-kernel/linux-headers/linux-headers-2.6.30-r1.ebuild
Gentoo

Contents of /sys-kernel/linux-headers/linux-headers-2.6.30-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jul 25 18:29:30 2009 UTC (4 years, 8 months ago) by halcy0n
Branch: MAIN
Bump patchset to fix building glibc on ia64
(Portage version: 2.2_rc33-r1/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.30.ebuild,v 1.2 2009/07/25 10:27:07 armin76 Exp $
4
5 ETYPE="headers"
6 H_SUPPORTEDARCH="alpha amd64 arm cris hppa m68k mips ia64 ppc ppc64 s390 sh sparc x86"
7 inherit kernel-2
8 detect_version
9
10 PATCH_VER="2"
11 SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.lzma"
12 [[ -n ${PATCH_VER} ]] && SRC_URI="${SRC_URI} mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.lzma"
13
14 KEYWORDS="-* ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k -mips ~ppc ~ppc64 ~s390 -sh -sparc ~x86"
15
16 DEPEND="app-arch/lzma-utils"
17 RDEPEND=""
18
19 S=${WORKDIR}/gentoo-headers-base-${PV}
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}
25 # workaround #244640
26 mkdir arch/sparc64
27 touch arch/sparc64/Makefile
28 }
29
30 src_install() {
31 kernel-2_src_install
32 cd "${D}"
33 egrep -r \
34 -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
35 -e '\<([us](8|16|32|64))\>' \
36 .
37 headers___fix $(find -type f)
38
39 egrep -l -r -e '__[us](8|16|32|64)' "${D}" | xargs grep -L linux/types.h
40
41 # hrm, build system sucks
42 find "${D}" '(' -name '.install' -o -name '*.cmd' ')' -print0 | xargs -0 rm -f
43
44 # provided by libdrm (for now?)
45 rm -rf "${D}"/$(kernel_header_destdir)/drm
46 }
47
48 src_test() {
49 emake ARCH=$(tc-arch-kernel) headers_check || die
50 }

  ViewVC Help
Powered by ViewVC 1.1.20