Manolis Ragkousis <manolis...@gmail.com> skribis: > I think this one should go to core-updates. WDYT? > > From 827ad2cf704aa0123b509f7f01da8d4413d97113 Mon Sep 17 00:00:00 2001 > From: Manolis Ragkousis <manolis...@gmail.com> > Date: Mon, 8 Jun 2015 16:04:07 +0300 > Subject: [PATCH] gnu: sed: Set PATH_MAX for HURD systems. > > * gnu/packages/patches/sed-hurd-path-max.patch: New file. > * gnu-system.am (dist_patch_DATA): Add it.
Please use the patch below instead as ‘sed-hurd-path-max.patch’: It’s the one from upstream (slightly edited for compactness), and we’ll directly see that it’s from upstream. OK to push to ‘core-updates’ with this change. Thanks! Ludo’.
7bb8d35d0330161a5af5341471d0c183a067e8c2 Author: Jose E. Marchesi <jema...@gnu.org> Date: Sun Oct 6 14:43:38 2013 +0200 Set PATH_MAX to some constant in case it is not defined in system headers. 2013-10-06 Jose E. Marchesi <jema...@gnu.org> * basicdefs.h (PATH_MAX): Defined to some constant in case it is not defined by system headers. * sed/utils.c: Do not include pathmax.h anymore. * bootstrap.conf (gnulib_modules): Do not use the gnulib module pathmax. --- a/basicdefs.h +++ b/basicdefs.h @@ -40,6 +41,13 @@ typedef unsigned long countT; #define obstack_chunk_alloc ck_malloc #define obstack_chunk_free free +/* MAX_PATH is not defined in some platforms, most notably GNU/Hurd. + In that case we define it here to some constant. Note however that + this relies in the fact that sed does reallocation if a buffer + needs to be larger than PATH_MAX. */ +#ifndef PATH_MAX +# define PATH_MAX 200 +#endif