From 2d9eaaa8793d79daac81d2b52bd5acf936f1346d Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 8 Jun 2009 20:43:01 +0200 Subject: [PATCH] patches: Added octave-signal.dpatch. This patch lets pfsstat bail out with an error message if gausswin() is not available, telling the user to install octave-signal. --- debian/changelog | 5 ++++- debian/patches/00list | 1 + debian/patches/octave-signal.dpatch | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 debian/patches/octave-signal.dpatch diff --git a/debian/changelog b/debian/changelog index eac04c4..c8b9f26 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,9 @@ pfstools (1.8.1-1) unstable; urgency=low - Added octave-nargin.dpatch - this patch lets octave scripts use the variable nargin instead of length(argv); the latter does not work reliably when no command line arguments have been specified. + - Added octave-signal.dpatch - this patch lets pfsstat bail out with an + error message if gausswin() is not available, telling the user to + install octave-signal. * Removed debian/pfsglview.1 - included upstream. * debian/control: - Added libmagick++-dev as an option to the libmagick++9-dev build @@ -31,7 +34,7 @@ pfstools (1.8.1-1) unstable; urgency=low - Use ${octave:Depends} and octave3.0-depends instead of explicitly depending on octave3.0. - -- Sebastian Harl Mon, 08 Jun 2009 20:20:59 +0200 + -- Sebastian Harl Mon, 08 Jun 2009 20:41:22 +0200 pfstools (1.6.4-2) unstable; urgency=low diff --git a/debian/patches/00list b/debian/patches/00list index 5bf9524..0783a75 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -1,2 +1,3 @@ octave-nargin.dpatch +octave-signal.dpatch diff --git a/debian/patches/octave-signal.dpatch b/debian/patches/octave-signal.dpatch new file mode 100755 index 0000000..e3f612c --- /dev/null +++ b/debian/patches/octave-signal.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## octave-signal.dpatch by Sebastian Harl +## +## DP: pfsstat: Bail out with an error if octave-signal is not available. + +@DPATCH@ + +--- a/src/octave/pfsstat ++++ b/src/octave/pfsstat +@@ -33,6 +33,11 @@ + error( "Expecting no parameters" ); + endif + ++if( 2 != exist( 'gausswin' ) ) ++ error( "%s requires the 'signal' package - please install octave-signal\n", \ ++ program_name () ); ++endif ++ + firstFrame = true; + while( true ) + pin = pfsget( pin ); -- 2.30.2