mkruntime.sh script is invalid sh

Bug #121066 reported by Anders Kaseorg
2
Affects Status Importance Assigned to Milestone
nspluginwrapper (Ubuntu)
Fix Released
Undecided
Mozilla Bugs

Bug Description

The mkruntime.sh script has some bashisms that need to be removed:

--- nspluginwrapper-0.9.91.4/utils/mkruntime.sh 2007-03-04 10:01:22.000000000 -0500
+++ nspluginwrapper-0.9.91.4/utils/mkruntime.sh 2007-06-02 21:08:13.000000000 -0400
@@ -12,15 +12,15 @@
 # - Check acroread5, something is missing while loading a PDF
 # - Enough for Flash Player & PluginSDK npsimple.so

-function error() {
+error() {
        echo ${1+"$@"} > /dev/stderr
 }

-function status() {
+status() {
        echo ${1+"$@"} > /dev/stderr
 }

-function run() {
+run() {
        status " " ${1+"$@"}
        ${1+"$@"}
 }

Revision history for this message
Alexander Sack (asac) wrote :

I guess its still the case, right?

Changed in nspluginwrapper:
status: Unconfirmed → Needs Info
assignee: nobody → asac
Revision history for this message
Anders Kaseorg (andersk) wrote :

Yes…though looking at it again, the script may not be used at all on anything but Mandriva, so we probably don’t care. I only noticed because it generates a lintian error.

Revision history for this message
Alexander Sack (asac) wrote :

are we shipping mkruntime.sh in any binary package? Otherwise, this can be closed as Invalid.

Thanks,

  - Alexander

Revision history for this message
Anders Kaseorg (andersk) wrote :

Yes, it gets installed into /usr/lib/nspluginwrapper/noarch/mkruntime. (Otherwise it would not have generated a lintian error.)

Revision history for this message
Alexander Sack (asac) wrote :

lets move ahead.

Changed in nspluginwrapper:
status: Incomplete → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

debdiff appreciated.

Changed in nspluginwrapper:
assignee: asac → mozilla-bugs
status: Confirmed → Triaged
Revision history for this message
John Vivirito (gnomefreak) wrote :

heres the debdiff

Changed in nspluginwrapper:
assignee: mozilla-bugs → gnomefreak
Revision history for this message
John Vivirito (gnomefreak) wrote :

heres the correct one

Revision history for this message
John Vivirito (gnomefreak) wrote :

Marked as fix committed as it should be uploaded shortly. Thank you for the diff anders

Changed in nspluginwrapper:
assignee: gnomefreak → mozilla-bugs
status: Triaged → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

sponsored.

Revision history for this message
John Vivirito (gnomefreak) wrote :

It is in repos now.

Changed in nspluginwrapper:
status: Fix Committed → Fix Released
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.