Re: Fw: gettext support

2009-06-26 Thread Robert Millan
On Thu, Jun 25, 2009 at 11:09:02PM -0400, Pavel Roskin wrote: > > My main concern is the size of the files we install in /boot/grub. It's > approaching one megabyte already, We don't need to do that just because of OFW. I think the approach of installing /boot/grub/ to that tiny filesystem is j

Re: [RFC] New menu design based on MVC

2009-06-26 Thread Robert Millan
Btw, what is MVC anyway? :-) -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all." __

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Robert Millan
On Thu, Jun 25, 2009 at 04:51:11PM -0400, Pavel Roskin wrote: > > I'd like to avoid preprocessor conditionals in kern/ARCH/dl.c files if > possible. Alright, here's a new patch. It follows your earlier suggestion to use a wrapper to obtain the initialization address for symtab. This way we don'

Re: [RFC] New menu design based on MVC

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 16:31 +0200, Robert Millan wrote: > Btw, what is MVC anyway? :-) http://en.wikipedia.org/wiki/Model-view-controller It's a popular design pattern in designing business applications, which discourages hardcoding the rules (business logic) into the data structures and the user

Re: Fw: gettext support

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 14:47 +0200, Robert Millan wrote: > On Thu, Jun 25, 2009 at 11:09:02PM -0400, Pavel Roskin wrote: > > > > My main concern is the size of the files we install in /boot/grub. It's > > approaching one megabyte already, > > We don't need to do that just because of OFW. I think

Re: Is it possible to install grub4dos on utfs partiton?

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 12:38 +0800, Hongyi Zhao wrote: > FYI, could someone please give me some hints on the maillist/newsgroup > aimed for grub4dos? Hint: search for grub4dos on google.com. -- Regards, Pavel Roskin ___ Grub-devel mailing list Grub-d

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 16:41 +0200, Robert Millan wrote: > On Thu, Jun 25, 2009 at 04:51:11PM -0400, Pavel Roskin wrote: > > > > I'd like to avoid preprocessor conditionals in kern/ARCH/dl.c files if > > possible. > > Alright, here's a new patch. It follows your earlier suggestion to use > a wrap

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Robert Millan
On Fri, Jun 26, 2009 at 12:44:07PM -0400, Pavel Roskin wrote: > On Fri, 2009-06-26 at 16:41 +0200, Robert Millan wrote: > > On Thu, Jun 25, 2009 at 04:51:11PM -0400, Pavel Roskin wrote: > > > > > > I'd like to avoid preprocessor conditionals in kern/ARCH/dl.c files if > > > possible. > > > > Alri

Re: Is it possible to install grub4dos on utfs partiton?

2009-06-26 Thread Robert Millan
On Fri, Jun 26, 2009 at 11:42:29AM -0400, Pavel Roskin wrote: > On Fri, 2009-06-26 at 12:38 +0800, Hongyi Zhao wrote: > > > FYI, could someone please give me some hints on the maillist/newsgroup > > aimed for grub4dos? GRUB 2 works well at chainloading from NTLDR, it's just not documented. Perha

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 19:03 +0200, Robert Millan wrote: > 03-simple-symtab.patch looks nice, much cleaner than what I had. Thanks! > But as for 02-elf-renames.patch we could try to make this more consistent. In > efiemu I used 'W' (inspired by ElfW() macro in glibc), then in some places you > u

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Robert Millan
On Fri, Jun 26, 2009 at 01:16:57PM -0400, Pavel Roskin wrote: > > But as for 02-elf-renames.patch we could try to make this more consistent. > > In > > efiemu I used 'W' (inspired by ElfW() macro in glibc), then in some places > > you > > use 'K' and in other places 'T'. Can we use the same eve

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 19:43 +0200, Robert Millan wrote: > Ok, I don't mind. Unless you have any objections, I'll merge your two > patches with mine and commit that. Please let me try to do it in a nicer way. -- Regards, Pavel Roskin ___ Grub-devel

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 19:43 +0200, Robert Millan wrote: > On Fri, Jun 26, 2009 at 01:16:57PM -0400, Pavel Roskin wrote: > > > But as for 02-elf-renames.patch we could try to make this more > > > consistent. In > > > efiemu I used 'W' (inspired by ElfW() macro in glibc), then in some > > > places

Re: [PATCH] Support splitting SOURCE in multiple rmk files

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 11:13 +0800, Bean wrote: > On Fri, Jun 26, 2009 at 3:31 AM, Pavel Roskin wrote: > > While at that, it would be nice to use a special notation for the > > partial dependencies. > > > > Something like: > > > > aa:+ aa.o > > aa:+ bb.o > > Hi, > > Is this new syntax for GNU mak

Re: FYI: story on LWN.net

2009-06-26 Thread Pavel Roskin
On Thu, 2009-06-25 at 21:08 -0700, Colin D Bennett wrote: > The article states: > > With respect to the technical qualities of GRUB 2, Rintel is mostly > > impressed about GRUB 2's modular architecture. He calls other features such > > as the graphics subsystem with mouse support capable of render

Re: [PATCH] File access library for lua

2009-06-26 Thread Pavel Roskin
On Wed, 2009-06-24 at 00:50 +0200, Robert Millan wrote: > On Tue, Jun 23, 2009 at 06:10:36PM -0400, Pavel Roskin wrote: > > On Tue, 2009-06-23 at 17:27 +0800, Bean wrote: > > > Hi, > > > > > > Some bug fix for osdetect.lua, it also detect windows 98/me, freedos, > > > msdos and freebsd. > > > > W

Re: Fw: gettext support

2009-06-26 Thread Carles Pina i Estany
Hi, On Jun/26/2009, Robert Millan wrote: > Also, if *.mo files contain plain text, compression would work well on > them. They could be gzipped. Yes, they contain plain text. I implemented gettext without the hashtable (the .mo files usually has a hashtable for the search). We will not have l

Re: [PATCH] File access library for lua

2009-06-26 Thread Pavel Roskin
On Fri, 2009-06-26 at 00:39 +0200, Vladimir 'phcoder' Serbinenko wrote: > On Mon, Jun 22, 2009 at 10:06 PM, Pavel Roskin wrote: > > "root hd0,3" has not effect. "root (hd0,3)" and "root=hd0,3" work. > > Yes, that's a bug in the root command. > Can't root command be ditched altogether? It sounds l

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Robert Millan
On Fri, Jun 26, 2009 at 06:26:57PM -0400, Pavel Roskin wrote: > --- a/include/grub/elf.h > +++ b/include/grub/elf.h > @@ -2330,4 +2330,48 @@ typedef Elf32_Addr Elf32_Conflict; > > #define R_X86_64_NUM 24 > > +#ifndef DEFAULT_ELF_BITS > +#define DEFAULT_ELF_BITS (8 * GRUB_TARGET_SIZEOF_

Re: FYI: story on LWN.net

2009-06-26 Thread Robert Millan
On Fri, Jun 26, 2009 at 06:34:00PM -0400, Pavel Roskin wrote: > On Thu, 2009-06-25 at 21:08 -0700, Colin D Bennett wrote: > > > The article states: > > > With respect to the technical qualities of GRUB 2, Rintel is mostly > > > impressed about GRUB 2's modular architecture. He calls other features

Re: [PATCH] File access library for lua

2009-06-26 Thread Pavel Roskin
On Wed, 2009-06-24 at 12:41 +0800, Bean wrote: > Oh, fixed typos now. As for "Windows Vista bootmgr" and "Windows > NT/2000/XP loader", I just copy them from 10_windows.in, I guess there > is a reason for it there. I don't think so. > > inird should be initrd. Please add check for the Fedora s

Re: [PATCH] fix for loading modules from read-only memory area (Re: clean patch for i386-qemu port (Re: [PATCH] i386-qemu port))

2009-06-26 Thread Pavel Roskin
On Sat, 2009-06-27 at 01:57 +0200, Robert Millan wrote: > On Fri, Jun 26, 2009 at 06:26:57PM -0400, Pavel Roskin wrote: > > --- a/include/grub/elf.h > > +++ b/include/grub/elf.h > > @@ -2330,4 +2330,48 @@ typedef Elf32_Addr Elf32_Conflict; > > > > #define R_X86_64_NUM 24 > > > >

Re: [PATCH] Support splitting SOURCE in multiple rmk files

2009-06-26 Thread Bean
On Sat, Jun 27, 2009 at 6:32 AM, Pavel Roskin wrote: > On Fri, 2009-06-26 at 11:13 +0800, Bean wrote: >> On Fri, Jun 26, 2009 at 3:31 AM, Pavel Roskin wrote: > >> > While at that, it would be nice to use a special notation for the >> > partial dependencies. >> > >> > Something like: >> > >> > aa:+

Re: [PATCH] File access library for lua

2009-06-26 Thread Bean
On Sat, Jun 27, 2009 at 8:22 AM, Pavel Roskin wrote: > On Wed, 2009-06-24 at 12:41 +0800, Bean wrote: > >> Oh, fixed typos now. As for "Windows Vista bootmgr"  and "Windows >> NT/2000/XP loader", I just copy them from 10_windows.in, I guess there >> is a reason for it there. > > I don't think so.

Re: [PATCH] Support splitting SOURCE in multiple rmk files

2009-06-26 Thread Pavel Roskin
On Sat, 2009-06-27 at 11:44 +0800, Bean wrote: > Oh, actually aa: aa.o is already a ruby generated rule, it doesn't > exist in rmk file. The original line from rmk would be something like > this: > > aa_SOURCES += aa.c I see. Sorry for the noise. -- Regards, Pavel Roskin ___

Re: [PATCH] File access library for lua

2009-06-26 Thread Pavel Roskin
On Sat, 2009-06-27 at 11:53 +0800, Bean wrote: > Yes, actually it's just a bunch of file_exist AND or OR together, but > I think if we use this kind of test often enough, implement it in c > would be more efficient. So far, we only have one file. I checked the Lua reference manual, and no file r

Re: [PATCH] File access library for lua

2009-06-26 Thread Bean
On Sat, Jun 27, 2009 at 12:04 PM, Pavel Roskin wrote: > On Sat, 2009-06-27 at 11:53 +0800, Bean wrote: > >> Yes, actually it's just a bunch of file_exist AND or OR together, but >> I think if we use this kind of test often enough, implement it in c >> would be more efficient. > > So far, we only ha