Disable kdump build on linux 2.6
authorMarc Dionne <marc.c.dionne@gmail.com>
Sat, 18 Jul 2009 01:29:10 +0000 (21:29 -0400)
committerRuss Allbery <rra@stanford.edu>
Sat, 18 Jul 2009 02:45:30 +0000 (19:45 -0700)
Don't try to build kdump on linux 2.6 where it has been known to be broken
for a long time.  The build failure was ignored, but produced a large number
of errors and warnings, polluting the build log.
On a test amd64_linux26 system with a recent kernel and --enable-warnings,
this results in over 750 fewer warnings and 100+ fewer errors.

Reviewed-on: http://gerrit.openafs.org/http://gerrit.openafs.org/150
Tested-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Russ Allbery <rra@stanford.edu>

src/venus/Makefile.in

index 1af3c7b..0247e98 100644 (file)
@@ -157,6 +157,8 @@ kdump: kdump.o
                                ;; \
                        esac || exit $$? ; \
                done ;; \
+       *linux26* | *linux_26* ) \
+               touch kdump ;; \
        *alpha_linux* ) \
                $(MAKE) kdump-alpha_linux-@LINUX_VERSION@ ;; \
        *linux* ) \
@@ -180,6 +182,8 @@ kdump64:
 kdump.o: kdump.c ${INCLS} AFS_component_version_number.c
        -set -x; \
        case ${SYS_NAME} in \
+               *linux26* | *linux_26* ) \
+                       touch kdump.o ;; \
                alpha_linux* ) \
                        $(MAKE) kdump-alpha_linux-${LINUX_VERSION}.o ;; \
                *linux* ) \
@@ -281,6 +285,8 @@ install: kdump-build fs livesys up fstrace cmdebug
        sun*_5[789] | sun*_510 ) \
                ${INSTALL_SCRIPT} kdump.sh.solaris7 ${DESTDIR}${sbindir}/kdump32; \
                ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump;; \
+       *linux26* | *linux_26* ) \
+               ;; \
        *linux* ) \
                ${INSTALL_SCRIPT} kdump.sh.linux ${DESTDIR}${sbindir}/kdump; \
                ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump ;; \
@@ -317,6 +323,8 @@ dest: kdump-build fs livesys up fstrace cmdebug
        sun*_5[789] | sun*_510 ) \
                ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.solaris7 ${DEST}/etc/kdump; \
                ${INSTALL_PROGRAM} ${srcdir}/kdump ${DEST}/etc/kdump32;; \
+       *linux26* | *linux_26* ) \
+               ;; \
        *alpha_linux* ) \
                ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.linux ${DEST}/etc/kdump; \
                ${INSTALL_PROGRAM} kdump-alpha_linux-${LINUX_VERSION} ${DEST}/etc/kdump-${LINUX_VERSION} ;; \