[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#436731: lh_binary_yaboot fails with: sed: -e expression #1, char 13: unterminated `s' command



Package: live-helper
Version: 1.0~a21-1
Severity: normal

When building a live cd for ppc lh_binary_yaboot fails to expand the
yaboot.conf template and fails with an error saying
  sed: -e expression #1, char 13: unterminated `s' command

The error seems to be at line 267 of lh_binary_yaboot. I'm not able to
find the error but changing this line to use an equivalent perl
construct removes the problem and gives a working yaboot.conf
file. I've used the following patch:

--- lh_binary_yaboot.orig       2007-08-08 16:58:29.000000000 +0200
+++ lh_binary_yaboot.new        2007-08-08 19:27:40.000000000 +0200
@@ -262,9 +262,9 @@
                        cat binary/yaboot/yaboot.conf.tmp >>
                        binary/yaboot/yaboot.conf
                        rm -f binary/yaboot/yaboot.conf.tmp
                fi
-
                # Configure yaboot templates
-               sed -i -e "s#LINUX_LIVE#${LINUX_LIVE}#" -e "s#LINUX_INSTALL#${LINUX_INSTALL}#" binary/yaboot/yaboot.conf
+               #sed -i -e "s#LINUX_LIVE#${LINUX_LIVE}#" -e "s#LINUX_INSTALL#${LINUX_INSTALL}#" binary/yaboot/yaboot.conf
+               perl -pi -e "s[LINUX_LIVE][${LINUX_LIVE}];s[LINUX_INSTALL][${LINUX_INSTALL}];" binary/yaboot/yaboot.conf
                sed -i -e "s#LIVE_BOOTAPPEND#${LIVE_BOOTAPPEND}#"
                binary/yaboot/yaboot.conf
                sed -i -e "s/LIVE_DATE/`date +%Y%m%d`/" -e
                "s/LIVE_VERSION/${VERSION}/" binary/yaboot/boot.msg
                ;;


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.18adbsyn
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=ISO-8859-15)
(ignored: LC_ALL set to en_DK.ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages live-helper depends on:
ii  cdebootstrap                  0.4.3      Bootstrap a Debian system

live-helper recommends no packages.

-- no debconf information





Reply to: