[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#414133: plotmtv: FTBFS on GNU/kFreeBSD: changing your hack is needed



Package: plotmtv
Severity: important
Tags: patch

Hi,

currently your package FTBFS on GNU/kFreeBSD with the following error:
> # Hack to get the right start in DataFormat.ps
> zcat Docs/DataFormat.ps.gz \
> 		| sed '1 s/.*/%!PS-Adobe-2.0/' \
> 		| install -D -m 644 /dev/stdin \
> 			  debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps
> install: skipping file `/dev/stdin', as it was replaced while being copied
> make: *** [install] Error 1

Full build logs are available at
<http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=plotmtv>.

Please find attached an patch for debian/rules, but I guess that you
might want to install the /usr/share/doc/plotmtv directory before and
write the file directly there.

Cheers,

-- 
Cyril Brulebois
--- plotmtv-1.4.4t/debian/rules	2007-03-09 13:50:05.825220000 +0100
+++ plotmtv-1.4.4t/debian/rules	2007-03-09 13:50:10.000000000 +0100
@@ -28,6 +28,9 @@
 
 	-$(MAKE) distclean
 
+	# See the hack in install:
+	-rm $(CURDIR)/debian/DataFormat.ps
+
 	dh_clean
 
 install: build
@@ -40,9 +43,10 @@
 
 	# Hack to get the right start in DataFormat.ps
 	zcat Docs/DataFormat.ps.gz \
-		| sed '1 s/.*/%!PS-Adobe-2.0/' \
-		| install -D -m 644 /dev/stdin \
-			  debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps
+		| sed '1 s/.*/%!PS-Adobe-2.0/' > $(CURDIR)/debian/DataFormat.ps
+
+	install -D -m 644 $(CURDIR)/debian/DataFormat.ps \
+		debian/plotmtv/usr/share/doc/plotmtv/DataFormat.ps
 
 # Build architecture-independent files here.
 binary-indep: build install

Reply to: