[Pkg-fonts-devel] Bug#877795: fontforge: FTBFS on hurd-i386: PATH_MAX undeclared

Aaron M. Ucko ucko at debian.org
Thu Oct 5 19:02:05 UTC 2017

Source: fontforge
Version: 1:20170731~dfsg-1
Severity: important
Tags: upstream
Justification: fails to build from source (but built successfully in the past)
User: debian-hurd at lists.debian.org

Builds of recent fontforge versions for hurd-i386 (admittedly not a
release architecture) have been failing:

  /<<PKGBUILDDIR>>/./gutils/fsys.c:770:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'INT8_MAX'?

The Hurd has no hard PATH_MAX; best practice is to check the relevant
file system's _PC_PATH_MAX via pathconf, which can entail allocating
buffers dynamically.  Alternatively, you can supply your own fallback
constant, typically 4096.

Could you please take a look?  Please note that there may be other
occurrences of PATH_MAX or other portability issues; I haven't
specifically checked.


Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu

More information about the Pkg-fonts-devel mailing list