FreeBSD Bugzilla – Attachment 240139 Details for
Bug 269236
databases/foundationdb: Update to 7.2.3 unbreak after msgpack mess
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
7.2.3
fdb7.2.3.patch (text/plain), 9.03 KB, created by
Dave Cottlehuber
on 2023-02-13 23:01:13 UTC
(
hide
)
Description:
7.2.3
Filename:
MIME Type:
Creator:
Dave Cottlehuber
Created:
2023-02-13 23:01:13 UTC
Size:
9.03 KB
patch
obsolete
>commit 3c6dad8f577374f91d13183db300d66682a6a9b0 >Author: Dave Cottlehuber <dch@FreeBSD.org> >Date: Mon Feb 13 20:27:51 2023 +0000 > > databases/foundationdb: update to 7.2.3 > > - fix build after upstream msgpack changes > > PR: 269236 > Obtained from: Dmitry Wagin <dmitry.wagin@ya.ru> > Sponsored by: SkunkWerks, GmbH > >diff --git databases/foundationdb/Makefile databases/foundationdb/Makefile >index d6aa594f6e6d..0f09b4674041 100644 >--- databases/foundationdb/Makefile >+++ databases/foundationdb/Makefile >@@ -1,6 +1,5 @@ > PORTNAME= foundationdb >-DISTVERSION= 7.1.25 >-PORTREVISION= 1 >+DISTVERSION= 7.2.3 > CATEGORIES= databases > > # PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/pull/ >@@ -23,8 +22,7 @@ BUILD_DEPENDS= ${LOCALBASE}/include/msgpack.hpp:devel/msgpack-cxx \ > LIB_DEPENDS= libboost_system.so:devel/boost-libs \ > libeio.so:devel/libeio > >-USES= cmake compiler:c++17-lang mono:build python:build shebangfix \ >- ssl >+USES= cmake compiler:c++20-lang mono:build python:build shebangfix ssl > USE_GITHUB= yes > GH_ACCOUNT= apple > GH_PROJECT= foundationdb >diff --git databases/foundationdb/distinfo databases/foundationdb/distinfo >index 902fdaf207b6..56ddfa2c2709 100644 >--- databases/foundationdb/distinfo >+++ databases/foundationdb/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1668350492 >-SHA256 (apple-foundationdb-7.1.25_GH0.tar.gz) = 0c4679afb982932dfa37cbb7544eee4c8efc2409864af55743345c153407cb2c >-SIZE (apple-foundationdb-7.1.25_GH0.tar.gz) = 11657831 >+TIMESTAMP = 1674205496 >+SHA256 (apple-foundationdb-7.2.3_GH0.tar.gz) = 464f13526f9c79483af1802492ac5c09f32a5a3ed0f5da63b066288836c46485 >+SIZE (apple-foundationdb-7.2.3_GH0.tar.gz) = 12490828 >diff --git databases/foundationdb/files/patch-CMakeLists.txt databases/foundationdb/files/patch-CMakeLists.txt >index 78d6244a990c..a5801be60ad0 100644 >--- databases/foundationdb/files/patch-CMakeLists.txt >+++ databases/foundationdb/files/patch-CMakeLists.txt >@@ -1,13 +1,19 @@ >---- CMakeLists.txt.orig 2022-09-19 11:42:41 UTC >+--- CMakeLists.txt.orig 2023-01-18 18:54:50 UTC > +++ CMakeLists.txt >-@@ -183,9 +183,13 @@ add_subdirectory(fdbbackup) >- add_subdirectory(fdbservice) >- endif() >- add_subdirectory(fdbbackup) >+@@ -174,7 +174,9 @@ include(GetMsgpack) >+ >+ include(CompileBoost) >+ include(GetMsgpack) > -add_subdirectory(contrib) > +if(WITH_CONTRIB) > + add_subdirectory(contrib) > +endif() >+ add_subdirectory(flow) >+ add_subdirectory(fdbrpc) >+ add_subdirectory(fdbclient) >+@@ -187,7 +189,9 @@ add_subdirectory(tests) >+ endif() >+ add_subdirectory(fdbbackup) > add_subdirectory(tests) > -add_subdirectory(flowbench EXCLUDE_FROM_ALL) > +if(WITH_FLOWBENCH) >diff --git databases/foundationdb/files/patch-bindings_c_CMakeLists.txt databases/foundationdb/files/patch-bindings_c_CMakeLists.txt >index 7c58fb132630..95fa54820a46 100644 >--- databases/foundationdb/files/patch-bindings_c_CMakeLists.txt >+++ databases/foundationdb/files/patch-bindings_c_CMakeLists.txt >@@ -1,11 +1,11 @@ >---- bindings/c/CMakeLists.txt.orig 2022-09-19 11:42:41 UTC >+--- bindings/c/CMakeLists.txt.orig 2023-01-18 18:54:50 UTC > +++ bindings/c/CMakeLists.txt >-@@ -78,7 +78,7 @@ endif() >+@@ -93,7 +93,7 @@ endif() > endif() > > # The tests don't build on windows > -if(NOT WIN32) > +if(NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") > set(MAKO_SRCS >- test/mako/mako.c >- test/mako/mako.h >+ test/mako/async.hpp >+ test/mako/async.cpp >diff --git databases/foundationdb/files/patch-cmake_CompileBoost.cmake databases/foundationdb/files/patch-cmake_CompileBoost.cmake >index c72e610786f0..9d8889f6fff9 100644 >--- databases/foundationdb/files/patch-cmake_CompileBoost.cmake >+++ databases/foundationdb/files/patch-cmake_CompileBoost.cmake >@@ -1,11 +1,11 @@ >---- cmake/CompileBoost.cmake.orig 2022-09-19 11:42:41 UTC >+--- cmake/CompileBoost.cmake.orig 2023-01-18 18:54:50 UTC > +++ cmake/CompileBoost.cmake >-@@ -113,7 +113,7 @@ endif() >+@@ -141,7 +141,7 @@ endif() > return() > endif() > >--find_package(Boost 1.78.0 EXACT QUIET COMPONENTS context CONFIG PATHS ${BOOST_HINT_PATHS}) >-+find_package(Boost 1.78.0 COMPONENTS context CONFIG PATHS ${BOOST_HINT_PATHS}) >+-find_package(Boost 1.78.0 EXACT QUIET COMPONENTS context filesystem iostreams CONFIG PATHS ${BOOST_HINT_PATHS}) >++find_package(Boost 1.78.0 COMPONENTS context filesystem iostreams CONFIG PATHS ${BOOST_HINT_PATHS}) > set(FORCE_BOOST_BUILD OFF CACHE BOOL "Forces cmake to build boost and ignores any installed boost") > >- if(Boost_FOUND AND NOT FORCE_BOOST_BUILD) >+ if(Boost_FOUND AND Boost_filesystem_FOUND AND Boost_context_FOUND AND Boost_iostreams_FOUND AND NOT FORCE_BOOST_BUILD) >diff --git databases/foundationdb/files/patch-cmake_FDBComponents.cmake databases/foundationdb/files/patch-cmake_FDBComponents.cmake >index 556fe68a9257..4e6a5b0b9552 100644 >--- databases/foundationdb/files/patch-cmake_FDBComponents.cmake >+++ databases/foundationdb/files/patch-cmake_FDBComponents.cmake >@@ -1,15 +1,15 @@ >---- cmake/FDBComponents.cmake.orig 2022-09-19 11:42:41 UTC >+--- cmake/FDBComponents.cmake.orig 2023-01-18 18:54:50 UTC > +++ cmake/FDBComponents.cmake >-@@ -24,7 +24,7 @@ else() >- if(DISABLE_TLS) >- set(WITH_TLS OFF) >- else() >+@@ -35,7 +35,7 @@ elseif(USE_OPENSSL) >+ message(FATAL_ERROR "Unable to find WolfSSL") >+ endif() >+ elseif(USE_OPENSSL) > - set(OPENSSL_USE_STATIC_LIBS TRUE) > + set(OPENSSL_USE_STATIC_LIBS FALSE) > if(WIN32) > set(OPENSSL_MSVC_STATIC_RT ON) > endif() >-@@ -198,6 +198,13 @@ endif() >+@@ -212,6 +212,13 @@ endif() > endif() > > ################################################################################ >@@ -23,7 +23,7 @@ > # Coroutine implementation > ################################################################################ > >-@@ -242,6 +249,8 @@ function(print_components) >+@@ -255,6 +262,8 @@ function(print_components) > message(STATUS "Build Documentation (make html): ${WITH_DOCUMENTATION}") > message(STATUS "Build Python sdist (make package): ${WITH_PYTHON_BINDING}") > message(STATUS "Configure CTest (depends on Python): ${WITH_PYTHON}") >diff --git databases/foundationdb/files/patch-cmake_GetMsgpack.cmake databases/foundationdb/files/patch-cmake_GetMsgpack.cmake >index dee8066686d4..2c1efcd7a256 100644 >--- databases/foundationdb/files/patch-cmake_GetMsgpack.cmake >+++ databases/foundationdb/files/patch-cmake_GetMsgpack.cmake >@@ -2,7 +2,7 @@ > +++ cmake/GetMsgpack.cmake > @@ -1,20 +1,7 @@ > -find_package(msgpack 3.3.0 EXACT QUIET CONFIG) >-+find_package(msgpack REQUIRED QUIET CONFIG) >++find_package(msgpackc-cxx REQUIRED QUIET CONFIG) > > add_library(msgpack INTERFACE) > >diff --git databases/foundationdb/files/patch-fdbserver_FDBExecHelper.actor.cpp databases/foundationdb/files/patch-fdbserver_FDBExecHelper.actor.cpp >deleted file mode 100644 >index 4950f7fd5e8b..000000000000 >--- databases/foundationdb/files/patch-fdbserver_FDBExecHelper.actor.cpp >+++ /dev/null >@@ -1,32 +0,0 @@ >---- fdbserver/FDBExecHelper.actor.cpp.orig 2022-09-19 11:42:41 UTC >-+++ fdbserver/FDBExecHelper.actor.cpp >-@@ -18,6 +18,14 @@ >- * limitations under the License. >- */ >- >-+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__INTEL_COMPILER) >-+#define BOOST_SYSTEM_NO_LIB >-+#define BOOST_DATE_TIME_NO_LIB >-+#define BOOST_REGEX_NO_LIB >-+#include <boost/process.hpp> >-+#endif >-+#include <boost/algorithm/string.hpp> >-+ >- #include "flow/TLSConfig.actor.h" >- #include "flow/Trace.h" >- #include "flow/Platform.h" >-@@ -33,14 +41,6 @@ >- #include "fdbserver/FDBExecHelper.actor.h" >- #include "fdbserver/Knobs.h" >- #include "fdbserver/RemoteIKeyValueStore.actor.h" >-- >--#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__INTEL_COMPILER) >--#define BOOST_SYSTEM_NO_LIB >--#define BOOST_DATE_TIME_NO_LIB >--#define BOOST_REGEX_NO_LIB >--#include <boost/process.hpp> >--#endif >--#include <boost/algorithm/string.hpp> >- >- #include "flow/actorcompiler.h" // This must be the last #include. >- >diff --git databases/foundationdb/files/patch-fdbserver_fdbserver.actor.cpp databases/foundationdb/files/patch-fdbserver_fdbserver.actor.cpp >deleted file mode 100644 >index 1720825f36ac..000000000000 >--- databases/foundationdb/files/patch-fdbserver_fdbserver.actor.cpp >+++ /dev/null >@@ -1,30 +0,0 @@ >---- fdbserver/fdbserver.actor.cpp.orig 2022-09-19 11:42:41 UTC >-+++ fdbserver/fdbserver.actor.cpp >-@@ -84,7 +84,11 @@ >- #if defined(__linux__) || defined(__FreeBSD__) >- #include <execinfo.h> >- #include <signal.h> >-+#if defined(__linux__) >- #include <sys/prctl.h> >-+#elif defined(__FreeBSD__) >-+#include <sys/procctl.h> >-+#endif >- #ifdef ALLOC_INSTRUMENTATION >- #include <cxxabi.h> >- #endif >-@@ -2225,9 +2229,14 @@ int main(int argc, char* argv[]) { >- f = result; >- } else if (role == ServerRole::FlowProcess) { >- TraceEvent(SevDebug, "StartingFlowProcess").detail("From", "fdbserver"); >--#if defined(__linux__) || defined(__FreeBSD__) >-+#if defined(__linux__) >- prctl(PR_SET_PDEATHSIG, SIGTERM); >- if (getppid() == 1) /* parent already died before prctl */ >-+ flushAndExit(FDB_EXIT_SUCCESS); >-+#elif defined(__FreeBSD__) >-+ const int sig = SIGTERM; >-+ procctl(P_PID, 0, PROC_PDEATHSIG_CTL, (void*)&sig); >-+ if (getppid() == 1) /* parent already died before procctl */ >- flushAndExit(FDB_EXIT_SUCCESS); >- #endif >-
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 269236
:
239795
| 240139 |
241064
|
241065
|
241105