Code

patches: Added octave-signal.dpatch. pfstools-1.8.1-1
authorSebastian Harl <sh@tokkee.org>
Mon, 8 Jun 2009 18:43:01 +0000 (20:43 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 8 Jun 2009 18:43:01 +0000 (20:43 +0200)
This patch lets pfsstat bail out with an error message if gausswin() is not
available, telling the user to install octave-signal.

debian/changelog
debian/patches/00list
debian/patches/octave-signal.dpatch [new file with mode: 0755]

index eac04c4307c5e27664b980d1b4786f31cf7cb63a..c8b9f26df98f48cdce3bf7a17d03e5b3bc1ac4ed 100644 (file)
@@ -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-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
   * 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.
 
     - Use ${octave:Depends} and octave3.0-depends instead of explicitly
       depending on octave3.0.
 
- -- Sebastian Harl <tokkee@debian.org>  Mon, 08 Jun 2009 20:20:59 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Mon, 08 Jun 2009 20:41:22 +0200
 
 pfstools (1.6.4-2) unstable; urgency=low
 
 
 pfstools (1.6.4-2) unstable; urgency=low
 
index 5bf9524a94928082d21da62c50392855ffd26810..0783a751f93464b7aaf3ed5efc3940a948d949a1 100644 (file)
@@ -1,2 +1,3 @@
 octave-nargin.dpatch
 octave-nargin.dpatch
+octave-signal.dpatch
 
 
diff --git a/debian/patches/octave-signal.dpatch b/debian/patches/octave-signal.dpatch
new file mode 100755 (executable)
index 0000000..e3f612c
--- /dev/null
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## octave-signal.dpatch by Sebastian Harl <tokkee@debian.org>
+##
+## 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 );