diff --git a/srcpkgs/retroshare/patches/musl.patch b/srcpkgs/retroshare/patches/musl.patch index 87db0292dd0..eb76a83232a 100644 --- a/srcpkgs/retroshare/patches/musl.patch +++ b/srcpkgs/retroshare/patches/musl.patch @@ -27,28 +27,13 @@ #endif // _STACKTRACE_H_ --- libretroshare/src/util/rsdir.cc.orig 2017-05-21 00:02:56.024215330 +0200 +++ libretroshare/src/util/rsdir.cc 2017-05-21 00:05:01.129867612 +0200 -@@ -57,6 +57,25 @@ +@@ -57,6 +57,10 @@ #include #endif +#ifndef __GLIBC__ -+#include -+#include -+#include -+#include -+static char * canonicalize_file_name(const char *path) -+{ -+ char buf[PATH_MAX] = { }; -+ -+ snprintf(buf, sizeof(buf) - 1, "%s", path); -+ -+ if (!realpath(path, buf)) -+ return NULL; -+ -+ return strdup(buf); -+} ++#define canonicalize_file_name(p) realpath(p, NULL) +#endif -+ + /**** * #define RSDIR_DEBUG 1 diff --git a/srcpkgs/retroshare/template b/srcpkgs/retroshare/template index a70def838b8..d04ec9ad427 100644 --- a/srcpkgs/retroshare/template +++ b/srcpkgs/retroshare/template @@ -1,7 +1,7 @@ # Template file for 'retroshare' pkgname=retroshare version=0.6.2 -revision=1 +revision=2 build_style=qmake wrksrc="RetroShare-${version}" homepage="http://retroshare.github.io"