# $Id$ PNAME="linux-libc-headers" PVER="4.9.43" PBUILD="r1" # when upgrading linux headers, glibc must be rebuilded # on system bootstrap you should rebuild the whole toolchain # linux-libc-headers -> binutils -> gcc-full -> libc -> binutils -> gcc-full -> libc # # or one-way solution (not always safe, use this only for interim gcc releases) # linux-libc-headers -> libc -> binutils -> gcc-full -> binutils -> libc # # each new gcc release needs a rebuild of libtool # no need to waste time here msetfeature "!strip" KERNEL_TYPE="headers" BRANCH="alx" TARBALLPVER="${PVER%.*}" sminclude kernel SRC_URI+=( mirror://kernel-${BRANCH}/patches-${PVER%.*}/0100-4.9.1-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0101-4.9.2-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0102-4.9.3-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0103-4.9.4-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0104-4.9.5-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0105-4.9.6-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0106-4.9.7-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0107-4.9.8-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0108-4.9.9-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0109-4.9.10-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0110-4.9.11-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0111-4.9.12-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0112-4.9.13-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0113-4.9.14-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0114-4.9.15-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0115-4.9.16-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0116-4.9.17-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0117-4.9.18-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0118-4.9.19-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0119-4.9.20-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0120-4.9.21-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0121-4.9.22-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0122-4.9.23-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0123-4.9.24-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0124-4.9.25-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0125-4.9.26-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0126-4.9.27-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0127-4.9.28-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0128-4.9.29-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0129-4.9.30-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0130-4.9.31-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0131-4.9.32-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0132-4.9.33-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0133-4.9.34-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0134-4.9.35-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0135-4.9.36-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0136-4.9.37-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0137-4.9.38-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0138-4.9.39-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0139-4.9.40-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0140-4.9.41-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0141-4.9.42-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0142-4.9.43-all-fixes.patch ) # stable-tree #UP2DATE="updatecmd http://www.kernel.org/ | grep -A1 -i 'latest stable' | sed -n 's/.*\([0-9].[0-9].[0-9].*\).*/\1/;$ p'" # longterm tree UP2DATE="updatecmd http://www.kernel.org/ | grep -A1 -i 'longterm:' | sed 's/.*:\ \([0-9]\.[0-9].*\)\ [0-9].*/\1/;q'" kernel_apply_patches() { cd ${SRCDIR} # 100-150 - official updates mpatch 0100-4.9.1-all-fixes.patch || die mpatch 0101-4.9.2-all-fixes.patch || die mpatch 0102-4.9.3-all-fixes.patch || die mpatch 0103-4.9.4-all-fixes.patch || die mpatch 0104-4.9.5-all-fixes.patch || die mpatch 0105-4.9.6-all-fixes.patch || die mpatch 0106-4.9.7-all-fixes.patch || die mpatch 0107-4.9.8-all-fixes.patch || die mpatch 0108-4.9.9-all-fixes.patch || die mpatch 0109-4.9.10-all-fixes.patch || die mpatch 0110-4.9.11-all-fixes.patch || die mpatch 0111-4.9.12-all-fixes.patch || die mpatch 0112-4.9.13-all-fixes.patch || die mpatch 0113-4.9.14-all-fixes.patch || die mpatch 0114-4.9.15-all-fixes.patch || die mpatch 0115-4.9.16-all-fixes.patch || die mpatch 0116-4.9.17-all-fixes.patch || die mpatch 0117-4.9.18-all-fixes.patch || die mpatch 0118-4.9.19-all-fixes.patch || die mpatch 0119-4.9.20-all-fixes.patch || die mpatch 0120-4.9.21-all-fixes.patch || die mpatch 0121-4.9.22-all-fixes.patch || die mpatch 0122-4.9.23-all-fixes.patch || die mpatch 0123-4.9.24-all-fixes.patch || die mpatch 0124-4.9.25-all-fixes.patch || die mpatch 0125-4.9.26-all-fixes.patch || die mpatch 0126-4.9.27-all-fixes.patch || die mpatch 0127-4.9.28-all-fixes.patch || die mpatch 0128-4.9.29-all-fixes.patch || die mpatch 0129-4.9.30-all-fixes.patch || die mpatch 0130-4.9.31-all-fixes.patch || die mpatch 0131-4.9.32-all-fixes.patch || die mpatch 0132-4.9.33-all-fixes.patch || die mpatch 0133-4.9.34-all-fixes.patch || die mpatch 0134-4.9.35-all-fixes.patch || die mpatch 0135-4.9.36-all-fixes.patch || die mpatch 0136-4.9.37-all-fixes.patch || die mpatch 0137-4.9.38-all-fixes.patch || die mpatch 0138-4.9.39-all-fixes.patch || die mpatch 0139-4.9.40-all-fixes.patch || die mpatch 0140-4.9.41-all-fixes.patch || die mpatch 0141-4.9.42-all-fixes.patch || die mpatch 0142-4.9.43-all-fixes.patch || die } src_install() { kernel_src_install # use always drm headers from libdrm mdelete -r /usr/include/drm || die }