pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/54651: boost-libs build fails on 9.99.17 (amd64 and i386)
The following reply was made to PR pkg/54651; it has been noted by GNATS.
From: "John D. Baker" <jdbaker%consolidated.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/54651: boost-libs build fails on 9.99.17 (amd64 and i386)
Date: Tue, 29 Oct 2019 09:33:34 -0500 (CDT)
On Mon, 28 Oct 2019, John D. Baker wrote:
> I tried applying the same change to boost-libs
>
> ${WRKSRC}/boost/asio/detail/impl/kqueue_reactor.ipp
>
> as was done for xll/wxGTK30 (make conditional on __NetBSD_Version__ less
> than 9.99.14, but that didn't work. Fails similarly (very long):
I forgot a crucial part of the patch. I need to include sys/param.h
to pick up the value of __NetBSD_Version__.
The following patch allows boost-libs to compile on netbsd-current
(9.99.17 in this case):
+--- boost/asio/detail/impl/kqueue_reactor.ipp.orig 2019-10-29 09:04:38.472778389 -0500
++++ boost/asio/detail/impl/kqueue_reactor.ipp 2019-10-29 09:04:38.472778389 -0500
+@@ -27,7 +27,11 @@
+
+ #include <boost/asio/detail/push_options.hpp>
+
+-#if defined(__NetBSD__)
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
++
++#if defined(__NetBSD__) && (__NetBSD_Version__ <= 999001400)
+ # define BOOST_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)))
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index