Package: rsyslog Version: 8.34.0-1 Severity: important Tags: patch Hello,
rsyslog currently FTBFS on hurd-i386 due to unconditional uses of PATH_MAX. Here is a patch fixing it. Samuel -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-debug'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores) 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: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages rsyslog depends on: ii init-system-helpers 1.51 ii libc6 2.27-3 ii libestr0 0.1.10-2.1 ii libfastjson4 0.99.8-2 ii liblogging-stdlog0 1.0.6-3 ii liblognorm5 2.0.5-1 ii libsystemd0 232-25 ii libuuid1 2.32-0.1 ii lsb-base 9.20170808 ii zlib1g 1:1.2.11.dfsg-1 Versions of packages rsyslog recommends: ii logrotate 3.11.0-0.1 Versions of packages rsyslog suggests: pn rsyslog-doc <none> pn rsyslog-gnutls <none> pn rsyslog-gssapi <none> pn rsyslog-mongodb <none> pn rsyslog-mysql | rsyslog-pgsql <none> pn rsyslog-relp <none> -- no debconf information -- Samuel "...very few phenomena can pull someone out of Deep Hack Mode, with two noted exceptions: being struck by lightning, or worse, your *computer* being struck by lightning." (By Matt Welsh)
Index: rsyslog-8.34.0/runtime/modules.c =================================================================== --- rsyslog-8.34.0.orig/runtime/modules.c +++ rsyslog-8.34.0/runtime/modules.c @@ -51,7 +51,7 @@ #include <unistd.h> #include <sys/file.h> -#ifndef PATH_MAX +#if !defined(PATH_MAX) && defined(MAXPATHLEN) # define PATH_MAX MAXPATHLEN #endif Index: rsyslog-8.34.0/plugins/imfile/imfile.c =================================================================== --- rsyslog-8.34.0.orig/plugins/imfile/imfile.c +++ rsyslog-8.34.0/plugins/imfile/imfile.c @@ -66,6 +66,10 @@ #include <regex.h> +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + MODULE_TYPE_INPUT /* must be present for input modules, do not remove */ MODULE_TYPE_NOKEEP MODULE_CNFNAME("imfile")