[Initscripts-ng-commits] r913 - in /trunk/src/insserv/debian: changelog patches/93_hurd_no_path_max.patch patches/series

pere at users.alioth.debian.org pere at users.alioth.debian.org
Tue Jun 30 22:16:52 UTC 2009


Author: pere
Date: Tue Jun 30 22:16:52 2009
New Revision: 913

URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=913
Log:
New patch 93_hurd_no_path_max.patch trying to get the source
building on hurd.  Need a better one.

Added:
    trunk/src/insserv/debian/patches/93_hurd_no_path_max.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=913&op=diff
==============================================================================
--- trunk/src/insserv/debian/changelog (original)
+++ trunk/src/insserv/debian/changelog Tue Jun 30 22:16:52 2009
@@ -16,6 +16,8 @@
     building on kfreebsd.
   * New patch 92_m68k_alignment.patch trying to get the source
     building on m68k (Closes: #493637).
+  * New patch 93_hurd_no_path_max.patch trying to get the source
+    building on hurd.  Need a better one.
 
  -- Petter Reinholdtsen <pere at debian.org>  Fri, 26 Jun 2009 21:51:21 +0200
 

Added: trunk/src/insserv/debian/patches/93_hurd_no_path_max.patch
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/93_hurd_no_path_max.patch?rev=913&op=file
==============================================================================
--- trunk/src/insserv/debian/patches/93_hurd_no_path_max.patch (added)
+++ trunk/src/insserv/debian/patches/93_hurd_no_path_max.patch Tue Jun 30 22:16:52 2009
@@ -1,0 +1,19 @@
+Purpose: Try to get insserv building on hurd, by faking a PATH_MAX value.
+Status:  Not yet submitted upstream.
+---
+Index: insserv/insserv.c
+===================================================================
+--- insserv.orig/insserv.c	2009-07-01 00:14:51.000000000 +0200
++++ insserv/insserv.c	2009-07-01 00:14:51.000000000 +0200
+@@ -1376,6 +1376,11 @@
+     return ret;
+ }
+ 
++#ifndef PATH_MAX
++/* for example hurd.  Should really dynamically aligh the buffer. */
++# define PATH_MAX 1024
++#endif
++
+ /*
+  * Follow symlinks, return the basename of the file pointed to by
+  * symlinks or the basename of the current path if no symlink.

Modified: trunk/src/insserv/debian/patches/series
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/patches/series?rev=913&op=diff
==============================================================================
--- trunk/src/insserv/debian/patches/series (original)
+++ trunk/src/insserv/debian/patches/series Tue Jun 30 22:16:52 2009
@@ -10,3 +10,4 @@
 90_no_runlevel_spec_for_debian.patch
 91_kfreebsd_nofadvice.patch
 92_m68k_alignment.patch
+93_hurd_no_path_max.patch




More information about the Initscripts-ng-commits mailing list