rpms/kernel/F-10 linux-2.6-kbuild-fix-unifdef.c-usage-of-getline.patch, NONE, 1.1.2.1 kernel.spec, 1.1206.2.64, 1.1206.2.65
Chuck Ebbert
cebbert at fedoraproject.org
Wed May 20 22:50:21 UTC 2009
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12306
Modified Files:
Tag: private-fedora-10-2_6_27
kernel.spec
Added Files:
Tag: private-fedora-10-2_6_27
linux-2.6-kbuild-fix-unifdef.c-usage-of-getline.patch
Log Message:
Allow building the F-10 2.6.27 kernel on F-11.
linux-2.6-kbuild-fix-unifdef.c-usage-of-getline.patch:
--- NEW FILE linux-2.6-kbuild-fix-unifdef.c-usage-of-getline.patch ---
From: Justin P. Mattock <justinmattock at gmail.com>
Date: Sat, 7 Mar 2009 12:31:29 +0000 (+0100)
Subject: kbuild: fix C libary confusion in unifdef.c due to getline()
X-Git-Tag: v2.6.29-rc8~2^2~3
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7
kbuild: fix C libary confusion in unifdef.c due to getline()
This fixes an error when compiling the kernel.
CHK include/linux/version.h
HOSTCC scripts/unifdef
scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
make[1]: *** [scripts/unifdef] Error 1
make: *** [__headers] Error 2
Signed-off-by: Justin P. Mattock <justinmattock at gmail.com>
Cc: Frederic Weisbecker <fweisbec at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
---
diff --git a/scripts/unifdef.c b/scripts/unifdef.c
index 552025e..05a31a6 100644
--- a/scripts/unifdef.c
+++ b/scripts/unifdef.c
@@ -206,7 +206,7 @@ static void done(void);
static void error(const char *);
static int findsym(const char *);
static void flushline(bool);
-static Linetype getline(void);
+static Linetype get_line(void);
static Linetype ifeval(const char **);
static void ignoreoff(void);
static void ignoreon(void);
@@ -512,7 +512,7 @@ process(void)
for (;;) {
linenum++;
- lineval = getline();
+ lineval = get_line();
trans_table[ifstate[depth]][lineval]();
debug("process %s -> %s depth %d",
linetype_name[lineval],
@@ -526,7 +526,7 @@ process(void)
* help from skipcomment().
*/
static Linetype
-getline(void)
+get_line(void)
{
const char *cp;
int cursym;
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-10/kernel.spec,v
retrieving revision 1.1206.2.64
retrieving revision 1.1206.2.65
diff -u -p -r1.1206.2.64 -r1.1206.2.65
--- kernel.spec 20 May 2009 22:25:35 -0000 1.1206.2.64
+++ kernel.spec 20 May 2009 22:49:50 -0000 1.1206.2.65
@@ -572,6 +572,9 @@ Patch04: linux-2.6-compile-fixes.patch
# build tweak for build ID magic, even for -vanilla
Patch05: linux-2.6-makefile-after_link.patch
+# fix build on newer userspace, even for -vanilla
+Patch06: linux-2.6-kbuild-fix-unifdef.c-usage-of-getline.patch
+
%if !%{nopatches}
# revert upstream patches we get via other methods
@@ -1115,6 +1118,9 @@ ApplyPatch linux-2.6-build-nonintconfig.
ApplyPatch linux-2.6-makefile-after_link.patch
+# Fix building kernel on newer userspace
+ApplyPatch linux-2.6-kbuild-fix-unifdef.c-usage-of-getline.patch
+
#
# misc small stuff to make things compile
#
@@ -1991,6 +1997,9 @@ fi
%kernel_variant_files -k vmlinux %{with_kdump} kdump
%changelog
+* Wed Apr 20 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.27.24-170.2.65
+- Allow building the F-10 2.6.27 kernel on F-11.
+
* Wed Apr 20 2009 Chuck Ebbert <cebbert at redhat.com> 2.6.27.24-170.2.64
- ext4 fixes from Fedora 11:
linux-2.6-ext4-clear-unwritten-flag.patch
More information about the scm-commits
mailing list