[Initscripts-ng-commits] r910 - in /trunk/src/insserv/debian: changelog patches/91_kfreebsd_nofadvice.patch patches/series
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Sun Jun 28 15:09:37 UTC 2009
Author: pere
Date: Sun Jun 28 15:09:36 2009
New Revision: 910
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=910
Log:
New patch 91_kfreebsd_nofadvice.patch trying to get the source
building on kfreebsd.
Added:
trunk/src/insserv/debian/patches/91_kfreebsd_nofadvice.patch
Modified:
trunk/src/insserv/debian/changelog
trunk/src/insserv/debian/patches/series
Modified: trunk/src/insserv/debian/changelog
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/changelog?rev=910&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Sun Jun 28 15:09:36 2009
@@ -12,6 +12,8 @@
give upgrade problems), to get one with the X-Interactive flags
set in the scripts. Drop hostname, mountkernfs, mountdevsubfs,
checkroot and checkfs from the list of interactive scripts.
+ * New patch 91_kfreebsd_nofadvice.patch trying to get the source
+ building on kfreebsd.
-- Petter Reinholdtsen <pere at debian.org> Fri, 26 Jun 2009 21:51:21 +0200
Added: trunk/src/insserv/debian/patches/91_kfreebsd_nofadvice.patch
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/91_kfreebsd_nofadvice.patch?rev=910&op=file
==============================================================================
--- trunk/src/insserv/debian/patches/91_kfreebsd_nofadvice.patch (added)
+++ trunk/src/insserv/debian/patches/91_kfreebsd_nofadvice.patch Sun Jun 28 15:09:36 2009
@@ -1,0 +1,20 @@
+Purpose: Get insserv building on kfreebsd, missing the argument values for posix_fadvise().
+Fixes: #?
+Status: Not yet submitted upstream.
+---
+--- insserv-1.12.0.orig/insserv.c
++++ insserv-1.12.0/insserv.c
+@@ -40,6 +40,13 @@
+ #endif /* USE_RPMLIB */
+ #include "listing.h"
+
++#if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >= 600
++/* kfreebsd fail to provide working posix_fadvise
++# ifndef POSIX_FADV_SEQUENTIAL
++# define posix_fadvise(fd, off, len, adv) (-1)
++# endif
++#endif
++
+ #ifdef SUSE
+ # define DEFAULT_START_LVL "3 5"
+ # define DEFAULT_STOP_LVL "3 5"
Modified: trunk/src/insserv/debian/patches/series
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/series?rev=910&op=diff
==============================================================================
--- trunk/src/insserv/debian/patches/series (original)
+++ trunk/src/insserv/debian/patches/series Sun Jun 28 15:09:36 2009
@@ -8,3 +8,4 @@
70_req_start_all_depends.patch
80_manual_warnings.patch
90_no_runlevel_spec_for_debian.patch
+91_kfreebsd_nofadvice.patch
More information about the Initscripts-ng-commits
mailing list