Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15962 - grub-install fails because sed-4.0.5 is incompatible with its sed expressions
Summary: grub-install fails because sed-4.0.5 is incompatible with its sed expressions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 55732
Blocks:
  Show dependency tree
 
Reported: 2003-02-18 17:52 UTC by Matthew Kennedy (RETIRED)
Modified: 2005-04-26 08:28 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix the incompatible sed expressions in grub-install.in (grub-0.93-grub-install-sed.patch,442 bytes, patch)
2003-11-07 00:40 UTC, Bill Gjestvang
Details | Diff
The patch to the ebuild to use grub-0.93-grub-install-sed.patch (grub-0.93.20030118.ebuild.sed.patch,385 bytes, patch)
2003-11-07 00:41 UTC, Bill Gjestvang
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Kennedy (RETIRED) gentoo-dev 2003-02-18 17:52:58 UTC
grub-install fails because sed-4.0.5 is incompatible with its sed expressions.
sed-3.x works fine however.

Reproducible: Always
Steps to Reproduce:
1. grub-install /dev/floppy/0
2.
3.

Actual Results:  
# grub-install /dev/floppy/0
sed: -e expression #1, char 12: Invalid reference \1 on `s' command's RHS
sed: -e expression #1, char 12: Invalid reference \1 on `s' command's RHS
Unrecognized ls output: Not found or not a block device.
Comment 1 Donny Davies (RETIRED) gentoo-dev 2003-06-17 07:56:07 UTC
please, we need to find somebody else to do grub.  i cant handle it right
now but maybe again in the future.

_so_ sorry Matthew to have left this for so long :(
Comment 2 Brandon Low (RETIRED) gentoo-dev 2003-06-28 13:51:34 UTC
Hey, I find this strange, because sed-4 afaik doesn't have any regressions in functionality from sed-3... have you tried with a more recent sed-4 series?
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2003-07-07 03:47:42 UTC
okay this is confirmed with sed-4.0.7 and also 4.0.5 by someone else encountering the same problem.

<li1_bastard> and i get this error
<li1_bastard> root # grub-install --root-directory=/mnt/floppy/ '(fd0)'
<li1_bastard> sed: -e expression #1, char 12: Invalid reference \1 on `s' command's RHS
<li1_bastard> sed: -e expression #1, char 12: Invalid reference \1 on `s' command's RHS
<li1_bastard> Unrecognized ls output: Not found or not a block device.
Comment 4 Cubittus 2003-08-14 15:38:40 UTC
This was fixed in the grub CVS back on 19th Feb!

See http://savannah.gnu.org/cgi-bin/viewcvs/grub/grub/util/grub-install.in

Can someone please patch this in or update grub to a more recent snapshot?
Comment 5 Bill Gjestvang 2003-11-07 00:40:01 UTC
Created attachment 20364 [details, diff]
Fix the incompatible sed expressions in grub-install.in

This is the code change from grub CVS grub-install.in 1.38.
http://savannah.gnu.org/cgi-bin/viewcvs/grub/grub/util/grub-install.in.diff?r1=1.37&r2=1.38
Comment 6 Bill Gjestvang 2003-11-07 00:41:29 UTC
Created attachment 20365 [details, diff]
The patch to the ebuild to use grub-0.93-grub-install-sed.patch
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-13 22:14:44 UTC
Matt et al,

is this still an issue?
Comment 8 Brandon Low (RETIRED) gentoo-dev 2004-02-10 12:39:20 UTC
Is this fixed in grub-0.94?
Comment 9 Robert Moss (RETIRED) gentoo-dev 2004-07-11 22:47:41 UTC
This is certainly fixed in grub-0.95, so I'm adding bug #55732 as a dependency.
Comment 10 Robert Moss (RETIRED) gentoo-dev 2004-08-22 09:00:24 UTC
This is fixed in grub-0.94. Closing. Please re-open if this is still an issue for anyone.
Comment 11 Mike Heffner 2005-04-26 08:28:48 UTC
Can this be fixed in "sys-boot/grub-static-0.93.20030118" or can grub-static be updated?

Currently, this is still broken for AMD64 users.