summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-10-26 12:03:49 +0000
committerjperkin <jperkin@pkgsrc.org>2018-10-26 12:03:49 +0000
commit5042964eaf7b285c3e7977f669ed3f302899f02b (patch)
tree13c41b5290eb08c9e47b9702e6f02dea1a708ec7 /devel
parent689822509738e21fb7acf3a376eb8562b169d09a (diff)
downloadpkgsrc-5042964eaf7b285c3e7977f669ed3f302899f02b.tar.gz
lua-lrexlib: Fix build on SunOS.
Diffstat (limited to 'devel')
-rw-r--r--devel/lua-lrexlib/distinfo3
-rw-r--r--devel/lua-lrexlib/patches/patch-src_posix_lposix.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/lua-lrexlib/distinfo b/devel/lua-lrexlib/distinfo
index 8a20e51c433..e82510bf36f 100644
--- a/devel/lua-lrexlib/distinfo
+++ b/devel/lua-lrexlib/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 03:27:47 agc Exp $
+$NetBSD: distinfo,v 1.4 2018/10/26 12:03:49 jperkin Exp $
SHA1 (lrexlib-rel-2-7-2.zip) = c353b1dacb7b1ecbd6e0dd0a32e701ceec0b88d1
RMD160 (lrexlib-rel-2-7-2.zip) = 269d33666b8095305589634b2ea76bf2c4720de6
SHA512 (lrexlib-rel-2-7-2.zip) = 2741ff9f363f9e57dc31b96a474d4da9481a7e99af86cdd5860b50e1ed5eb1d29a14f45a5be819cfd9f28a703189cf79a9aa872a69d1d70bb5fd6ba68990438f
Size (lrexlib-rel-2-7-2.zip) = 78058 bytes
SHA1 (patch-BSDmakefile) = a37a165cfc268ded28bd846bdcea0c1cb0f95818
+SHA1 (patch-src_posix_lposix.c) = 6c6cf87dd364549104ef25250b910982f077788d
diff --git a/devel/lua-lrexlib/patches/patch-src_posix_lposix.c b/devel/lua-lrexlib/patches/patch-src_posix_lposix.c
new file mode 100644
index 00000000000..26de0f32429
--- /dev/null
+++ b/devel/lua-lrexlib/patches/patch-src_posix_lposix.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_posix_lposix.c,v 1.1 2018/10/26 12:03:49 jperkin Exp $
+
+Avoid unsupported REG_* flags on SunOS.
+
+--- src/posix/lposix.c.orig 2013-01-08 11:41:58.000000000 +0000
++++ src/posix/lposix.c
+@@ -234,7 +234,7 @@ static flag_pair posix_error_flags[] = {
+ { "ERANGE", REG_ERANGE },
+ { "ESPACE", REG_ESPACE },
+ { "BADRPT", REG_BADRPT },
+-#ifdef REX_POSIX_EXT
++#if defined(REX_POSIX_EXT) && !defined(__sun)
+ { "EMPTY", REG_EMPTY },
+ { "ASSERT", REG_ASSERT },
+ { "INVARG", REG_INVARG },