rpms/kernel/F-7 kernel-2.6.spec,1.3266,1.3267

Jarod Wilson (jwilson) fedora-extras-commits at redhat.com
Wed Jul 11 15:38:47 UTC 2007


Author: jwilson

Update of /cvs/pkgs/rpms/kernel/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv14543

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/F-7/kernel-2.6.spec,v
retrieving revision 1.3266
retrieving revision 1.3267
diff -u -r1.3266 -r1.3267
--- kernel-2.6.spec	11 Jul 2007 14:19:20 -0000	1.3266
+++ kernel-2.6.spec	11 Jul 2007 15:38:12 -0000	1.3267
@@ -913,6 +913,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 fedora-extras-commits mailing list