Bug#896518: texlive-bin: FTBFS on hurd-i386: 'MAXPATHLEN' undeclared
Source: texlive-bin
Version: 2018.20180416.47457-2
Severity: important
Tags: patch
Hello,
texlive-bin currently FTBFS on hurd-i386:
../../../texk/web2c/luatexdir/luafilesystem/src/lfs.c:63:26: error:
'MAXPATHLEN' undeclared (first use in this function);
The attached patch fixes this: the file already has a dynamic
allocation, it just needs a reasonable initial value.
Samuel
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.8+git20180218-486-dbg/Hurd-0.9
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
--
Samuel Thibault <samuel.thibault@ens-lyon.org>
Index: texlive-bin-2018.20180416.47457/texk/web2c/luatexdir/luafilesystem/src/lfs.c
===================================================================
--- texlive-bin-2018.20180416.47457.orig/texk/web2c/luatexdir/luafilesystem/src/lfs.c
+++ texlive-bin-2018.20180416.47457/texk/web2c/luatexdir/luafilesystem/src/lfs.c
@@ -60,7 +60,11 @@
#include <sys/types.h>
#include <utime.h>
#include <sys/param.h> /* for MAXPATHLEN */
- #define LFS_MAXPATHLEN MAXPATHLEN
+ #ifdef MAXPATHLEN
+ #define LFS_MAXPATHLEN MAXPATHLEN
+ #else
+#define LFS_MAXPATHLEN 128
+ #endif
#endif
#include <lua.h>
Reply to: