BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002674 [buildroot] Standards Compliance major always 03-25-08 08:20 03-25-08 20:45
Reporter antab View Status public  
Assigned To buildroot
Priority normal Resolution open  
Status assigned   Product Version
Summary 0002674: patch-kernel.sh failes on newer versions of Ubuntu
Description The patch-kernel.sh script fails on newer versions of Ubuntu (and debian) where the /bin/sh link has been changed form /bin/bash to /bin/dash. The script will fail at line 23:
for i in `cd ${patchdir}; ls -d ${patchpattern} 2> /dev/null` ; do

where dash dosen't expand the ${patchpattern} but passes it directly to ls. Quick fix is to relink /bin/sh to bash, but scripts that depend on bash only features should NOT use /bin/sh but /bin/bash directly.

more about the difference between dash and bash at:
https://wiki.ubuntu.com/DashAsBinSh. [^]
Additional Information
Attached Files

- Relationships

- Notes
(0005944)
hmoffatt
03-25-08 20:45

Can't reproduce this on Debian (changed top of script to #!/bin/dash instead). Which package?

Mind you there doesn't seem to be any need to use ${x} throughout the script rather than $x.
 

- Issue History
Date Modified Username Field Change
03-25-08 08:20 antab New Issue
03-25-08 08:20 antab Status new => assigned
03-25-08 08:20 antab Assigned To  => buildroot
03-25-08 20:45 hmoffatt Note Added: 0005944


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker