# $Id$ PNAME="linux-libc-headers" PVER="4.19.81" 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.19.1-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0101-4.19.2-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0102-4.19.3-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0103-4.19.4-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0104-4.19.5-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0105-4.19.6-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0106-4.19.7-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0107-4.19.8-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0108-4.19.9-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0109-4.19.10-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0110-4.19.11-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0111-4.19.12-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0112-4.19.13-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0113-4.19.14-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0114-4.19.15-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0115-4.19.16-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0116-4.19.17-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0117-4.19.18-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0118-4.19.19-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0119-4.19.20-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0120-4.19.21-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0121-4.19.22-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0122-4.19.23-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0123-4.19.24-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0124-4.19.25-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0125-4.19.26-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0126-4.19.27-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0127-4.19.28-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0128-4.19.29-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0129-4.19.30-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0130-4.19.31-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0131-4.19.32-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0132-4.19.33-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0133-4.19.34-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0134-4.19.35-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0135-4.19.36-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0136-4.19.37-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0137-4.19.38-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0138-4.19.39-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0139-4.19.40-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0140-4.19.41-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0141-4.19.42-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0142-4.19.43-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0143-4.19.44-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0144-4.19.45-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0145-4.19.46-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0146-4.19.47-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0147-4.19.48-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0148-4.19.49-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0149-4.19.50-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0150-4.19.51-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0151-4.19.52-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0152-4.19.53-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0153-4.19.54-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0154-4.19.55-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0155-4.19.56-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0156-4.19.57-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0157-4.19.58-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0158-4.19.59-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0159-4.19.60-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0160-4.19.61-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0161-4.19.62-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0162-4.19.63-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0163-4.19.64-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0164-4.19.65-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0165-4.19.66-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0166-4.19.67-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0167-4.19.68-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0168-4.19.69-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0169-4.19.70-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0170-4.19.71-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0171-4.19.72-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0172-4.19.73-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0173-4.19.74-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0174-4.19.75-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0175-4.19.76-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0176-4.19.77-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0177-4.19.78-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0178-4.19.79-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0179-4.19.80-all-fixes.patch mirror://kernel-${BRANCH}/patches-${PVER%.*}/0180-4.19.81-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.19.1-all-fixes.patch || die mpatch 0101-4.19.2-all-fixes.patch || die mpatch 0102-4.19.3-all-fixes.patch || die mpatch 0103-4.19.4-all-fixes.patch || die mpatch 0104-4.19.5-all-fixes.patch || die mpatch 0105-4.19.6-all-fixes.patch || die mpatch 0106-4.19.7-all-fixes.patch || die mpatch 0107-4.19.8-all-fixes.patch || die mpatch 0108-4.19.9-all-fixes.patch || die mpatch 0109-4.19.10-all-fixes.patch || die mpatch 0110-4.19.11-all-fixes.patch || die mpatch 0111-4.19.12-all-fixes.patch || die mpatch 0112-4.19.13-all-fixes.patch || die mpatch 0113-4.19.14-all-fixes.patch || die mpatch 0114-4.19.15-all-fixes.patch || die mpatch 0115-4.19.16-all-fixes.patch || die mpatch 0116-4.19.17-all-fixes.patch || die mpatch 0117-4.19.18-all-fixes.patch || die mpatch 0118-4.19.19-all-fixes.patch || die mpatch 0119-4.19.20-all-fixes.patch || die mpatch 0120-4.19.21-all-fixes.patch || die mpatch 0121-4.19.22-all-fixes.patch || die mpatch 0122-4.19.23-all-fixes.patch || die mpatch 0123-4.19.24-all-fixes.patch || die mpatch 0124-4.19.25-all-fixes.patch || die mpatch 0125-4.19.26-all-fixes.patch || die mpatch 0126-4.19.27-all-fixes.patch || die mpatch 0127-4.19.28-all-fixes.patch || die mpatch 0128-4.19.29-all-fixes.patch || die mpatch 0129-4.19.30-all-fixes.patch || die mpatch 0130-4.19.31-all-fixes.patch || die mpatch 0131-4.19.32-all-fixes.patch || die mpatch 0132-4.19.33-all-fixes.patch || die mpatch 0133-4.19.34-all-fixes.patch || die mpatch 0134-4.19.35-all-fixes.patch || die mpatch 0135-4.19.36-all-fixes.patch || die mpatch 0136-4.19.37-all-fixes.patch || die mpatch 0137-4.19.38-all-fixes.patch || die mpatch 0138-4.19.39-all-fixes.patch || die mpatch 0139-4.19.40-all-fixes.patch || die mpatch 0140-4.19.41-all-fixes.patch || die mpatch 0141-4.19.42-all-fixes.patch || die mpatch 0142-4.19.43-all-fixes.patch || die mpatch 0143-4.19.44-all-fixes.patch || die mpatch 0144-4.19.45-all-fixes.patch || die mpatch 0145-4.19.46-all-fixes.patch || die mpatch 0146-4.19.47-all-fixes.patch || die mpatch 0147-4.19.48-all-fixes.patch || die mpatch 0148-4.19.49-all-fixes.patch || die mpatch 0149-4.19.50-all-fixes.patch || die mpatch 0150-4.19.51-all-fixes.patch || die mpatch 0151-4.19.52-all-fixes.patch || die mpatch 0152-4.19.53-all-fixes.patch || die mpatch 0153-4.19.54-all-fixes.patch || die mpatch 0154-4.19.55-all-fixes.patch || die mpatch 0155-4.19.56-all-fixes.patch || die mpatch 0156-4.19.57-all-fixes.patch || die mpatch 0157-4.19.58-all-fixes.patch || die mpatch 0158-4.19.59-all-fixes.patch || die mpatch 0159-4.19.60-all-fixes.patch || die mpatch 0160-4.19.61-all-fixes.patch || die mpatch 0161-4.19.62-all-fixes.patch || die mpatch 0162-4.19.63-all-fixes.patch || die mpatch 0163-4.19.64-all-fixes.patch || die mpatch 0164-4.19.65-all-fixes.patch || die mpatch 0165-4.19.66-all-fixes.patch || die mpatch 0166-4.19.67-all-fixes.patch || die mpatch 0167-4.19.68-all-fixes.patch || die mpatch 0168-4.19.69-all-fixes.patch || die mpatch 0169-4.19.70-all-fixes.patch || die mpatch 0170-4.19.71-all-fixes.patch || die mpatch 0171-4.19.72-all-fixes.patch || die mpatch 0172-4.19.73-all-fixes.patch || die mpatch 0173-4.19.74-all-fixes.patch || die mpatch 0174-4.19.75-all-fixes.patch || die mpatch 0175-4.19.76-all-fixes.patch || die mpatch 0176-4.19.77-all-fixes.patch || die mpatch 0177-4.19.78-all-fixes.patch || die mpatch 0178.4.19.79-all-fixes.patch || die mpatch 0179-4.19.80-all-fixes.patch || die mpatch 0180-4.19.81-all-fixes.patch || die } src_install() { kernel_src_install # use always drm headers from libdrm mdelete -r /usr/include/drm || die }