FreeBSD Bugzilla – Attachment 257537 Details for
Bug 284822
devel/msp430-debug-stack: [PATCH] Build with Boost 1.87
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for Boost 1.87
msp430-debug-stack-boost-1.87.diff (text/plain), 2.77 KB, created by
ice
on 2025-02-14 18:28:18 UTC
(
hide
)
Description:
patch for Boost 1.87
Filename:
MIME Type:
Creator:
ice
Created:
2025-02-14 18:28:18 UTC
Size:
2.77 KB
patch
obsolete
>diff --git a/devel/msp430-debug-stack/Makefile b/devel/msp430-debug-stack/Makefile >index 51c02b9dd83d..77b05bcbcc86 100644 >--- a/devel/msp430-debug-stack/Makefile >+++ b/devel/msp430-debug-stack/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= msp430-debug-stack > PORTVERSION= 3.15.1.1 >-PORTREVISION= 10 >+PORTREVISION= 11 > CATEGORIES= devel > MASTER_SITES= https://dr-download.ti.com/software-development/driver-or-library/MD-4vnqcP1Wk4/${PORTVERSION}/ \ > LOCAL/lev:doc1 \ >@@ -16,8 +16,6 @@ WWW= http://www.ti.com/tool/mspds > > LICENSE= BSD3CLAUSE > >-BROKEN= fails to build with Boost>=1.87 >- > LIB_DEPENDS= libboost_filesystem.so:devel/boost-libs \ > libhidapi.so:comms/hidapi > >diff --git a/devel/msp430-debug-stack/files/patch-DLL430__v3_src_TI_DLL430_UsbCdcIoChannel.cpp b/devel/msp430-debug-stack/files/patch-DLL430__v3_src_TI_DLL430_UsbCdcIoChannel.cpp >index e65c70898d70..3bb02c53d7a1 100644 >--- a/devel/msp430-debug-stack/files/patch-DLL430__v3_src_TI_DLL430_UsbCdcIoChannel.cpp >+++ b/devel/msp430-debug-stack/files/patch-DLL430__v3_src_TI_DLL430_UsbCdcIoChannel.cpp >@@ -1,5 +1,23 @@ >---- DLL430_v3/src/TI/DLL430/UsbCdcIoChannel.cpp.orig 2020-02-14 09:38:32 UTC >+--- DLL430_v3/src/TI/DLL430/UsbCdcIoChannel.cpp.orig 2025-02-14 17:38:09 UTC > +++ DLL430_v3/src/TI/DLL430/UsbCdcIoChannel.cpp >+@@ -42,7 +42,7 @@ >+ >+ #include <boost/asio/read.hpp> >+ #include <boost/asio/write.hpp> >+-#include <boost/asio/io_service.hpp> >++#include <boost/asio/io_context.hpp> >+ >+ #if defined(_WIN32) || defined(_WIN64) >+ >+@@ -181,7 +181,7 @@ void UsbCdcIoChannel::createCdcPortList(const uint16_t >+ >+ for (;;) >+ { >+- io_service_t device = IOIteratorNext(iterator); >++ io_context_t device = IOIteratorNext(iterator); >+ if (device == 0) >+ { >+ if (!IOIteratorIsValid(iterator)) > @@ -310,6 +310,22 @@ void UsbCdcIoChannel::createCdcPortList(const uint16_t > } > #else >@@ -31,3 +49,38 @@ > const string filename = it->path().filename().string(); > const string portPath = string("/dev/") + filename; > >+@@ -376,7 +393,7 @@ bool UsbCdcIoChannel::openPort() >+ >+ bool UsbCdcIoChannel::openPort() >+ { >+- ioService = new boost::asio::io_service; >++ ioService = new boost::asio::io_context; >+ port = new boost::asio::serial_port(*ioService); >+ timer = new boost::asio::deadline_timer(*ioService); >+ >+@@ -542,7 +559,7 @@ size_t UsbCdcIoChannel::read(HalResponse& resp) >+ >+ boost::system::error_code ec; >+ >+- while (ioService->run_one(ec)) >++ while (ioService->run_one()) >+ { >+ if (readEvent) >+ { >+@@ -577,13 +594,13 @@ size_t UsbCdcIoChannel::read(HalResponse& resp) >+ >+ if (ioService->stopped()) >+ { >+- ioService->reset(); >++ ioService->restart(); >+ } >+ } >+ >+ //Let cancelled tasks finish >+- ioService->run(ec); >+- ioService->reset(); >++ ioService->run(); >++ ioService->restart(); >+ >+ >+ if (actSize == expSize)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 284822
: 257537