Re: Freeze on 27 February

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 22.02.2012 06:35, Richard Laager wrote: On Tue, 2012-02-21 at 17:12 +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > @Richard Laager: Which of ZFS patches aren't committed yet? It's a bit > tricky to see which ones were superseeded. I've attached my current patch set. The patches appl

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
>../../../grub-core/normal/charset.c: In function 'grub_bidi_line_logical_to_visual': ../../../grub-core/normal/charset.c:737: error: cannot optimize possibly infinite > loops If I do what is already done for GRUB_LONG_MIN and use: #define GRUB_INT_MIN (-0x7fff - 1) ...then gcc 4.6 is happy

Re: grub legacy to grub2 upgrade path

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 23.02.2012 05:14, r...@frugalware.org wrote: I am a senior developer for the Frugalware Linux distribution, and I am trying to find an upgrade path so we can leave grub legacy behind. Normal disk installations work perfectly under testing, however I have found a snag with RAID installations we

Re: grub RAID heuristics (how can we avoid "superfluous RAID member (2 found)")

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 02.02.2012 01:55, Daniel Kahn Gillmor wrote: hi folks-- i was speaking with phcoder today on #grub, about getting messages like this from grub when a partition that is part of a Linux SW RAID set (with metadata 0.9x) is close to the end of its containing block device: superfluous RAID mem

Re: The submenu command shows a text-based menu when using a GFX theme.

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 23.02.2012 02:50, Towheed Mohammed wrote: If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme. Instead a text-based menu is shown. The only way a regular user can workaround this at the moment is to reload the theme after

grub legacy to grub2 upgrade path

2012-02-22 Thread ryuo
I am a senior developer for the Frugalware Linux distribution, and I am trying to find an upgrade path so we can leave grub legacy behind. Normal disk installations work perfectly under testing, however I have found a snag with RAID installations we have to support that were setup under grub legacy

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Isaac Dupree
On 02/22/2012 06:03 PM, Lennart Sorensen wrote: On Wed, Feb 22, 2012 at 05:50:37PM -0500, Lennart Sorensen wrote: Now I get: gcc-4.6 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W -I../../../include -I../include -DGRUB_MACHINE_EMU=1 -DGRUB_MACHINE=POWERPC_EMU -DGRUB_TARGET_CPU_POWERP

The submenu command shows a text-based menu when using a GFX theme.

2012-02-22 Thread Towheed Mohammed
If a gfx theme is being used and the submenu command is used to show a submenu, the submenu does not use the gfx theme.  Instead a text-based menu is shown.  The only way a regular user can workaround this at the moment is to reload the theme after the submenu menuentry item is selected. In Ubu

Re: grub-mkfont generate errors when converting truetype fonts

2012-02-22 Thread Towheed Mohammed
Eliminating the codepoints produces 95 glyphs as expected. Just that earlier versions produced 128 glyphs for 0x0-0x7f. After some extensive testing today, the problem may be with some distros ttf fonts. - Original Message - From: Vladimir 'φ-coder/phcoder' Serbinenko To: The developm

Re: How to fix grub-install for IBM powerpc

2012-02-22 Thread Lennart Sorensen
I am running software raid, and I want to install > grub to all the disks and add all the disks to the nvram's boot-device > list so that I can still boot if a device fails. grub-install seems > very much designed with one boot device only in mind. Another problem that might be related

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 05:50:37PM -0500, Lennart Sorensen wrote: > Now I get: > > gcc-4.6 -DHAVE_CONFIG_H -I. -I../../../grub-core -I.. -Wall -W > -I../../../include -I../include -DGRUB_MACHINE_EMU=1 > -DGRUB_MACHINE=POWERPC_EMU -DGRUB_TARGET_CPU_POWERPC=1 -m32 > -DGRUB_FILE=\"normal/charset

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 08:00:54PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Alternative is to add a condition which will ensure the loop > termination but don't interfere with it other wise by using the fact > that min (UINT_MAX, r)=r if r is unsigned int. > > > -- > Regards > Vlad

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 22.02.2012 19:41, Lennart Sorensen wrote: On Wed, Feb 22, 2012 at 01:28:06PM -0500, Lennart Sorensen wrote: Oh the feature for doing multiple #pragma statements throughout the code is new in gcc 4.6. It can't be done in earlier versions. In older versions whatever you say last applies to th

How to fix grub-install for IBM powerpc

2012-02-22 Thread Lennart Sorensen
There is still a small bit of an issue with grub-install on IBM powerpc. I run 'grub-install /dev/sda1' where /dev/sda1 is my prep boot partition. Unfortunately grub-install runs this: # Get the Open Firmware device tree path translation. dev="`echo $grub_device | sed -e 's/\/dev

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 01:28:06PM -0500, Lennart Sorensen wrote: > Oh the feature for doing multiple #pragma statements throughout the code > is new in gcc 4.6. It can't be done in earlier versions. In older > versions whatever you say last applies to the whole file. > > Perhaps a slightly ugly

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 01:01:41PM -0500, Lennart Sorensen wrote: > gcc 4.6 on the other hand now seems to compile with -Werror enabled. Oh the feature for doing multiple #pragma statements throughout the code is new in gcc 4.6. It can't be done in earlier versions. In older versions whatever yo

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 12:41:56PM -0500, Lennart Sorensen wrote: > On Wed, Feb 22, 2012 at 06:35:49PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > > > I don't think -Wno-unsafe-loop-optimisations is valid. One has to > > remove -Wunsafe-loop-optimisations instead, which is currently in

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 12:46:14PM -0500, Lennart Sorensen wrote: > Hmm. > > gcc-4.4 -DHAVE_CONFIG_H -I. -I../.. -Wall -W -I./include -DGRUB_UTIL=1 > -DGRUB_LIBDIR=\"/usr/lib/grub\" -DLOCALEDIR=\"/usr/share/locale\" > -DGRUB_MACHINE_EMU=1 -DGRUB_MACHINE=POWERPC_EMU -DGRUB_TARGET_CPU_POWERPC=1

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 06:35:49PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > I don't think -Wno-unsafe-loop-optimisations is valid. One has to > remove -Wunsafe-loop-optimisations instead, which is currently in > WARN_FLAGS. > It's just a question of spelling. > Also note that warnin

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 12:16:12PM -0500, Lennart Sorensen wrote: > OK I checked out the latest bzr tree, and applied this patch. > > I now get: > ../../grub-core/gnulib/argp.h:610:1: warning: no previous declaration for > 'argp_usage' [-Wmissing-declarations] > ../../grub-core/gnulib/argp.h:616:

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
> I don't think -Wno-unsafe-loop-optimisations is valid. One has to remove -Wunsafe-loop-optimisations instead, which is currently in WARN_FLAGS. It's just a question of spelling. Also note that warnings from gnulib and minilzo are -Wno-error -- Regards Vladimir 'φ-coder/phcoder' Serbinenko =

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 05:50:31PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > === modified file 'conf/Makefile.common' > --- conf/Makefile.common 2012-02-22 15:27:39 + > +++ conf/Makefile.common 2012-02-22 16:29:31 + > @@ -104,7 +104,7 @@ > CFLAGS_GCRY = -Wno-error -W

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 11:18:54AM -0500, Lennart Sorensen wrote: > On Wed, Feb 22, 2012 at 04:57:11PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > > > > >So with this patch, gcc 4.4 is down to 201 warnings, and gcc 4.6 has 175. > > > > > 102 of those warnings are about missing protot

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 22.02.2012 17:25, Lennart Sorensen wrote: On Wed, Feb 22, 2012 at 11:18:54AM -0500, Lennart Sorensen wrote: Well it is in WARN_FLAGS and TARGET_CFLAGS in configure. And during build: gcc-4.4 -DHAVE_CONFIG_H -I. -I../.. -Wall -W -I./include -DGRUB_UTIL=1 -DGRUB_LIBDIR=\"/usr/lib/grub\" -DLO

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 11:25:22AM -0500, Lennart Sorensen wrote: > That actually looks like a mistake. > > HOST_CFLAGS="$HOST_CFLAGS $WARN_FLAGS" > TARGET_CFLAGS="$TARGET_CFLAGS $WARN_FLAGS -g -Wredundant-decls > -Wmissing-prototypes" > > but WARN_FLAGS="-Wall -W -Wshadow -Wold-style-declaratio

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 11:18:54AM -0500, Lennart Sorensen wrote: > Well it is in WARN_FLAGS and TARGET_CFLAGS in configure. > > And during build: > gcc-4.4 -DHAVE_CONFIG_H -I. -I../.. -Wall -W -I./include -DGRUB_UTIL=1 > -DGRUB_LIBDIR=\"/usr/lib/grub\" -DLOCALEDIR=\"/usr/share/locale\" > -DGR

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 04:57:11PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > >So with this patch, gcc 4.4 is down to 201 warnings, and gcc 4.6 has 175. > > > 102 of those warnings are about missing prototypes for argp_usage > > _option_is_short and _option_is_end in argp.h which le

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
So with this patch, gcc 4.4 is down to 201 warnings, and gcc 4.6 has 175. 102 of those warnings are about missing prototypes for argp_usage _option_is_short and _option_is_end in argp.h which leaves 99 warnings for gcc 4.4 and 73 for gcc 4.6. Hm we don't add -Wmissing-prototypes for util

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Wed, Feb 22, 2012 at 10:34:18AM -0500, Lennart Sorensen wrote: > OK, still seeing things like: > > gcc-4.4 -DHAVE_CONFIG_H -I. -I../.. -Wall -W -I./include -DGRUB_UTIL=1 > -DGRUB_LIBDIR=\"/usr/lib/grub\" -DLOCALEDIR=\"/usr/share/locale\" > -DGRUB_MACHINE_EMU=1 -DGRUB_MACHINE=POWERPC_EMU -DG

Re: Lists and aliasing (Re: Freeze on 27 February)

2012-02-22 Thread Lennart Sorensen
On Tue, Feb 21, 2012 at 09:29:08PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > diff --exclude Makefile.util.am --exclude Makefile.in --exclude grub.info > --exclude configure --exclude aclocal.m4 --exclude '*autom4te.cache*' -ur > mainline/configure.ac mainline-mod/configure.ac > --- m

Re: cruft left over from "make uninstall" [was: failed to build bzr head on powerpc (ieee1275)]

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Fixed On 22.02.2012 04:01, Daniel Kahn Gillmor wrote: On 02/21/2012 09:30 PM, Mike Gilbert wrote: I ran into that myself this weekend. Solution: regenerate POTFILES.in. find . -name '*.c' -print | sort> po/POTFILES.in Thanks, that did indeed let the build complete. i completed building it as

Re: How can write the menu grub on the right in arabic language?

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 19.04.2011 07:59, Elham Rastgoo wrote: > > When I write the menu grub in arabic language and move title to the > > right > >in grub.cfg , it just stays on the left :( > >Whereas I can move english title to the left or right !!! > >why?? Easy: you put the spaces before, so they

Re: GNU GRUB pxe.mod missing with efi

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Keep the list CC'ed. On 22.02.2012 14:24, Timothy Wang wrote: grub_dl_resolove_symbols gives me a "error: symbol 'grub_checkkey' not found" This means that core and module version mismatches The arp problem is harder to explain. I have three network cards in my computer the ethernet I am us

Re: GNU GRUB pxe.mod missing with efi

2012-02-22 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Please keep the list CC'ed On 22.02.2012 11:11, Timothy Wang wrote: Dear Vladimir Serbinenko, There is a bug in the bzr. Suppose to be after ver 3940 in dl.c function grub_dl_resolove_sumbols the function still checks for the old name grub_checkkey. I don't see what you mean, this function does