Source: jacal
Version: 1b9-6
Severity: important
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

jacal fails to build when /bin/bash is used for /bin/sh:

> # this deletes jacal.info, preserve original for later vapour-avoidance.
> [ -e ORIG-jacal.info ] || mv jacal.info ORIG-jacal.info; fi
> /bin/sh: -c: line 0: syntax error near unexpected token `fi'
> /bin/sh: -c: line 0: `[ -e ORIG-jacal.info ] || mv jacal.info 
> ORIG-jacal.info; fi'
> debian/rules:56: recipe for target 'clean' failed

The attached patch fixes this.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 0b9f386..b06c56e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -45,7 +45,7 @@ build-stamp: configure-stamp
 	# Add here commands to compile the package.
 
 	# we rebuild jacal.info, but preserve original for later vapour-avoidance.
-	[ -e ORIG-jacal.info ] || mv jacal.info ORIG-jacal.info; fi
+	[ -e ORIG-jacal.info ] || mv jacal.info ORIG-jacal.info
 	$(MAKE) jacal.info $(MAKEVARS)
 	$(MAKE) jacal_toc.html $(MAKEVARS)
 	#docbook-to-man debian/jacal.sgml > jacal.1
@@ -58,7 +58,7 @@ clean:
 	rm -f build-stamp configure-stamp
 
 	# this deletes jacal.info, preserve original for later vapour-avoidance.
-	[ -e ORIG-jacal.info ] || mv jacal.info ORIG-jacal.info; fi
+	[ -e ORIG-jacal.info ] || mv jacal.info ORIG-jacal.info
 
 	# Add here commands to clean up after the build process.
 	[ ! -f Makefile ] || $(MAKE) realclean

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to