Hi,

This is caused by a bashism, ${var/old/new}, which is used in a few places in debian/rules. Attached is a patch which replaces it with a call to basename, or an `echo $var | sed s/old/new/`.

debdiff shows no differences between the package with and without this patch applied, but it seems like some md5sums change. I can't assess how serious this is. Anyhow, hope this helps.

Ethan
--- openclipart-0.18+dfsg/debian/rules	2008-01-18 17:39:49.000000000 -0500
+++ openclipart-0.18-fix/debian/rules	2008-01-18 17:31:45.000000000 -0500
@@ -46,15 +46,16 @@
 		echo "Processing $$i" ; \
 		dir=`dirname $$i` ; \
 		file=`basename $$i` ; \
+		pngfile=`basename $$file svg`png ; \
 		mkdir -p $(CURDIR)/build/usr/share/openclipart/svg/$$dir ; \
 		sed -e '/<i:pgf id="adobe_illustrator_pgf">/,/<\/i:pgf>/d' $(CURDIR)/clipart/$$dir/$$file > \
 			$(CURDIR)/build/usr/share/openclipart/svg/$$dir/$$file ; \
 		mkdir -p $(CURDIR)/build/usr/share/openclipart/png/$$dir ; \
 		if echo $(OVERSIZED_FILES) | grep -q $$i ; then \
-			inkscape -w 1500 --export-png=$(CURDIR)/build/usr/share/openclipart/png/$$dir/$${file/svg/png} \
+			inkscape -w 1500 --export-png=$(CURDIR)/build/usr/share/openclipart/png/$$dir/$$pngfile \
 				 $$dir/$$file ; \
 		else \
-			inkscape --export-png=$(CURDIR)/build/usr/share/openclipart/png/$$dir/$${file/svg/png} \
+			inkscape --export-png=$(CURDIR)/build/usr/share/openclipart/png/$$dir/$$pngfile \
 				 $$dir/$$file ; \
 		fi ; \
 	done
@@ -65,7 +66,7 @@
 		unset MAIN ; \
 		for dupes in $$lines ; do \
 			if [ -z "$$MAIN" ] ; then \
-	    			MAIN=$${dupes/./} ; \
+	    			MAIN=`echo $$dupes | sed s/\\.//` ; \
 			else \
 				ln -sf $$MAIN $$dupes ; \
 			fi ; \

Reply via email to