pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/haproxy haproxy: Fix build on SmartOS
details: https://anonhg.NetBSD.org/pkgsrc/rev/6b56105d4bde
branches: trunk
changeset: 443084:6b56105d4bde
user: otis <otis%pkgsrc.org@localhost>
date: Sun Dec 06 17:42:28 2020 +0000
description:
haproxy: Fix build on SmartOS
Fix build on SmartOS by adding proper _XOPEN_SOURCE et al. #define's
diffstat:
net/haproxy/distinfo | 7 ++++---
net/haproxy/patches/patch-src_haproxy.c | 7 ++++---
net/haproxy/patches/patch-src_proto__sockpair.c | 4 +++-
net/haproxy/patches/patch-src_sock.c | 21 +++++++++++++++++++++
4 files changed, 32 insertions(+), 7 deletions(-)
diffs (79 lines):
diff -r 96cc14b8cd7d -r 6b56105d4bde net/haproxy/distinfo
--- a/net/haproxy/distinfo Sun Dec 06 17:33:55 2020 +0000
+++ b/net/haproxy/distinfo Sun Dec 06 17:42:28 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.62 2020/12/06 11:22:53 adam Exp $
+$NetBSD: distinfo,v 1.63 2020/12/06 17:42:28 otis Exp $
SHA1 (haproxy-2.3.2.tar.gz) = 12de35c18989b92ec27ec560ab51ce40993c601d
RMD160 (haproxy-2.3.2.tar.gz) = fb4c5fce40e3e428433a310800e1323fad9c2c49
@@ -6,5 +6,6 @@
Size (haproxy-2.3.2.tar.gz) = 2903983 bytes
SHA1 (patch-Makefile) = fcb2de85189526ae42ccf0b789789ee9b834f375
SHA1 (patch-src_cli.c) = 4bc5cf0116df121ac4c3c38b8f962c3a62d536e5
-SHA1 (patch-src_haproxy.c) = badb172013541087d84f03726ea928c6f5634dc3
-SHA1 (patch-src_proto__sockpair.c) = 1f2a318f3b7c74a191774f8bb3511c23401c10ef
+SHA1 (patch-src_haproxy.c) = f0cd9d00f7d970bd3efa751b1584657ed14bcb7d
+SHA1 (patch-src_proto__sockpair.c) = 4d389c1f12d060517b8038ada9f0f4b5c87cf519
+SHA1 (patch-src_sock.c) = a27ab68da8f8c26881fd61ce8ffffed2bf251e32
diff -r 96cc14b8cd7d -r 6b56105d4bde net/haproxy/patches/patch-src_haproxy.c
--- a/net/haproxy/patches/patch-src_haproxy.c Sun Dec 06 17:33:55 2020 +0000
+++ b/net/haproxy/patches/patch-src_haproxy.c Sun Dec 06 17:42:28 2020 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_haproxy.c,v 1.2 2018/07/25 13:51:18 jperkin Exp $
+$NetBSD: patch-src_haproxy.c,v 1.3 2020/12/06 17:42:28 otis Exp $
Special handling for XPG4_2 on SunOS.
---- src/haproxy.c.orig 2018-06-27 14:27:32.000000000 +0000
+--- src/haproxy.c.orig 2020-11-28 15:51:33.000000000 +0000
+++ src/haproxy.c
-@@ -26,6 +26,13 @@
+@@ -26,6 +26,14 @@
*/
#define _GNU_SOURCE
@@ -14,6 +14,7 @@
+# else
+#define _XOPEN_SOURCE 600
+# endif
++#define _XOPEN_SOURCE_EXTENDED 1
+#endif
#include <stdio.h>
#include <stdlib.h>
diff -r 96cc14b8cd7d -r 6b56105d4bde net/haproxy/patches/patch-src_proto__sockpair.c
--- a/net/haproxy/patches/patch-src_proto__sockpair.c Sun Dec 06 17:33:55 2020 +0000
+++ b/net/haproxy/patches/patch-src_proto__sockpair.c Sun Dec 06 17:42:28 2020 +0000
@@ -1,4 +1,6 @@
-$NetBSD: patch-src_proto__sockpair.c,v 1.1 2019/08/11 09:09:41 maya Exp $
+$NetBSD: patch-src_proto__sockpair.c,v 1.2 2020/12/06 17:42:28 otis Exp $
+
+Special handling for XPG4_2 on SunOS.
--- src/proto_sockpair.c.orig 2019-07-23 13:21:26.000000000 +0000
+++ src/proto_sockpair.c
diff -r 96cc14b8cd7d -r 6b56105d4bde net/haproxy/patches/patch-src_sock.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/haproxy/patches/patch-src_sock.c Sun Dec 06 17:42:28 2020 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_sock.c,v 1.1 2020/12/06 17:42:28 otis Exp $
+
+Special handling for XPG4_2 on SunOS.
+
+--- src/sock.c.orig 2020-11-28 15:51:33.000000000 +0000
++++ src/sock.c
+@@ -11,6 +11,14 @@
+ */
+
+ #define _GNU_SOURCE
++#if defined(__sun) && !defined(_XOPEN_SOURCE)
++# if (__STDC_VERSION__-0 < 199901L)
++#define _XOPEN_SOURCE 500
++# else
++#define _XOPEN_SOURCE 600
++# endif
++#define _XOPEN_SOURCE_EXTENDED 1
++#endif
+ #include <ctype.h>
+ #include <errno.h>
+ #include <fcntl.h>
Home |
Main Index |
Thread Index |
Old Index