From 0399c9873d0d577fbc9cfdc6f2379368ae929bbc Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 22 Oct 2026 06:20:48 +0000 Subject: automatic import of ros-humble-openvdb-vendor --- openvdb-vendor.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'openvdb-vendor.spec') diff --git a/openvdb-vendor.spec b/openvdb-vendor.spec index 3aae99e..69ae539 100644 --- a/openvdb-vendor.spec +++ b/openvdb-vendor.spec @@ -6,7 +6,7 @@ Name: ros-%{ros_distro}-%{RosPkgName} Version: 2.3.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Wrapper around OpenVDB, if not found on the system, will compile from source License: LGPL v2.1 URL: https://github.com/SteveMacenski/spatio_temporal_voxel_layer/tree/humble @@ -39,6 +39,7 @@ Wrapper around OpenVDB, if not found on the system, will compile from source. Vendors OpenVDB %{openvdb_version} built directly from source tarball, bypassing ament_cmake_vendor_package (which requires python3-vcstool unavailable in the build environment). +Static library disabled to reduce compile time; only shared lib is built. %prep %autosetup -n %{RosPkgName}-%{src_version} -a1 @@ -46,18 +47,20 @@ unavailable in the build environment). %build cd openvdb-%{openvdb_version} mkdir -p build && cd build +export CXXFLAGS="-O1 -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection" %cmake3 \ -DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}/opt/openvdb_vendor" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -UINCLUDE_INSTALL_DIR -ULIB_INSTALL_DIR -USYSCONF_INSTALL_DIR -USHARE_INSTALL_PREFIX -ULIB_SUFFIX \ -DOPENVDB_BUILD_BINARIES=OFF \ + -DOPENVDB_CORE_STATIC=OFF \ -DOPENVDB_BUILD_PYTHON_MODULE=OFF \ -DOPENVDB_BUILD_UNITTESTS=OFF \ -DOPENVDB_BUILD_DOCS=OFF \ -DCONCURRENT_MALLOC=Tbbmalloc \ -DBUILD_TESTING=OFF -DTESTING=OFF -DCMAKE_SUPPRESS_REGENERATION=ON \ .. -make %{?_smp_mflags} +make -j2 %install cd openvdb-%{openvdb_version}/build @@ -88,6 +91,12 @@ touch ${ROS_PREFIX}/share/ament_index/resource_index/packages/%{ros_pkg_name} /opt/ros/%{ros_distro} %changelog +* Thu Oct 22 2026 ai-importer - 2.3.4-3 +- Disable static library (OPENVDB_CORE_STATIC=OFF) to halve compilation time +- Reduce CXXFLAGS to -O1 without -g to speed up template-heavy compilation +- Reduce parallelism to make -j2 to avoid OOM on 2GB builder VM +- Build was canceled at 0% after 65min due to extremely slow OpenVDB compilation + * Thu Oct 22 2026 ai-importer - 2.3.4-2 - Rebuild without ament-cmake-vendor-package (python3-vcstool unavailable) - Vendor OpenVDB 10.0.1 directly from Source1 tarball -- cgit v1.2.3