Package: kfreebsd-10 Version: 10.3~svn296373-2 ARG_MAX is too small for building LibreOffice (errors out with "Argument list too long").
This was found when attempting to build LibreOffice on ubuntuBSD. I suggest increasing it to match with the Linux value: $ getconf ARG_MAX 2097152 See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208154 -- Jon Boden ubuntuBSD -- Unix for human beings http://www.ubuntubsd.org/ -- https://twitter.com/ubuntuBSD
Index: debian/patches/increase_argmax.diff =================================================================== --- debian/patches/increase_argmax.diff (revision 0) +++ debian/patches/increase_argmax.diff (working copy) @@ -0,0 +1,16 @@ + +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208154 + +Index: kfreebsd-10-10.1~svn274115/sys/sys/syslimits.h +=================================================================== +--- kfreebsd-10-10.1~svn274115.orig/sys/sys/syslimits.h ++++ kfreebsd-10-10.1~svn274115/sys/sys/syslimits.h +@@ -37,7 +37,7 @@ + * Do not add any new variables here. (See the comment at the end of + * the file for why.) + */ +-#define ARG_MAX 262144 /* max bytes for an exec function */ ++#define ARG_MAX 2097152 /* max bytes for an exec function */ + #ifndef CHILD_MAX + #define CHILD_MAX 40 /* max simultaneous processes */ + #endif Index: debian/patches/series =================================================================== --- debian/patches/series (revision 5944) +++ debian/patches/series (working copy) @@ -3,6 +3,7 @@ # Patches that are in good shape for merging upstream mount_remount.diff +increase_argmax.diff # Other patches that might or might not be mergeable userland.diff