[SCM] mhwaveedit/master: Attempt to fix FTBFS of hurd.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue Jun 21 10:52:19 UTC 2011


The following commit has been merged in the master branch:
commit a4adf3207f90e50cd9cad3c1f952186283d871c3
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue Jun 21 12:52:29 2011 +0200

    Attempt to fix FTBFS of hurd.

diff --git a/debian/patches/02-hurd_ftbfs.patch b/debian/patches/02-hurd_ftbfs.patch
new file mode 100644
index 0000000..73fd8a1
--- /dev/null
+++ b/debian/patches/02-hurd_ftbfs.patch
@@ -0,0 +1,22 @@
+Description: Replace the use of the macro PIPE_BUF with a call to fpathconf
+ for those platforms which don't provide it.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: no
+---
+ src/pipedialog.c |    4 ++++
+ 1 file changed, 4 insertions(+)
+
+--- mhwaveedit.orig/src/pipedialog.c
++++ mhwaveedit/src/pipedialog.c
+@@ -446,7 +446,11 @@ static Chunk *pipe_dialog_pipe_chunk_mai
+ 	       }
+ 	       /* printf("Writing data...\n"); */
+ 	       /* Write data */
++#ifdef PIPE_BUF
+ 	       i = write(fds[0],outbuf+bp,MIN(bs-bp,PIPE_BUF));
++#else
++	       i = write(fds[0],outbuf+bp,MIN(bs-bp,fpathconf(fds[0], _PC_PIPE_BUF)));
++#endif
+ 	       /* i = write(fds[0],outbuf+bp,1); */
+ 	       /* printf("Finished writing.\n"); */
+ 	       if (i == -1) {
diff --git a/debian/patches/series b/debian/patches/series
index 749ce19..a04f35a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01-kfreebsd_ftbfs.patch
+02-hurd_ftbfs.patch

-- 
mhWaveEdit packaging



More information about the pkg-multimedia-commits mailing list