Source: taskd Version: 1.1.0+dfsg Tags: patch User: [email protected] Usertag: hurd Control: forwarded -1 https://bug.tasktools.org/browse/TD-126
Currently taskd FTBFS on hurd-i386 due to trying to use PATH_MAX. Reading the contents of src/Directory.cpp shows that it tries to use get_current_dir_name if available, which is available on GNU/Hurd, but it's clearly not using it. This is because the HAVE_GET_CURRENT_DIR_NAME macro is not defined by CMake, since there is no '#cmakedefine' in cmake.h.in. I have attached a debdiff with the patch I forwarded upstream; I can successfully build the package with it applied. Regards, James
diff -Nru taskd-1.1.0+dfsg/debian/patches/007-get-current-dir-name.patch taskd-1.1.0+dfsg/debian/patches/007-get-current-dir-name.patch --- taskd-1.1.0+dfsg/debian/patches/007-get-current-dir-name.patch 1970-01-01 01:00:00.000000000 +0100 +++ taskd-1.1.0+dfsg/debian/patches/007-get-current-dir-name.patch 2017-01-12 23:32:27.000000000 +0000 @@ -0,0 +1,12 @@ +diff --git a/cmake.h.in b/cmake.h.in +index 4124ce9..933ccb9 100644 +--- a/cmake.h.in ++++ b/cmake.h.in +@@ -53,6 +53,7 @@ + /* Functions */ + #cmakedefine HAVE_TIMEGM + #cmakedefine HAVE_UUID_UNPARSE_LOWER ++#cmakedefine HAVE_GET_CURRENT_DIR_NAME + + /* Libraries */ + #cmakedefine HAVE_LIBGNUTLS diff -Nru taskd-1.1.0+dfsg/debian/patches/series taskd-1.1.0+dfsg/debian/patches/series --- taskd-1.1.0+dfsg/debian/patches/series 2016-10-29 23:52:13.000000000 +0100 +++ taskd-1.1.0+dfsg/debian/patches/series 2017-01-12 23:32:52.000000000 +0000 @@ -4,3 +4,4 @@ 004-fix-defaults.patch 005-username.patch 006-test-target.patch +007-get-current-dir-name.patch

