Package: dvtm Version: 0.15+40.g311a8c0-1 Severity: normal Tags: patch ftbfs upstream hurd-i386
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
--- dvtm-0.15+40.g311a8c0.orig/dvtm.c +++ dvtm-0.15+40.g311a8c0/dvtm.c @@ -1067,10 +1067,12 @@ create(const char *args[]) { if (args && args[0]) { c->cmd = args[0]; - char name[PATH_MAX]; - strncpy(name, args[0], sizeof(name)); - name[sizeof(name)-1] = '\0'; + char *name = NULL; + name = malloc(strlen(args[0])+1); + strcpy(name, args[0]); + name[strlen(name)+1] = '\0'; strncpy(c->title, basename(name), sizeof(c->title)); + free(name); } else { c->cmd = shell; }