rpms/kernel/devel kernel.spec,1.421,1.422

Dennis Gilmore (ausil) fedora-extras-commits at redhat.com
Wed Feb 13 19:44:00 UTC 2008


Author: ausil

Update of /cvs/extras/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4851

Modified Files:
	kernel.spec 
Log Message:
update sparc building
fix config handling so we can build headers when we have no configs



Index: kernel.spec
===================================================================
RCS file: /cvs/extras/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.421
retrieving revision 1.422
diff -u -r1.421 -r1.422
--- kernel.spec	12 Feb 2008 23:51:15 -0000	1.421
+++ kernel.spec	13 Feb 2008 19:43:25 -0000	1.422
@@ -247,8 +247,8 @@
 %endif
 
 # no need to build headers again for these arches,
-# they can just use i386 and ppc64 and sparc headers
-%ifarch i586 i686 ppc64iseries sparc64
+# they can just use i386 and ppc64 headers
+%ifarch i586 i686 ppc64iseries 
 %define with_headers 0
 %endif
 
@@ -264,7 +264,7 @@
 %define with_bootwrapper 0
 %endif
 
-# sparse blows up on ppc64
+# sparse blows up on ppc64 alpha and sparc64
 %ifarch ppc64 ppc alpha sparc64
 %define with_sparse 0
 %endif
@@ -304,8 +304,7 @@
 %endif
 
 %ifarch sparc
-# Yes, this is a hack. We want both sets of headers in the sparc.rpm
-%define hdrarch sparc64
+# We only build sparc headers since we dont support sparc32 hardware
 %endif
 
 %ifarch sparc64
@@ -1171,6 +1170,9 @@
 
 cp %{SOURCE10} Documentation/
 
+# only deal with configs if we are going to build for the arch
+%ifnarch %nobuildarches
+
 mkdir configs
 
 # Remove configs not for the buildarch
@@ -1193,6 +1195,8 @@
   echo "# $Arch" > configs/$i
   cat .config >> configs/$i
 done
+# end of kernel config 
+%endif
 
 # get rid of unwanted files resulting from patch fuzz
 find . \( -name "*.orig" -o -name "*~" \) -exec rm -f {} \; >/dev/null
@@ -1738,6 +1742,9 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL} -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.conf %{with_xen} xen
 
 %changelog
+* Wed Feb 13 2008 Dennis Gilmore <dennis at ausil.us>
+- build headers on sparc64 because the buildsys needs them
+
 * Tue Feb 12 2008 Dave Jones <davej at redhat.com>
 - Add latest version of almost-upstream restricted devmem patch.
 




More information about the fedora-extras-commits mailing list