#1002713 dvtm: FTBFS on the Hurd (undefined PATH_MAX)

Package:
dvtm
Source:
dvtm
Description:
Tiling window management for the console
Submitter:
João
Date:
2026-05-16 22:01:01 UTC
Severity:
normal
Tags:
#1002713#5
Date:
2021-12-27 23:31:11 UTC
From:
To:
Dear Maintainer,

The package fails to build from source on GNU/Hurd because the macro PATH_MAX
is not defined on that platform. This is a known common problem
https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL

That attached patch addresses the issue.

Best regards,
João

#1002713#10
Date:
2026-05-16 21:58:08 UTC
From:
To:
I checked the current Debian package and the PATH_MAX issue is still
present, but the original patch is not safe as-is: it introduces an
out-of-bounds write with

  name[strlen(name)+1] = '\0';

instead of terminating the copied string in-bounds.

I am attaching a smaller replacement patch instead. It keeps the
existing basename/title handling unchanged and only defines PATH_MAX
when the platform does not provide it.

I also built the package successfully on amd64 with this patch applied
using:

  dpkg-buildpackage -us -uc -b

I tried to validate it in a local Debian GNU/Hurd QEMU image as well,
but that guest currently stalls before reaching a usable login/SSH
state, so Hurd-side build confirmation is still pending.

Thanks,