rpms/kernel/F-9 linux-2.6-compile-fix-gcc-43.patch, 1.7, 1.8 kernel.spec, 1.735, 1.736
Chuck Ebbert (cebbert)
fedora-extras-commits at redhat.com
Wed Aug 6 02:17:38 UTC 2008
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30951
Modified Files:
kernel.spec
Added Files:
linux-2.6-compile-fix-gcc-43.patch
Log Message:
Hopefully fix build on ppc64.
linux-2.6-compile-fix-gcc-43.patch:
Index: linux-2.6-compile-fix-gcc-43.patch
===================================================================
RCS file: linux-2.6-compile-fix-gcc-43.patch
diff -N linux-2.6-compile-fix-gcc-43.patch
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ linux-2.6-compile-fix-gcc-43.patch 6 Aug 2008 02:17:08 -0000 1.8
@@ -0,0 +1,27 @@
+--- a/include/linux/module.h
++++ b/include/linux/module.h
+@@ -30,6 +30,15 @@
+
+ #define MODULE_NAME_LEN (64 - sizeof(unsigned long))
+
++/* On some platforms relocations to global data cannot go into read-only
++ * sections, so 'const' makes no sense and even causes compile failures
++ * with some compilers. */
++#if defined(CONFIG_ALPHA) || defined(CONFIG_IA64) || defined(CONFIG_PPC64)
++#define __ksym_const
++#else
++#define __ksym_const const
++#endif
++
+ struct kernel_symbol
+ {
+ unsigned long value;
+@@ -192,7 +201,7 @@ void *__symbol_get_gpl(const char *symbol);
+ static const char __kstrtab_##sym[] \
+ __attribute__((section("__ksymtab_strings"), aligned(1))) \
+ = MODULE_SYMBOL_PREFIX #sym; \
+- static const struct kernel_symbol __ksymtab_##sym \
++ static __ksym_const struct kernel_symbol __ksymtab_##sym \
+ __used \
+ __attribute__((section("__ksymtab" sec), unused)) \
+ = { (unsigned long)&sym, __kstrtab_##sym }
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-9/kernel.spec,v
retrieving revision 1.735
retrieving revision 1.736
diff -u -r1.735 -r1.736
--- kernel.spec 5 Aug 2008 15:06:18 -0000 1.735
+++ kernel.spec 6 Aug 2008 02:17:08 -0000 1.736
@@ -561,6 +561,7 @@
# we also need compile fixes for -vanilla
Patch07: linux-2.6-compile-fixes.patch
+Patch08: linux-2.6-compile-fix-gcc-43.patch
%if !%{nopatches}
@@ -986,6 +987,7 @@
if [ "$C" -gt 10 ]; then
ApplyPatch linux-2.6-compile-fixes.patch
fi
+ApplyPatch linux-2.6-compile-fix-gcc-43.patch
%if !%{nopatches}
@@ -1773,6 +1775,9 @@
%kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL}.xen -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.xen.conf %{with_xen} xen
%changelog
+* Tue Aug 05 2008 Chuck Ebbert <cebbert at redhat.com> 2.6.26.1-9
+- Hopefully fix build on ppc64.
+
* Tue Aug 05 2008 Jarod Wilson <jwilson at redhat.com> 2.6.26.1-8
- updated firewire stack w/bugfixes and iso timestamp support
- updated lirc drivers w/new device support
More information about the fedora-extras-commits
mailing list