You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by mg...@apache.org on 2024/12/31 10:16:29 UTC

(kudu) branch master updated (9a06aeb06 -> 5f977935d)

This is an automated email from the ASF dual-hosted git repository.

mgreber pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


    from 9a06aeb06 KUDU-3573 fix flakiness in TestNewOpsDontGetScheduledDuringUnregister
     new cf9d1d2a3 Revert "[rest] add oat++ framework to kudu"
     new 5f977935d [thirdparty] fix building breakpad with GCC13

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CMakeLists.txt                                     | 12 ----
 cmake_modules/FindOatpp.cmake                      | 38 ----------
 cmake_modules/FindOatppSwagger.cmake               | 37 ----------
 thirdparty/build-definitions.sh                    | 31 --------
 thirdparty/build-thirdparty.sh                     | 18 -----
 thirdparty/download-thirdparty.sh                  | 22 ++----
 thirdparty/patches/breakpad-SIGSTKSZ-error.patch   | 30 ++++++--
 thirdparty/patches/breakpad-fclose.patch           | 40 +++++++++++
 thirdparty/patches/breakpad-fread.patch            | 27 +++++++
 thirdparty/patches/breakpad-guid-creator.patch     | 23 ++++++
 .../patches/breakpad-minidump-descriptor.patch     | 22 ++++++
 .../patches/oatpp-remove-version-from-path.patch   | 65 -----------------
 .../oatpp-swagger-remove-version-from-path.patch   | 83 ----------------------
 thirdparty/vars.sh                                 |  8 ---
 14 files changed, 144 insertions(+), 312 deletions(-)
 delete mode 100644 cmake_modules/FindOatpp.cmake
 delete mode 100644 cmake_modules/FindOatppSwagger.cmake
 create mode 100644 thirdparty/patches/breakpad-fclose.patch
 create mode 100644 thirdparty/patches/breakpad-fread.patch
 create mode 100644 thirdparty/patches/breakpad-guid-creator.patch
 create mode 100644 thirdparty/patches/breakpad-minidump-descriptor.patch
 delete mode 100644 thirdparty/patches/oatpp-remove-version-from-path.patch
 delete mode 100644 thirdparty/patches/oatpp-swagger-remove-version-from-path.patch


(kudu) 01/02: Revert "[rest] add oat++ framework to kudu"

Posted by mg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mgreber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit cf9d1d2a3c31f6136f857c2a075deebc311ab80f
Author: zchovan <zc...@cloudera.com>
AuthorDate: Wed Oct 30 08:42:59 2024 +0100

    Revert "[rest] add oat++ framework to kudu"
    
    This reverts commit dda258785bbdfef8a14bc27c7cb1c9ebd61d3035.
    
    Since the Oat++ framework was never used in any features, and the Oat++
    based rest api was abandoned, this revert removes the library as a
    dependency.
    
    Change-Id: Ie589074b67ed5ed23d4f83ccea8e3351caef5e7f
    Reviewed-on: http://gerrit.cloudera.org:8080/22040
    Reviewed-by: Marton Greber <gr...@gmail.com>
    Tested-by: Marton Greber <gr...@gmail.com>
    Reviewed-by: Gabriella Lotz <lo...@gmail.com>
---
 CMakeLists.txt                                     | 12 ----
 cmake_modules/FindOatpp.cmake                      | 38 ----------
 cmake_modules/FindOatppSwagger.cmake               | 37 ----------
 thirdparty/build-definitions.sh                    | 31 --------
 thirdparty/build-thirdparty.sh                     | 18 -----
 thirdparty/download-thirdparty.sh                  | 14 ----
 .../patches/oatpp-remove-version-from-path.patch   | 65 -----------------
 .../oatpp-swagger-remove-version-from-path.patch   | 83 ----------------------
 thirdparty/vars.sh                                 |  8 ---
 9 files changed, 306 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad8fb3737..8e0e1db7d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1144,18 +1144,6 @@ include_directories(SYSTEM ${MUSTACHE_INCLUDE_DIR})
 ADD_THIRDPARTY_LIB(mustache
   STATIC_LIB "${MUSTACHE_STATIC_LIB}")
 
-## Oatpp
-find_package(Oatpp REQUIRED)
-include_directories(SYSTEM ${OATPP_INCLUDE_DIR})
-ADD_THIRDPARTY_LIB(oatpp
-  STATIC_LIB "${OATPP_STATIC_LIB}")
-
-## Oatpp-swagger
-find_package(OatppSwagger REQUIRED)
-include_directories(SYSTEM ${OATPP_SWAGGER_INCLUDE_DIR})
-ADD_THIRDPARTY_LIB(oatpp-swagger
-  STATIC_LIB "${OATPP_SWAGGER_STATIC_LIB}")
-
 ## jwt-cpp
 find_package(JwtCpp REQUIRED)
 include_directories(${JWT_CPP_INCLUDE_DIR})
diff --git a/cmake_modules/FindOatpp.cmake b/cmake_modules/FindOatpp.cmake
deleted file mode 100644
index 65b072818..000000000
--- a/cmake_modules/FindOatpp.cmake
+++ /dev/null
@@ -1,38 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# - Find Oatpp
-# This module defines
-#  OATPP_INCLUDE_DIR, directory containing headers
-#  OATPP_STATIC_LIB, path to liboatpp.a
-#  OATPP_FOUND, whether oat++ has been found
-
-find_path(OATPP_INCLUDE_DIR oatpp/oatpp/oatpp/algorithm/CRC.hpp
-        # make sure we don't accidentally pick up a different version
-        NO_CMAKE_SYSTEM_PATH
-        NO_SYSTEM_ENVIRONMENT_PATH)
-
-set(OATPP_INCLUDE_DIR ${OATPP_INCLUDE_DIR}/oatpp/oatpp/)
-
-find_library(OATPP_STATIC_LIB oatpp/liboatpp.a
-        NO_CMAKE_SYSTEM_PATH
-        NO_SYSTEM_ENVIRONMENT_PATH)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Oatpp REQUIRED_VARS
-        OATPP_STATIC_LIB OATPP_INCLUDE_DIR)
-
diff --git a/cmake_modules/FindOatppSwagger.cmake b/cmake_modules/FindOatppSwagger.cmake
deleted file mode 100644
index 593bf9564..000000000
--- a/cmake_modules/FindOatppSwagger.cmake
+++ /dev/null
@@ -1,37 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-# - Find Oatpp-Swagger Module
-# This module defines
-#  OATPP_SWAGGER_INCLUDE_DIR, directory containing headers
-#  OATPP_SWAGGER_STATIC_LIB, path to liboatpp-swagger.a.
-#  OATPP_SWAGGER_FOUND, whether oat++ swagger has been found
-
-find_path(OATPP_SWAGGER_INCLUDE_DIR oatpp/oatpp-swagger/oatpp-swagger/Resources.hpp
-        # make sure we don't accidentally pick up a different version
-        NO_CMAKE_SYSTEM_PATH
-        NO_SYSTEM_ENVIRONMENT_PATH)
-
-set(OATPP_SWAGGER_INCLUDE_DIR ${OATPP_SWAGGER_INCLUDE_DIR}/oatpp/oatpp-swagger/)
-
-find_library(OATPP_SWAGGER_STATIC_LIB oatpp/liboatpp-swagger.a
-        NO_CMAKE_SYSTEM_PATH
-        NO_SYSTEM_ENVIRONMENT_PATH)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(OatppSwagger  REQUIRED_VARS
-        OATPP_SWAGGER_STATIC_LIB OATPP_SWAGGER_INCLUDE_DIR)
\ No newline at end of file
diff --git a/thirdparty/build-definitions.sh b/thirdparty/build-definitions.sh
index 7551ef445..01a0f1ecb 100644
--- a/thirdparty/build-definitions.sh
+++ b/thirdparty/build-definitions.sh
@@ -1178,37 +1178,6 @@ build_postgres() {
   popd
 }
 
-build_oatpp(){
-  OATPP_BUILD_DIR=$TP_BUILD_DIR/$OATPP_NAME$MODE_SUFFIX
-  mkdir -p $OATPP_BUILD_DIR
-  pushd $OATPP_BUILD_DIR
-  cmake \
-    -DCMAKE_BUILD_TYPE=release \
-    -DCMAKE_INSTALL_PREFIX=$PREFIX \
-    -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-    -DBUILD_SHARED_LIBS=OFF \
-    -DOATPP_DISABLE_ENV_OBJECT_COUNTERS=ON \
-    -DOATPP_BUILD_TESTS=OFF \
-    $OATPP_SOURCE
-  make -j$PARALLEL install
-  popd
-}
-
-build_oatpp_swagger(){
-  OATPP_SWAGGER_BUILD_DIR=$TP_BUILD_DIR/$OATPP_SWAGGER_NAME$MODE_SUFFIX
-  mkdir -p $OATPP_SWAGGER_BUILD_DIR
-  pushd $OATPP_SWAGGER_BUILD_DIR
-  cmake \
-    -DCMAKE_BUILD_TYPE=release \
-    -DCMAKE_INSTALL_PREFIX=$PREFIX \
-    -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-    -DBUILD_SHARED_LIBS=OFF \
-    -DOATPP_BUILD_TESTS=OFF \
-    -DOATPP_INSTALL=ON \
-    $OATPP_SWAGGER_SOURCE
-  make -j$PARALLEL install
-  popd
-}
 
 build_jwt_cpp() {
   JWT_CPP_BUILD_DIR=$TP_BUILD_DIR/$JWT_CPP_NAME$MODE_SUFFIX
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index ae32a4f3b..2809fa241 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -108,8 +108,6 @@ else
       "postgres")     F_POSTGRES=1 ;;
       "psql-jdbc")    F_POSTGRES_JDBC=1 ;;
       "ranger")       F_RANGER=1 ;;
-      "oatpp")        F_OATPP=1 ;;
-      "oatpp-swagger") F_OATPP_SWAGGER=1 ;;
       "jwt-cpp")      F_JWT_CPP=1 ;;
       "ranger-kms")   F_RANGER_KMS=1 ;;
       "rocksdb")      F_ROCKSDB=1 ;;
@@ -441,14 +439,6 @@ if [ -n "$F_UNINSTRUMENTED" -o -n "$F_GUMBO_QUERY" ]; then
   build_gumbo_query
 fi
 
-if [ -n "$F_UNINSTRUMENTED" -o -n "$F_OATPP" ]; then
-  build_oatpp
-fi
-
-if [ -n "$F_UNINSTRUMENTED" -o -n "$F_OATPP_SWAGGER" ]; then
-  build_oatpp_swagger
-fi
-
 if [ -n "$F_UNINSTRUMENTED" -o -n "$F_JWT_CPP" ]; then
   build_jwt_cpp
 fi
@@ -639,14 +629,6 @@ if [ -n "$F_TSAN" -o -n "$F_GUMBO_QUERY" ]; then
   build_gumbo_query
 fi
 
-if [ -n "$F_TSAN" -o -n "$F_OATPP" ]; then
-  build_oatpp
-fi
-
-if [ -n "$F_TSAN" -o -n "$F_OATPP_SWAGGER" ]; then
-  build_oatpp_swagger
-fi
-
 if [ -n "$F_TSAN" -o -n "$F_JWT_CPP" ]; then
   build_jwt_cpp
 fi
diff --git a/thirdparty/download-thirdparty.sh b/thirdparty/download-thirdparty.sh
index 539c1806f..29662c92b 100755
--- a/thirdparty/download-thirdparty.sh
+++ b/thirdparty/download-thirdparty.sh
@@ -466,20 +466,6 @@ fetch_and_patch \
  $RANGER_PATCHLEVEL \
  "patch -p0 < $TP_DIR/patches/ranger-fixscripts.patch"
 
-OATPP_PATCHLEVEL=1
-fetch_and_patch \
- $OATPP_NAME.tar.gz \
- $OATPP_SOURCE \
- $OATPP_PATCHLEVEL \
- "patch -p1 < $TP_DIR/patches/oatpp-remove-version-from-path.patch"
-
-OATPP_SWAGGER_PATCHLEVEL=1
-fetch_and_patch \
- $OATPP_SWAGGER_NAME.tar.gz \
- $OATPP_SWAGGER_SOURCE \
- $OATPP_SWAGGER_PATCHLEVEL \
-"patch -p1 < $TP_DIR/patches/oatpp-swagger-remove-version-from-path.patch"
-
 JWT_CPP_PATCHLEVEL=0
 fetch_and_patch \
   $JWT_CPP_NAME.tar.gz \
diff --git a/thirdparty/patches/oatpp-remove-version-from-path.patch b/thirdparty/patches/oatpp-remove-version-from-path.patch
deleted file mode 100644
index b24f2acbe..000000000
--- a/thirdparty/patches/oatpp-remove-version-from-path.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-diff --git a/cmake/module-config.cmake.in b/cmake/module-config.cmake.in
-index 5cc12b0..00b7913 100644
---- a/cmake/module-config.cmake.in
-+++ b/cmake/module-config.cmake.in
-@@ -4,8 +4,8 @@ if(NOT TARGET oatpp::@OATPP_MODULE_NAME@)
-     include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake")
- endif()
-
--set_and_check(@OATPP_MODULE_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/oatpp-@OATPP_MODULE_VERSION@/@OATPP_MODULE_NAME@/")
--set_and_check(@OATPP_MODULE_NAME@_LIBRARIES_DIRS "${PACKAGE_PREFIX_DIR}/@OATPP_MODULE_LIBDIR@/oatpp-@OATPP_MODULE_VERSION@/")
-+set_and_check(@OATPP_MODULE_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/oatpp/@OATPP_MODULE_NAME@/")
-+set_and_check(@OATPP_MODULE_NAME@_LIBRARIES_DIRS "${PACKAGE_PREFIX_DIR}/@OATPP_MODULE_LIBDIR@/oatpp/")
-
- set(@OATPP_MODULE_NAME@_LIBRARIES @OATPP_MODULE_LIBRARIES@)
--set(OATPP_BASE_DIR "${PACKAGE_PREFIX_DIR}/include/oatpp-@OATPP_MODULE_VERSION@/")
-+set(OATPP_BASE_DIR "${PACKAGE_PREFIX_DIR}/include/oatpp/")
-diff --git a/cmake/module-install.cmake b/cmake/module-install.cmake
-index 4506ea6..d0972ae 100644
---- a/cmake/module-install.cmake
-+++ b/cmake/module-install.cmake
-@@ -59,21 +59,21 @@ endforeach()
-
- install(TARGETS ${OATPP_THIS_MODULE_TARGETS}
-         EXPORT "${OATPP_MODULE_NAME}Targets"
--        ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
--        LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
--        RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/oatpp-${OATPP_MODULE_VERSION}"
--        INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
-+        ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp"
-+        LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp"
-+        RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/oatpp"
-+        INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp/${OATPP_MODULE_NAME}"
- )
-
- install(DIRECTORY ${OATPP_DIRS_TO_INSTALL}
--        DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
-+        DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp/${OATPP_MODULE_NAME}"
-         FILES_MATCHING PATTERN "*.hpp"
- )
-
- install(EXPORT "${OATPP_MODULE_NAME}Targets"
-         FILE "${OATPP_MODULE_NAME}Targets.cmake"
-         NAMESPACE oatpp::
--        DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
-+        DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}"
- )
-
- include(CMakePackageConfigHelpers)
-@@ -89,7 +89,7 @@ configure_package_config_file(
-             "${CMAKE_CURRENT_LIST_DIR}/module-config.cmake.in"
-             "${OATPP_MODULE_NAME}Config.cmake"
-         INSTALL_DESTINATION
--            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
-+            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}"
-         PATH_VARS
-             OATPP_MODULE_NAME
-             OATPP_MODULE_VERSION
-@@ -103,5 +103,5 @@ install(
-             "${CMAKE_CURRENT_BINARY_DIR}/${OATPP_MODULE_NAME}Config.cmake"
-             "${CMAKE_CURRENT_BINARY_DIR}/${OATPP_MODULE_NAME}ConfigVersion.cmake"
-         DESTINATION
--            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
-+            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}"
- )
-\ No newline at end of file
\ No newline at end of file
diff --git a/thirdparty/patches/oatpp-swagger-remove-version-from-path.patch b/thirdparty/patches/oatpp-swagger-remove-version-from-path.patch
deleted file mode 100644
index 41970f349..000000000
--- a/thirdparty/patches/oatpp-swagger-remove-version-from-path.patch
+++ /dev/null
@@ -1,83 +0,0 @@
-diff --git a/cmake/module-config.cmake.in b/cmake/module-config.cmake.in
-index 5cc12b0..00b7913 100644
---- a/cmake/module-config.cmake.in
-+++ b/cmake/module-config.cmake.in
-@@ -4,8 +4,8 @@ if(NOT TARGET oatpp::@OATPP_MODULE_NAME@)
-     include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake")
- endif()
-
--set_and_check(@OATPP_MODULE_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/oatpp-@OATPP_MODULE_VERSION@/@OATPP_MODULE_NAME@/")
--set_and_check(@OATPP_MODULE_NAME@_LIBRARIES_DIRS "${PACKAGE_PREFIX_DIR}/@OATPP_MODULE_LIBDIR@/oatpp-@OATPP_MODULE_VERSION@/")
-+set_and_check(@OATPP_MODULE_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/oatpp/@OATPP_MODULE_NAME@/")
-+set_and_check(@OATPP_MODULE_NAME@_LIBRARIES_DIRS "${PACKAGE_PREFIX_DIR}/@OATPP_MODULE_LIBDIR@/oatpp/")
-
- set(@OATPP_MODULE_NAME@_LIBRARIES @OATPP_MODULE_LIBRARIES@)
--set(OATPP_BASE_DIR "${PACKAGE_PREFIX_DIR}/include/oatpp-@OATPP_MODULE_VERSION@/")
-+set(OATPP_BASE_DIR "${PACKAGE_PREFIX_DIR}/include/oatpp/")
-diff --git a/cmake/module-install.cmake b/cmake/module-install.cmake
-index 4506ea6..d0972ae 100644
---- a/cmake/module-install.cmake
-+++ b/cmake/module-install.cmake
-@@ -59,21 +59,21 @@ endforeach()
-
- install(TARGETS ${OATPP_THIS_MODULE_TARGETS}
-         EXPORT "${OATPP_MODULE_NAME}Targets"
--        ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
--        LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp-${OATPP_MODULE_VERSION}"
--        RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/oatpp-${OATPP_MODULE_VERSION}"
--        INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
-+        ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp"
-+        LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}/oatpp"
-+        RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}/oatpp"
-+        INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp/${OATPP_MODULE_NAME}"
- )
-
- install(DIRECTORY ${OATPP_DIRS_TO_INSTALL}
--        DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/${OATPP_MODULE_NAME}"
-+        DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp/${OATPP_MODULE_NAME}"
-         FILES_MATCHING PATTERN "*.hpp"
- )
-
- install(EXPORT "${OATPP_MODULE_NAME}Targets"
-         FILE "${OATPP_MODULE_NAME}Targets.cmake"
-         NAMESPACE oatpp::
--        DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
-+        DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}"
- )
-
- include(CMakePackageConfigHelpers)
-@@ -89,7 +89,7 @@ configure_package_config_file(
-             "${CMAKE_CURRENT_LIST_DIR}/module-config.cmake.in"
-             "${OATPP_MODULE_NAME}Config.cmake"
-         INSTALL_DESTINATION
--            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
-+            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}"
-         PATH_VARS
-             OATPP_MODULE_NAME
-             OATPP_MODULE_VERSION
-@@ -103,5 +103,5 @@ install(
-             "${CMAKE_CURRENT_BINARY_DIR}/${OATPP_MODULE_NAME}Config.cmake"
-             "${CMAKE_CURRENT_BINARY_DIR}/${OATPP_MODULE_NAME}ConfigVersion.cmake"
-         DESTINATION
--            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}-${OATPP_MODULE_VERSION}"
-+            "${CMAKE_INSTALL_LIBDIR}/cmake/${OATPP_MODULE_NAME}"
- )
-\ No newline at end of file
-diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index 92f8d56..fa7a2c8 100644
---- a/src/CMakeLists.txt
-+++ b/src/CMakeLists.txt
-@@ -38,11 +38,11 @@ if(OATPP_INSTALL)
-
-     ## install swagger-ui files
-     install(DIRECTORY ../res
--            DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/bin/${OATPP_MODULE_NAME}"
-+            DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/oatpp/bin/${OATPP_MODULE_NAME}"
-             FILES_MATCHING PATTERN "*.*"
-     )
-
-     ## set environment variable to point to swagger-ui res files
--    set(ENV{OATPP_SWAGGER_RES_PATH} "${CMAKE_INSTALL_INCLUDEDIR}/oatpp-${OATPP_MODULE_VERSION}/bin/${OATPP_MODULE_NAME}/res")
-+    set(ENV{OATPP_SWAGGER_RES_PATH} "${CMAKE_INSTALL_INCLUDEDIR}/oatpp/bin/${OATPP_MODULE_NAME}/res")
-
- endif()
\ No newline at end of file
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index d95e5d986..daa33d64c 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -263,14 +263,6 @@ RANGER_KMS_VERSION=2.1.0 # this probably should match the ranger version
 RANGER_KMS_NAME=ranger-$RANGER_KMS_VERSION-kms
 RANGER_KMS_SOURCE=$TP_SOURCE_DIR/$RANGER_KMS_NAME
 
-OATPP_VERSION=1.2.5
-OATPP_NAME=oatpp-$OATPP_VERSION
-OATPP_SOURCE=$TP_SOURCE_DIR/$OATPP_NAME
-
-OATPP_SWAGGER_VERSION=1.2.5
-OATPP_SWAGGER_NAME=oatpp-swagger-$OATPP_SWAGGER_VERSION
-OATPP_SWAGGER_SOURCE=$TP_SOURCE_DIR/$OATPP_SWAGGER_NAME
-
 JWT_CPP_VERSION=3bd600762a70faccc7ec1c2dacb999cba6c6ef5e
 JWT_CPP=jwt-cpp
 JWT_CPP_NAME=$JWT_CPP-$JWT_CPP_VERSION


(kudu) 02/02: [thirdparty] fix building breakpad with GCC13

Posted by mg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mgreber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit 5f977935d59b15f1b51622084ed748283f2db833
Author: Alexey Serbin <al...@apache.org>
AuthorDate: Sun Dec 29 11:26:31 2024 -0800

    [thirdparty] fix building breakpad with GCC13
    
    GCC13 (G++13) is the default system compiler on contemporary Linux OS
    flavors such as Ubuntu 24.04 LTS.  With this patch it's now possible
    to compile breakpad on Ubuntu 24.04 LTS.
    
    This patch picks up a few relevant patches from the breakpad's upstream
    repository [1].  Probably, it's time to refresh breakpad with the latest
    snapshot from [1] to bring in numerous fixes (especially for AArch64),
    but I think it's better doing so in a separate patch.
    
    [1] https://chromium.googlesource.com/breakpad/breakpad
    
    Change-Id: I95c1bb8a2361c94f40b8b76b7f57159946b15a15
    Reviewed-on: http://gerrit.cloudera.org:8080/22278
    Reviewed-by: Marton Greber <gr...@gmail.com>
    Tested-by: Marton Greber <gr...@gmail.com>
    Reviewed-by: Gabriella Lotz <lo...@gmail.com>
---
 thirdparty/download-thirdparty.sh                  |  8 +++--
 thirdparty/patches/breakpad-SIGSTKSZ-error.patch   | 30 +++++++++++++---
 thirdparty/patches/breakpad-fclose.patch           | 40 ++++++++++++++++++++++
 thirdparty/patches/breakpad-fread.patch            | 27 +++++++++++++++
 thirdparty/patches/breakpad-guid-creator.patch     | 23 +++++++++++++
 .../patches/breakpad-minidump-descriptor.patch     | 22 ++++++++++++
 6 files changed, 144 insertions(+), 6 deletions(-)

diff --git a/thirdparty/download-thirdparty.sh b/thirdparty/download-thirdparty.sh
index 29662c92b..e14f0d7bc 100755
--- a/thirdparty/download-thirdparty.sh
+++ b/thirdparty/download-thirdparty.sh
@@ -368,14 +368,18 @@ fetch_and_patch \
  $BOOST_PATCHLEVEL \
  "patch -p0 < $TP_DIR/patches/boost-bootstrap.patch"
 
-BREAKPAD_PATCHLEVEL=3
+BREAKPAD_PATCHLEVEL=7
 fetch_and_patch \
  breakpad-${BREAKPAD_VERSION}.tar.gz \
  $BREAKPAD_SOURCE \
  $BREAKPAD_PATCHLEVEL \
  "patch -p1 < $TP_DIR/patches/breakpad-add-basic-support-for-dwz-dwarf-extension.patch" \
  "patch -p1 < $TP_DIR/patches/breakpad-syscall-rsp-clobber-fix.patch" \
- "patch -p0 < $TP_DIR/patches/breakpad-SIGSTKSZ-error.patch"
+ "patch -p1 < $TP_DIR/patches/breakpad-SIGSTKSZ-error.patch" \
+ "patch -p1 < $TP_DIR/patches/breakpad-fclose.patch" \
+ "patch -p1 < $TP_DIR/patches/breakpad-fread.patch" \
+ "patch -p1 < $TP_DIR/patches/breakpad-minidump-descriptor.patch" \
+ "patch -p1 < $TP_DIR/patches/breakpad-guid-creator.patch"
 
 SPARSEHASH_PATCHLEVEL=3
 fetch_and_patch \
diff --git a/thirdparty/patches/breakpad-SIGSTKSZ-error.patch b/thirdparty/patches/breakpad-SIGSTKSZ-error.patch
index 0045a4dc6..cc6448dd4 100644
--- a/thirdparty/patches/breakpad-SIGSTKSZ-error.patch
+++ b/thirdparty/patches/breakpad-SIGSTKSZ-error.patch
@@ -1,11 +1,33 @@
---- src/client/linux/handler/exception_handler.cc	2022-04-01 18:31:33.463554421 +0200
-+++ src/client/linux/handler/exception_handler.cc	2022-04-01 18:32:20.503739341 +0200
-@@ -138,7 +138,7 @@
+commit 605c51ed96ad44b34c457bbca320e74e194c317e
+Author: David Faure <da...@kdab.com>
+Date:   Wed Dec 15 22:26:40 2021 +0100
+
+    Fix for non-constant SIGSTKSZ
+    
+    On glibc > 2.33, `SIGSTKSZ` might not be constant (in which case
+    it expands to a call to `sysconf` which returns a `long int`); see
+    https://sourceware.org/pipermail/libc-alpha/2020-October/118513.html
+    
+    Pass unsigned explicitly to std::max, to avoid relying on template
+    argument deduction. This works both with the old-style constant
+    `SIGSTKSZ` and the new configurable one.
+    
+    Initially based on https://chromium-review.googlesource.com/c/2776379
+    
+    Change-Id: I9fc95337f973e871b84735ce822b5e11ba73ea8c
+    Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3340721
+    Reviewed-by: Mark Mentovai <ma...@chromium.org>
+
+diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc
+index ca353c40..499be0a9 100644
+--- a/src/client/linux/handler/exception_handler.cc
++++ b/src/client/linux/handler/exception_handler.cc
+@@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
    // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
    // the alternative stack. Ensure that the size of the alternative stack is
    // large enough.
 -  static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
-+  static const unsigned kSigStackSize = std::max(16384u, (unsigned)SIGSTKSZ);
++  const unsigned kSigStackSize = std::max<unsigned>(16384, SIGSTKSZ);
  
    // Only set an alternative stack if there isn't already one, or if the current
    // one is too small.
diff --git a/thirdparty/patches/breakpad-fclose.patch b/thirdparty/patches/breakpad-fclose.patch
new file mode 100644
index 000000000..b1cb90af4
--- /dev/null
+++ b/thirdparty/patches/breakpad-fclose.patch
@@ -0,0 +1,40 @@
+commit 30c7f3cfc11cdbf93a12efbe9d46c66d9785879e
+Author: Lei Zhang <th...@chromium.org>
+Date:   Tue Sep 6 08:00:52 2022 -0700
+
+    Fix some Coverity defects.
+    
+    Fix a few issues Coverity detected in exploitability_linux.cc:
+    
+    CID 277681, 277682, 277683
+    
+    Change-Id: I8ad0581f075da7346b9be8100b3690555a358b16
+    Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3872234
+    Reviewed-by: Mike Frysinger <va...@chromium.org>
+
+diff --git a/src/processor/exploitability_linux.cc b/src/processor/exploitability_linux.cc
+index d4900bb0..c54cb046 100644
+--- a/src/processor/exploitability_linux.cc
++++ b/src/processor/exploitability_linux.cc
+@@ -518,18 +518,17 @@ bool ExploitabilityLinux::DisassembleBytes(const string& architecture,
+            raw_bytes_tmpfile);
+   FILE* objdump_fp = popen(cmd, "r");
+   if (!objdump_fp) {
+-    fclose(objdump_fp);
+     unlink(raw_bytes_tmpfile);
+     BPLOG(ERROR) << "Failed to call objdump.";
+     return false;
+   }
+-  if (fread(objdump_output_buffer, 1, buffer_len, objdump_fp) <= 0) {
+-    fclose(objdump_fp);
++  if (fread(objdump_output_buffer, 1, buffer_len, objdump_fp) != buffer_len) {
++    pclose(objdump_fp);
+     unlink(raw_bytes_tmpfile);
+     BPLOG(ERROR) << "Failed to read objdump output.";
+     return false;
+   }
+-  fclose(objdump_fp);
++  pclose(objdump_fp);
+   unlink(raw_bytes_tmpfile);
+   return true;
+ }
diff --git a/thirdparty/patches/breakpad-fread.patch b/thirdparty/patches/breakpad-fread.patch
new file mode 100644
index 000000000..ef90db077
--- /dev/null
+++ b/thirdparty/patches/breakpad-fread.patch
@@ -0,0 +1,27 @@
+commit 00f76018ccb4d27265d92a993f5443ae2a8d043c
+Author: Lei Zhang <th...@chromium.org>
+Date:   Wed Sep 7 09:38:41 2022 -0700
+
+    Fix fread() check in ExploitabilityLinux.
+    
+    This fread() call did not intend to always fill the buffer, so the
+    change in https://crrev.com/c/3872234 is incorrect. Revert that one line
+    change.
+    
+    Change-Id: I3fbe38fce11c24aa77b39dc229c7c5ed2a8d6960
+    Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3879289
+    Reviewed-by: Mike Frysinger <va...@chromium.org>
+
+diff --git a/src/processor/exploitability_linux.cc b/src/processor/exploitability_linux.cc
+index c54cb046..bc1b0b08 100644
+--- a/src/processor/exploitability_linux.cc
++++ b/src/processor/exploitability_linux.cc
+@@ -522,7 +522,7 @@ bool ExploitabilityLinux::DisassembleBytes(const string& architecture,
+     BPLOG(ERROR) << "Failed to call objdump.";
+     return false;
+   }
+-  if (fread(objdump_output_buffer, 1, buffer_len, objdump_fp) != buffer_len) {
++  if (fread(objdump_output_buffer, 1, buffer_len, objdump_fp) <= 0) {
+     pclose(objdump_fp);
+     unlink(raw_bytes_tmpfile);
+     BPLOG(ERROR) << "Failed to read objdump output.";
diff --git a/thirdparty/patches/breakpad-guid-creator.patch b/thirdparty/patches/breakpad-guid-creator.patch
new file mode 100644
index 000000000..95e4c53e5
--- /dev/null
+++ b/thirdparty/patches/breakpad-guid-creator.patch
@@ -0,0 +1,23 @@
+commit 4beee493f626ffd6d05d8d05e603df9ff3b8717b
+Author: Mike Frysinger <va...@chromium.org>
+Date:   Sat Aug 3 10:37:57 2019 -0400
+
+    guid_creater: include string.h for memcpy
+    
+    Bug: google-breakpad:779
+    Change-Id: If0cfb036ee924178033c89d4dc3e2ce75ddd46f2
+    Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1732887
+    Reviewed-by: Mark Mentovai <ma...@chromium.org>
+
+diff --git a/src/common/linux/guid_creator.cc b/src/common/linux/guid_creator.cc
+index f81c2911..03e3d781 100644
+--- a/src/common/linux/guid_creator.cc
++++ b/src/common/linux/guid_creator.cc
+@@ -39,6 +39,7 @@
+ #include <pthread.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <sys/stat.h>
+ #include <time.h>
+ #include <unistd.h>
diff --git a/thirdparty/patches/breakpad-minidump-descriptor.patch b/thirdparty/patches/breakpad-minidump-descriptor.patch
new file mode 100644
index 000000000..5bafdb824
--- /dev/null
+++ b/thirdparty/patches/breakpad-minidump-descriptor.patch
@@ -0,0 +1,22 @@
+commit 7ea7ded187b4d739239f3ab7082fcd5a2ccc1eaa
+Author: mingtaoxt xt <mi...@gmail.com>
+Date:   Wed Oct 19 19:36:13 2022 +0800
+
+    mainline version gcc-13 cannot use "uintptr_t" via "#include <string>"
+    
+    Change-Id: I0049bb92658b4226e32783ad4d8271787deef5f3
+    Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3964166
+    Reviewed-by: Mike Frysinger <va...@chromium.org>
+
+diff --git a/src/client/linux/handler/minidump_descriptor.h b/src/client/linux/handler/minidump_descriptor.h
+index 4349b88f..d822c9d9 100644
+--- a/src/client/linux/handler/minidump_descriptor.h
++++ b/src/client/linux/handler/minidump_descriptor.h
+@@ -32,6 +32,7 @@
+ #include <assert.h>
+ #include <sys/types.h>
+ 
++#include <cstdint>
+ #include <string>
+ 
+ #include "client/linux/handler/microdump_extra_info.h"