pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/asio asio: build fix for NetBSD > 9.99.14
details: https://anonhg.NetBSD.org/pkgsrc/rev/108e597af735
branches: trunk
changeset: 345757:108e597af735
user: gutteridge <gutteridge%pkgsrc.org@localhost>
date: Tue Dec 17 01:58:24 2019 +0000
description:
asio: build fix for NetBSD > 9.99.14
Carry over the same patch from the Boost meta-pkg to fix this same
file in this version of the asio implementation. (The patch looks a
little ungainly in isolation, but is simpler than creating multiple
#if/#else blocks in the target file.)
(TBD: this package is likely redundant, as a newer version of it is
subsumed within the Boost libraries. The only package depending on it
is abiword-plugins. At first glance, it appears that abiword-plugins
could simply be patched to reference the Boost namespace for this
functionality. But I haven't confirmed if there are any specific
functional gaps between the two implementations, so I'm making this
quick build fix for now.)
diffstat:
devel/asio/Makefile | 3 +-
devel/asio/distinfo | 3 +-
devel/asio/patches/patch-include_asio_detail_impl_kqueue__reactor.ipp | 17 ++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r 943681cbd1b6 -r 108e597af735 devel/asio/Makefile
--- a/devel/asio/Makefile Mon Dec 16 23:56:02 2019 +0000
+++ b/devel/asio/Makefile Tue Dec 17 01:58:24 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2016/10/02 22:04:37 prlw1 Exp $
+# $NetBSD: Makefile,v 1.4 2019/12/17 01:58:24 gutteridge Exp $
DISTNAME= asio-1.10.8
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=asio/}
EXTRACT_SUFX= .tar.bz2
diff -r 943681cbd1b6 -r 108e597af735 devel/asio/distinfo
--- a/devel/asio/distinfo Mon Dec 16 23:56:02 2019 +0000
+++ b/devel/asio/distinfo Tue Dec 17 01:58:24 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2016/10/02 22:04:37 prlw1 Exp $
+$NetBSD: distinfo,v 1.4 2019/12/17 01:58:24 gutteridge Exp $
SHA1 (asio-1.10.8.tar.bz2) = 07dde049a1bb975decccf499b08c2bf03e966895
RMD160 (asio-1.10.8.tar.bz2) = 938970e6c001393e4822d5aa89db36d24929dc9a
SHA512 (asio-1.10.8.tar.bz2) = d870686d2b19bec9925c311f2f0fd370e9797bbad252176a80a998f9c322ecd502b5081826105712e7caf87c03c3e6b70a0e219019e5bff46077d6e8c3c6db09
Size (asio-1.10.8.tar.bz2) = 1270332 bytes
+SHA1 (patch-include_asio_detail_impl_kqueue__reactor.ipp) = 74d0dc164117c5b684a1bdfa2faad1dff57302b3
diff -r 943681cbd1b6 -r 108e597af735 devel/asio/patches/patch-include_asio_detail_impl_kqueue__reactor.ipp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/asio/patches/patch-include_asio_detail_impl_kqueue__reactor.ipp Tue Dec 17 01:58:24 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-include_asio_detail_impl_kqueue__reactor.ipp,v 1.1 2019/12/17 01:58:24 gutteridge Exp $
+
+* Fix build with recent NetBSD 9.99
+
+--- include/asio/detail/impl/kqueue_reactor.ipp.orig 2016-09-18 22:24:38.000000000 +0000
++++ include/asio/detail/impl/kqueue_reactor.ipp
+@@ -27,6 +27,10 @@
+ #include "asio/detail/push_options.hpp"
+
+ #if defined(__NetBSD__)
++#include <sys/param.h>
++#endif
++
++#if defined(__NetBSD__) && __NetBSD_Version__ < 999001500
+ # define ASIO_KQUEUE_EV_SET(ev, ident, filt, flags, fflags, data, udata) \
+ EV_SET(ev, ident, filt, flags, fflags, data, \
+ reinterpret_cast<intptr_t>(static_cast<void*>(udata)))
Home |
Main Index |
Thread Index |
Old Index