[SCM] serd/master: Add patch to prevent FTBFS on kfreebsd.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Thu Apr 19 11:28:59 UTC 2012
The following commit has been merged in the master branch:
commit ba0308d69559e5a47506a77938732acfcec8fae4
Author: Alessio Treglia <alessio at debian.org>
Date: Thu Apr 19 13:28:29 2012 +0200
Add patch to prevent FTBFS on kfreebsd.
diff --git a/debian/patches/0001-kfreebsd_ftbfs.patch b/debian/patches/0001-kfreebsd_ftbfs.patch
new file mode 100644
index 0000000..5a369a6
--- /dev/null
+++ b/debian/patches/0001-kfreebsd_ftbfs.patch
@@ -0,0 +1,19 @@
+Description: posix_fadvice is not available on kFreeBSD.
+Author: Alessio Treglia <alessio at debian.org>
+Forwarded: no
+---
+ src/serd_internal.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+--- serd.orig/src/serd_internal.h
++++ serd/src/serd_internal.h
+@@ -57,7 +57,9 @@ serd_fopen(const char* path, const char*
+ return NULL;
+ }
+ #if defined(HAVE_POSIX_FADVISE) && defined(HAVE_FILENO)
++#ifndef __FreeBSD_kernel__
+ posix_fadvise(fileno(fd), 0, 0, POSIX_FADV_SEQUENTIAL);
++#endif /*__FreeBSD_kernel__*/
+ #endif
+ return fd;
+ }
diff --git a/debian/patches/series b/debian/patches/series
index e61b9ae..c656dfd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+0001-kfreebsd_ftbfs.patch
1001-dont_run_ldconfig.patch
--
serd packaging
More information about the pkg-multimedia-commits
mailing list