From 621123f0473eb11b34e040d3542cc9aca529f27e Mon Sep 17 00:00:00 2001 From: obache Date: Tue, 18 Mar 2014 09:03:26 +0000 Subject: Add workaround for NetBSD-5.x. readlink is defined as a macro, it produce build failure reported in PR pkg/48622. --- archivers/gtar-base/distinfo | 3 ++- archivers/gtar-base/patches/patch-gnu_readlinkat.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 archivers/gtar-base/patches/patch-gnu_readlinkat.c (limited to 'archivers') diff --git a/archivers/gtar-base/distinfo b/archivers/gtar-base/distinfo index dc70900e812..c5c7f582a97 100644 --- a/archivers/gtar-base/distinfo +++ b/archivers/gtar-base/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.31 2014/02/24 08:16:56 adam Exp $ +$NetBSD: distinfo,v 1.32 2014/03/18 09:03:26 obache Exp $ SHA1 (tar-1.27.1.tar.bz2) = 67aa31d0d497849c05ba5ea6eb41cff130407751 RMD160 (tar-1.27.1.tar.bz2) = a99ccfd874ac72c1e0feec2d86423c3e5bcd19fb Size (tar-1.27.1.tar.bz2) = 2573070 bytes SHA1 (patch-ad) = f3a988a6b675a389d8d307fe1a90dde81ba98df5 +SHA1 (patch-gnu_readlinkat.c) = b1ddbf5159db92df9186354f27db5c9cb93b9afa diff --git a/archivers/gtar-base/patches/patch-gnu_readlinkat.c b/archivers/gtar-base/patches/patch-gnu_readlinkat.c new file mode 100644 index 00000000000..7f4e82cb1ce --- /dev/null +++ b/archivers/gtar-base/patches/patch-gnu_readlinkat.c @@ -0,0 +1,14 @@ +$NetBSD: patch-gnu_readlinkat.c,v 1.1 2014/03/18 09:03:26 obache Exp $ + +* workaround for NetBSD-5.x, readlink is defined as a macro. + +--- gnu/readlinkat.c.orig 2013-06-29 05:54:25.000000000 +0000 ++++ gnu/readlinkat.c +@@ -41,6 +41,7 @@ + #define AT_FUNC_POST_FILE_PARAM_DECLS , char *buf, size_t len + #define AT_FUNC_POST_FILE_ARGS , buf, len + #define AT_FUNC_RESULT ssize_t ++#undef readlink + #include "at-func.c" + #undef AT_FUNC_NAME + #undef AT_FUNC_F1 -- cgit v1.2.3