Panda: "install-binaries-4.0.3.sh" fails with error - "trap: 22: ERR: bad trap"

Bug #1005467 reported by Abhishek Paliwal
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Android
Won't Fix
High
vishal

Bug Description

While using 12.05 android build:
https://android-build.linaro.org/builds/~linaro-android/panda-ics-gcc47-tilt-tracking-blob-12.05-release/#build=5

With this image when trying to install vendor binaries, installation fails , error message seen is - "trap: 22: ERR: bad trap"
i.e
# Get binaries
wget http://people.linaro.org/~vishalbhoj/install-binaries-4.0.3.sh
chmod a+x install-binaries-4.0.3.sh
./install-binaries-4.0.3.sh /dev/sdb2
"trap: 22: ERR: bad trap"

Workaround:
Running same script from earlier build works fine : http://releases.linaro.org/12.04/android/leb-panda/
i.e:
wget http://releases.linaro.org/12.04/android/images/panda-ics-gcc47-tilt-tracking-blob/install-binaries.sh
./install-binaries.sh /dev/sb2
The above works fine.

Setup:
--------
I'm using Ubuntu 10.04 LTS 64bit version to try this script.

Changed in linaro-android:
importance: Undecided → High
assignee: nobody → Zach Pfeffer (pfefferz)
Revision history for this message
Fathi Boudra (fboudra) wrote :

@Abhishek: could you try without parameter?

Changed in linaro-android:
assignee: Zach Pfeffer (pfefferz) → vishal (vishalbhoj)
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

I see the same error when using this script without parameters.

Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :

This could be related to a bug I fixed earlier...

Does the version in git (linaro-ics branch of device/linaro/pandaboard) work better?

Revision history for this message
Bernhard Rosenkraenzer (berolinux) wrote :
Changed in linaro-android:
status: New → Incomplete
Revision history for this message
sivakumar reddy (sivareddy-mom) wrote :

Hi,

Remove the first line of the script. i.e., #!/bin/sh

it works for me... :-)

Regards
Sivakumar

Revision history for this message
Diego (panda84) wrote :

Same here (Ubuntu 10.04), because I have sh pointing to dash:
 ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2010-10-01 09:42 /bin/sh -> dash

Replacing #!/bin/sh with #!/bin/bash fixes the problem. Looks like the script isn't compatible with dash.

Fathi Boudra (fboudra)
Changed in linaro-android:
milestone: none → 12.10
status: Incomplete → Triaged
Revision history for this message
vishal (vishalbhoj) wrote :

changing #!/bin/sh with #!/bin/bash would break the script on 12.04 with this error:

/home/vishal/Downloads/install-binaries-4.0.4.sh: line 4: realpath: command not found

For now the user has to update the script when using on ubuntu 10.04 as mentioned in comment #6

Zach Pfeffer (pfefferz)
Changed in linaro-android:
status: Triaged → Won't Fix
Zach Pfeffer (pfefferz)
Changed in linaro-android:
milestone: 12.10 → obsolete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.