[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Source: ignition-common
Version: 1.0.1-1
Severity: normal
Tags: upstream
User: debian-hurd@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


Reply to: