redhat: speed up userland-only rpm builds 39/13239/2
authorStephan Wiesand <stephan.wiesand@desy.de>
Mon, 2 Jul 2018 11:33:20 +0000 (13:33 +0200)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 6 Jul 2018 03:27:43 +0000 (23:27 -0400)
When building with --define "build_modules 0", have configure
skip the Linux kernel tests, which are slow and many.

Change-Id: Ie318bf4939776c9a3f8594dcdd5be54b446f33dd
Reviewed-on: https://gerrit.openafs.org/13239
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/packaging/RedHat/openafs.spec.in

index 1412167..de2c469 100644 (file)
@@ -591,6 +591,8 @@ export KRB5_CONFIG
        --with-linux-kernel-packaging \
 %if %{build_modules}
        --with-linux-kernel-headers=${ksrc} \
+%else
+       --disable-kernel-module \
 %endif
 %if %{krb5support}
        --with-krb5 \