summaryrefslogtreecommitdiff
path: root/archivers/gtar-base
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-03-18 09:03:26 +0000
committerobache <obache@pkgsrc.org>2014-03-18 09:03:26 +0000
commit621123f0473eb11b34e040d3542cc9aca529f27e (patch)
tree15aff3342ccd3637fae3e935e6b0c61882262b85 /archivers/gtar-base
parent9f9f30efdc500e991335fa3838563924dffd93b8 (diff)
downloadpkgsrc-621123f0473eb11b34e040d3542cc9aca529f27e.tar.gz
Add workaround for NetBSD-5.x.
readlink is defined as a macro, it produce build failure reported in PR pkg/48622.
Diffstat (limited to 'archivers/gtar-base')
-rw-r--r--archivers/gtar-base/distinfo3
-rw-r--r--archivers/gtar-base/patches/patch-gnu_readlinkat.c14
2 files changed, 16 insertions, 1 deletions
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