Date: Monday, May 11, 2015 @ 18:35:24 Author: anatolik Revision: 133233
FS#44925 Add patch that recognizes new 4.0 linux version Plus compile against gcc-5.1 as new kernel is already uses it Added: crash/trunk/linux_version_4_support.patch Modified: crash/trunk/PKGBUILD -------------------------------+ PKGBUILD | 11 ++++++++--- linux_version_4_support.patch | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-05-11 15:40:58 UTC (rev 133232) +++ PKGBUILD 2015-05-11 16:35:24 UTC (rev 133233) @@ -6,17 +6,22 @@ pkgname=crash pkgver=7.1.0 -pkgrel=1 +pkgrel=2 pkgdesc='Linux kernel crashdump analysis tool' url='http://people.redhat.com/~anderson' arch=(i686 x86_64) license=(GPL) depends=(xz ncurses zlib) -source=(http://people.redhat.com/~anderson/crash-$pkgver.tar.gz) -sha256sums=('12e17267985ad1339b5da931143d4997fa4dafb82027d5664d4b7826175a21ec') +source=(http://people.redhat.com/~anderson/crash-$pkgver.tar.gz + linux_version_4_support.patch) +sha256sums=('12e17267985ad1339b5da931143d4997fa4dafb82027d5664d4b7826175a21ec' + 'e535507a1b3c6ca366513beb82b205969a33085ecd48952610f96f3d717bc022') prepare() { cd crash-$pkgver + + patch -Np1 -i "${srcdir}/linux_version_4_support.patch" + make gdb_unzip sed -i '/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/' gdb-7.6/libiberty/configure } Added: linux_version_4_support.patch =================================================================== --- linux_version_4_support.patch (rev 0) +++ linux_version_4_support.patch 2015-05-11 16:35:24 UTC (rev 133233) @@ -0,0 +1,32 @@ +commit db07dbf5a7e19806b1629bd4125e6643978c6f9f +Author: Dave Anderson <[email protected]> +Date: Thu Feb 19 16:16:33 2015 -0500 + + Prepare for the future increment of Linux 3.x to 4.x. + ([email protected]) + +diff --git a/kernel.c b/kernel.c +index cf858c2..a5e0c64 100644 +--- a/kernel.c ++++ b/kernel.c +@@ -1211,7 +1211,8 @@ verify_namelist() + sprintf(buffer3, "(unknown)"); + while (fgets(buffer, BUFSIZE-1, pipe)) { + if (!strstr(buffer, "Linux version 2.") && +- !strstr(buffer, "Linux version 3.")) ++ !strstr(buffer, "Linux version 3.") && ++ !strstr(buffer, "Linux version 4.")) + continue; + + if (strstr(buffer, kt->proc_version)) { +@@ -4909,7 +4910,8 @@ debug_kernel_version(char *namelist) + argc = 0; + while (fgets(buf, BUFSIZE-1, pipe)) { + if (!strstr(buf, "Linux version 2.") && +- !strstr(buf, "Linux version 3.")) ++ !strstr(buf, "Linux version 3.") && ++ !strstr(buf, "Linux version 4.")) + continue; + + argc = parse_line(buf, arglist); +
