Source: wimlib
Version: 1.11.0-1
Severity: important
Justification: fails to build from source

Thanks for fixing the x32 build.  Alas, I now see that builds of
wimlib for hurd-i386 (admittedly not a release architecture either)
have been failing:

  src/unix_capture.c:700:26: error: 'PATH_MAX' undeclared (first use in this 
function)
    path_bufsz = min(32790, PATH_MAX + 1);

This code already uses dynamic allocation, so falling back on pathconf
should be straightforward:

#ifndef PATH_MAX
        long PATH_MAX = pathconf(root_disk_path, _PC_PATH_MAX);
        if (PATH_MAX < 0)
                PATH_MAX = 32789;
#endif

Alternatively, unix_build_dentry_tree could dispense with any
calculations and set path_bufsz to 32790, either unconditionally or in
the absence of PATH_MAX.

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