testing/timew: fix FTBFS on ppc64le

Currently timew FTBFS on ppc64le because there is no PATH_MAX defined
implicitly.

If your code needs to use PATH_MAX, it needs to include limits.h.
This commit is contained in:
Breno Leitao 2017-04-04 18:42:28 +00:00
parent fa0a5dbf86
commit 1b40c9d35c
2 changed files with 30 additions and 4 deletions

View File

@ -11,7 +11,9 @@ depends=""
makedepends="cmake"
install=""
subpackages="$pkgname-doc"
source="http://taskwarrior.org/download/$pkgname-$pkgver.tar.gz"
source="http://taskwarrior.org/download/$pkgname-$pkgver.tar.gz
musl_limits.patch"
builddir="$srcdir/$pkgname-$pkgver"
build() {
@ -27,6 +29,5 @@ package() {
make DESTDIR="$pkgdir" install || return 1
}
md5sums="edd5f8a064e5c8f030324e3d98b79d54 timew-1.0.0.tar.gz"
sha256sums="ac027910e1e8365bdd218a8b42389b26d017d38d3c96516c408db6d5a44e0bb5 timew-1.0.0.tar.gz"
sha512sums="0539ff93b2375c154d126c39aa84f21b57b62f51c220c80b2e323a4d6aefd2eda6f87c04112e096222102b019ee3683a78b9ee9d6fbf6736d4a34c529f6152f5 timew-1.0.0.tar.gz"
sha512sums="0539ff93b2375c154d126c39aa84f21b57b62f51c220c80b2e323a4d6aefd2eda6f87c04112e096222102b019ee3683a78b9ee9d6fbf6736d4a34c529f6152f5 timew-1.0.0.tar.gz
e0658719ff8ff70d811ebe90bde652160e69d7c4b1744569924e2047151395ea013fe492f526329b722c47728b78c1bbebea719b2eabc217b93cbf175da86584 musl_limits.patch"

View File

@ -0,0 +1,25 @@
commit e8ae212aca78e332a03e79a4dacc75cfffa43011
Author: Breno Leitao <breno.leitao@gmail.com>
Date: Tue April 04 14:12:11 2017 -0300
Include limits.h if you want to use PATH_MAX
timew FTBFS on ppc64le due to lack of PATH_MAX being implicitly defined.
On ppc64le, if you wish to have access to this macro, you must have
limits.h included explicitly.
Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
Index: timew/src/timew-1.0.0/src/libshared/src/FS.cpp
===================================================================
--- timew.orig/src/timew-1.0.0/src/libshared/src/FS.cpp
+++ timew/src/timew-1.0.0/src/libshared/src/FS.cpp
@@ -41,7 +41,7 @@
#include <shared.h>
#include <format.h>
-#if defined SOLARIS || defined NETBSD || defined FREEBSD
+#if defined SOLARIS || defined NETBSD || defined FREEBSD || !defined(PATH_MAX)
#include <limits.h>
#endif