Bug#562055: grub-common: Bashism in /etc/grub.d/30_os-prober

Thomas Preud'homme thomas.preudhomme at celest.fr
Tue Dec 22 09:56:54 UTC 2009


Package: grub-common
Version: 1.98~20091221-1
Severity: grave
Tags: patch
Justification: renders package unusable

Line 40 function osx_entry is defined as followed : function osx_entry {

This is a bashism and should be corrected to osx_entry() {

--- etc/grub.d/30_os-prober     2009-12-21 22:34:49.000000000 +0100
+++ /etc/grub.d/30_os-prober    2009-12-22 10:42:47.000000000 +0100
@@ -37,7 +37,7 @@
   exit 0
 fi

-function osx_entry {
+osx_entry() {
         cat << EOF
 menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" {
 EOF

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files             5.0.0             Debian base system miscellaneous f
ii  dpkg                   1.15.5.4          Debian package management system
ii  gettext-base           0.17-8            GNU Internationalization utilities
ii  install-info           4.13a.dfsg.1-5    Manage installed documentation in 
ii  libc6                  2.10.2-2          GNU C Library: Shared libraries
ii  libfreetype6           2.3.11-1          FreeType 2 font engine, shared lib
ii  zlib1g                 1:1.2.3.3.dfsg-15 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober                     1.35       utility to detect other OSes on a 

Versions of packages grub-common suggests:
pn  grub-emu                      <none>     (no description available)
pn  multiboot-doc                 <none>     (no description available)

-- no debconf information
-------------- next part --------------
--- etc/grub.d/30_os-prober	2009-12-21 22:34:49.000000000 +0100
+++ /etc/grub.d/30_os-prober	2009-12-22 10:42:47.000000000 +0100
@@ -37,7 +37,7 @@
   exit 0
 fi
 
-function osx_entry {
+osx_entry() {
         cat << EOF
 menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" {
 EOF


More information about the Pkg-grub-devel mailing list