rpms/kernel/devel kernel-2.6.spec,1.3295,1.3296
Jarod Wilson (jwilson)
fedora-extras-commits at redhat.com
Wed Jul 11 15:37:19 UTC 2007
Author: jwilson
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14484
Modified Files:
kernel-2.6.spec
Log Message:
do a few sanity-checks for --with *only builds (this one's just for you, steved! :)
Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel-2.6.spec,v
retrieving revision 1.3295
retrieving revision 1.3296
diff -u -r1.3295 -r1.3296
--- kernel-2.6.spec 11 Jul 2007 03:52:50 -0000 1.3295
+++ kernel-2.6.spec 11 Jul 2007 15:36:42 -0000 1.3296
@@ -933,6 +933,27 @@
done
%endif
+# do a few sanity-checks for --with *only builds
+%if %{with_baseonly}
+%if !%{with_up}
+echo "Cannot build --with baseonly, up build is disabled"
+exit 1
+%endif
+%endif
+
+%if %{with_smponly}
+%if !%{with_smp}
+echo "Cannot build --with smponly, smp build is disabled"
+exit 1
+%endif
+%endif
+
+%if %{with_xenonly}
+%if !%{with_xen}
+echo "Cannot build --with xenonly, xen build is disabled"
+exit 1
+%endif
+%endif
# First we unpack the kernel tarball.
# If this isn't the first make prep, we use links to the existing clean tarball
More information about the scm-commits
mailing list