Source: tpm2-pk11
Version: 0~git20171109-2
Severity: important
Tags: upstream
Justification: fails to build from source
User: debian-h...@lists.debian.org
Usertags: hurd-i386

Builds of tpm2-pk11 for hurd-i386 (admittedly not a release
architecture) have been failing:

  /<<PKGBUILDDIR>>/src/objects.c:168:20: error: 'PATH_MAX' undeclared (first 
use in this function); did you mean 'INT8_MAX'?

The Hurd famously has no static PATH_MAX.  Best practice is to
accommodate dynamically whatever paths you actually encounter, since
you're otherwise likely either wasting memory or risking truncation
(or, worse, overflow).  However, if that's not feasible, you can also
look up _PC_PATH_MAX via pathconf, or supply 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/?a...@monk.mit.edu

Reply via email to