[Pkg-postgresql-public] Bug#882240: pspg: FTBFS on hurd-i386: MAXPATHLEN undeclared

Aaron M. Ucko ucko at debian.org
Mon Nov 20 16:31:24 UTC 2017


Source: pspg
Version: 0.5-1
Severity: important
Tags: upstream
Justification: fails to build from source
User: debian-hurd at lists.debian.org
Usertags: hurd-i386

The build of pspg for hurd-i386 (admittedly not a release
architecture) failed:

  src/pspg.c:1092:16: error: 'MAXPATHLEN' undeclared (first use in this function); did you mean 'MAX_STYLE'?

The Hurd famously has no static MAXPATHLEN.  Best practice is to
allocate path buffers dynamically based on what you actually
encounter, but if that's not convenient, you can look up _PC_PATH_MAX
via pathconf or define a fallback constant (traditionally 4096).

Could you please take a look?

Thanks!

-- 
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-postgresql-public mailing list