Mailinglist Archive: opensuse-factory (904 mails)
| < Previous | Next > |
[opensuse-factory] grub-0.97 patch error
- From: "Peng tao" <bergwolf@xxxxxxxxx>
- Date: Tue, 22 Apr 2008 22:10:25 +0800
- Message-id: <6149e97b0804220710v6241a11bq60a066587cdb257e@xxxxxxxxxxxxxx>
Hi, all
I'm a student working on an opensuse GSoC project which aims at
enabling ext4 file system as grub legacy boot patition for opensuse
and others. As I was told in the other mailing list, I downloaded the
latest src.rpm file from
http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/src/grub-0.97-117.src.rpm
After unrpming the source package, and following the patch order in
grub.spec, all patches are applied successfully (wildcard patches are
disabled in grub.spec, so I didn't apply them either).
BUT, there are some problems without wildcard patches.
The dir function declaration in stage2/shared.h is modified in
stage2-wildcard.diff and this modification is needed by other files in
stage2 directory. Without it, I got compiling errors saying
disk_io.c: In function 'print_completions':
disk_io.c:1481: error: too many arguments to function 'dir'
disk_io.c:1500: error: too many arguments to function 'dir'
After making the following changes, everything goes right.
--- stage2/shared.h.orig 2008-04-22 11:06:15.000000000 +0800
+++ stage2/shared.h 2008-04-22 11:14:48.000000000 +0800
@@ -1006,7 +1006,7 @@
/* List the contents of the directory that was opened with GRUB_OPEN,
printing all completions. */
-int dir (char *dirname);
+int dir (char *dirname, void (*handle)(char *));
int set_bootdev (int hdbias);
Hope there's someone taking care of this:-)
--
RGDS
Bergwolf
................
Here lieth one whose name was writ on water.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
I'm a student working on an opensuse GSoC project which aims at
enabling ext4 file system as grub legacy boot patition for opensuse
and others. As I was told in the other mailing list, I downloaded the
latest src.rpm file from
http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/src/grub-0.97-117.src.rpm
After unrpming the source package, and following the patch order in
grub.spec, all patches are applied successfully (wildcard patches are
disabled in grub.spec, so I didn't apply them either).
BUT, there are some problems without wildcard patches.
The dir function declaration in stage2/shared.h is modified in
stage2-wildcard.diff and this modification is needed by other files in
stage2 directory. Without it, I got compiling errors saying
disk_io.c: In function 'print_completions':
disk_io.c:1481: error: too many arguments to function 'dir'
disk_io.c:1500: error: too many arguments to function 'dir'
After making the following changes, everything goes right.
--- stage2/shared.h.orig 2008-04-22 11:06:15.000000000 +0800
+++ stage2/shared.h 2008-04-22 11:14:48.000000000 +0800
@@ -1006,7 +1006,7 @@
/* List the contents of the directory that was opened with GRUB_OPEN,
printing all completions. */
-int dir (char *dirname);
+int dir (char *dirname, void (*handle)(char *));
int set_bootdev (int hdbias);
Hope there's someone taking care of this:-)
--
RGDS
Bergwolf
................
Here lieth one whose name was writ on water.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx
| < Previous | Next > |