Bug#893756: ignition-common: FTBFS on hurd-i386: PATH_MAX not declared

Aaron M. Ucko ucko at debian.org
Thu Mar 22 00:51:30 UTC 2018


Source: ignition-common
Version: 1.0.1-1
Severity: normal
Tags: upstream
User: debian-hurd at lists.debian.org
Usertags: hurd

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

  /<<PKGBUILDDIR>>/src/FilesystemBoost.cc: In function 'std::__cxx11::string ignition::common::cwd()':
  /<<PKGBUILDDIR>>/src/FilesystemBoost.cc:134:25: error: 'PATH_MAX' was not declared in this scope

The Hurd makes a point of not having a static PATH_MAX.  Best practice
is dynamically accommodating whatever you actually encounter, for
instance by taking advantage of realpath's policy of allocating the
buffer itself when supplied a NULL buffer.  (You'll of course need to
free it when done.)

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 debian-science-maintainers mailing list