[Pkg-sysvinit-devel] Bug#534337: sysvinit: FTBFS on GNU/kFreeBSD

Petr Salinger Petr.Salinger at seznam.cz
Tue Jun 23 18:39:01 UTC 2009


Package: sysvinit
Severity: important
Version: 2.86.ds1-62
Tags: patch
User: glibc-bsd-devel at lists.alioth.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.
Unfortunately, the updated startpar source started
to use posix_fadvise().

The posix_fadvise() is not required part even of IEEE Std 1003.1-2008, see
http://www.opengroup.org/onlinepubs/9699919799/functions/posix_fadvise.html

Please apply patch bellow.

Thanks in advance

                         Petr

--- debian/startpar/makeboot.c
+++ debian/startpar/makeboot.c
@@ -17,6 +17,9 @@
  # include <sys/types.h>
  # include <sys/stat.h>
  # include <fcntl.h>
+# ifndef POSIX_FADV_SEQUENTIAL
+#  define posix_fadvise(fd, off, len, adv)	(-1)
+# endif
  static int o_flags = O_RDONLY;
  #endif







More information about the Pkg-sysvinit-devel mailing list