Your message dated Wed, 09 Nov 2011 09:29:50 +0100
with message-id <[email protected]>
and subject line augeas-lenses: grub lens fails to parse on debian, patch 
attached
has caused the Debian Bug report #513523,
regarding augeas-lenses: grub lens fails to parse on debian, patch attached
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
513523: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513523
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: augeas-lenses
Version: 0.3.6-1
Severity: normal
Tags: patch

The grub lens doesn't parse debian's menu.lst properly, due to the color line 
in the file.
I brought this issue to upstream and lutter fixed up the lens to parse it and 
committed
it upstream to their repository:

http://git.fedorahosted.org/git/?p=augeas.git;a=blob_plain;f=lenses/grub.aug;hb=6be54650416f6660541602bd8cd84be17bff1f55

Remember, if you grab this latest file, you need to make sure to change the 
location of the grub menu.lst for debian's location!

Thanks,
micah

ps - if you would like me to sponsor an upload as a DD, I can do it.


-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-vserver-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

augeas-lenses depends on no packages.

augeas-lenses recommends no packages.

Versions of packages augeas-lenses suggests:
pn  libaugeas0                    <none>     (no description available)

-- no debconf information
--- /usr/share/augeas/lenses/grub.aug   2009-01-27 16:55:00.000000000 -0500
+++ ./grub.aug  2009-01-29 15:46:35.000000000 -0500
@@ -8,6 +8,7 @@
     let value_to_eol = store /[^= \t][^\n]*/
     let eol = Util.del_str "\n"
     let del_to_eol = del /[^\n]*/ ""
+    let opt_ws = Util.del_opt_ws ""
     let value_sep (dflt:string) = del /[ \t]*[ \t=][ \t]*/ dflt
 
     let kw_arg (kw:string) (indent:string) (dflt_sep:string) =
@@ -24,6 +25,19 @@
 
     let kw_pres (kw:string) = [ key kw . del_to_eol . eol ]
 
+    let color =
+      (* Should we nail it down to exactly the color names that *)
+      (* grub supports ? *)
+      let color_name = store /[A-Za-z-]+/ in
+      let color_spec =
+        [ label "foreground" . color_name] .
+        Util.del_str "/" .
+        [ label "background" . color_name ] in
+      [ opt_ws . key "color" .
+        Util.del_ws_spc . [ label "normal" . color_spec ] .
+        (Util.del_ws_spc . [ label "highlight" . color_spec ])? .
+        eol ]
+
     let menu_setting = kw_menu_arg "default"
                      | kw_menu_arg "fallback"
                      | kw_pres "hiddenmenu"
@@ -32,6 +46,7 @@
                      | kw_menu_arg "serial"
                      | kw_menu_arg "terminal"
                      | password_arg
+                     | color
 
     let title = del /title[ \t]+/ "title " . value_to_eol . eol
 

--- End Message ---
--- Begin Message ---
Hi,

I am closing this bug as it appears to have been fixed (at least 2 of
the currents maintainers has marked it fixed in 2009).

~Niels




--- End Message ---

Reply via email to