[Pkg-alsa-devel] Bug#644396: lintian error because of bashism (patch)

Joachim Wiedorn ad_debian at joonet.de
Wed Oct 5 13:36:01 UTC 2011


Package: alsa-tools
Version: 1.0.24.1-2
Severity: normal
Tags: patch

While compiling this version for Debian "stable" I have found one more
bashism which make problems while create packages: I got the lintian
warning:

E: ld10k1: shell-script-fails-syntax-check ./usr/share/ld10k1/init_live

And here is the solution for file ld10k1/setup/init_live.in:

 dump_patches
 {
-    num=$1
+    max=$(( ${1} - 1 ))
+    line=$(seq -s ' ' 0 $max)
 
-    for (( i=0; $i < $num; i=$i+1 )); do
-	p=$(( $i + 100))
-	runlo10k1 --debug $p
+    for i in ${line}; do
+      p=$(( $i + 100))
+      runlo10k1 --debug $p
     done
 
     exit
 }

See the attachment for the updated patch file.


-- System Information:
Debian Release: squeeze
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

---
Have a nice day.

Joachim (Germany)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init_live_bashismfix.patch
Type: text/x-patch
Size: 4491 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20111005/e3dbfd8e/attachment.bin>


More information about the Pkg-alsa-devel mailing list