From: Luca Falavigna <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: Bashism
Package: systeminstaller
Version: 1.04-3
Severity: minor
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu hardy ubuntu-patch

netcdf has a bashism in debian/rules file which causes FTBFS on systems
with /bin/sh linked to /bin/dash. Even if Debian is not affected, it
could be worth adjust it for compatibility purposes.
Attached patch, taken from Ubuntu version, should fix this issue.

Thank you.
diff -pruN 1.04-3/Makefile.PL 1.04-3ubuntu1/Makefile.PL
--- 1.04-3/Makefile.PL	2007-11-20 13:15:45.000000000 +0000
+++ 1.04-3ubuntu1/Makefile.PL	2007-11-20 13:12:57.000000000 +0000
@@ -57,7 +57,7 @@ img_install ::
 distinfo_install ::
 
 \t for file in `find distinfo | grep -v CVS`; do \\
-\t\t if [[ -d \$\$file ]]; then \\
+\t\t if [ -d \$\$file ]; then \\
 \t\t\t install -d \$(PREFIX)/share/systeminstaller/\$\$file; \\
 \t\t else \\
 \t\t\t install \$\$file \$(PREFIX)/share/systeminstaller/\$\$file; \\
@@ -67,12 +67,12 @@ distinfo_install ::
 
 manifest :
 
-\t if [[ -f MANIFEST ]]; then \\
+\t if [ -f MANIFEST ]; then \\
 \t\t mv MANIFEST MANIFEST.bak; \\
 \t fi
 \t cp MANIFEST.stub MANIFEST
 \t for file in `find distinfo | grep -v CVS`; do \\
-\t\t if [[ -f \$\$file ]]; then \\
+\t\t if [ -f \$\$file ]; then \\
 \t\t\t echo \$\$file >> MANIFEST; \\
 \t\t fi; \\
 \t done

Reply via email to