[Bug 288597] security/wazuh-manager: need to disregard the .so files from databases/arrow

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Aug 2025 20:39:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288597

            Bug ID: 288597
           Summary: security/wazuh-manager: need to disregard the .so
                    files from databases/arrow
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
                CC: acm@FreeBSD.org, yuri@freebsd.org
                CC: acm@FreeBSD.org, yuri@freebsd.org

Created attachment 262627
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=262627&action=edit
Patch for security/wazuh-manager/Makefile adding a suitable value for
NO_SHLIB_REQUIRES_GLOB

While building security/wazuh-server using Synth on stable/14, the build comes
to a halt:

--------------------------------------------------------------------------------
--  Phase: run-depends
--------------------------------------------------------------------------------
===>   wazuh-server-4.12.0_1 depends on executable: filebeat - not found
===>   Installing existing package /packages/All/beats7-7.17.11_15.pkg
Installing beats7-7.17.11_15...
Extracting beats7-7.17.11_15: .......... done

…

Installing wazuh-manager-4.12.0_3...
`-- Installing arrow-20.0.0...
|   `-- Installing abseil-20250127.1...
|   `-- Extracting abseil-20250127.1: .......... done
|   `-- Installing aws-c-auth-0.9.0...
|   | `-- Installing aws-c-cal-0.9.2...
|   |   `-- Installing aws-c-common-0.12.4,1...
|   |   `-- Extracting aws-c-common-0.12.4,1: .......... done
|   | `-- Extracting aws-c-cal-0.9.2: .......... done
|   | `-- Installing aws-c-compression-0.3.1...
|   | `-- Extracting aws-c-compression-0.3.1: .......... done
|   | `-- Installing aws-c-http-0.10.4...
|   |   `-- Installing aws-c-io-0.21.2...
|   |   | `-- Installing s2n-tls-1.5.23,1...
|   |   | `-- Extracting s2n-tls-1.5.23,1: .......... done
|   |   `-- Extracting aws-c-io-0.21.2: .......... done
|   | `-- Extracting aws-c-http-0.10.4: .......... done
|   | `-- Installing aws-c-sdkutils-0.2.4...
|   | `-- Extracting aws-c-sdkutils-0.2.4: .......... done
|   `-- Extracting aws-c-auth-0.9.0: .......... done
|   `-- Installing aws-c-event-stream-0.5.5,1...
|   | `-- Installing aws-checksums-0.2.7,1...
|   | `-- Extracting aws-checksums-0.2.7,1: .......... done
|   `-- Extracting aws-c-event-stream-0.5.5,1: .......... done
|   `-- Installing aws-c-mqtt-0.13.3...
|   `-- Extracting aws-c-mqtt-0.13.3: .......... done
|   `-- Installing aws-c-s3-0.8.6...
|   `-- Extracting aws-c-s3-0.8.6: .......... done
|   `-- Installing aws-crt-cpp-0.33.1...
|   `-- Extracting aws-crt-cpp-0.33.1: .......... done
|   `-- Installing aws-sdk-cpp-1.11.603...
|   | `-- Installing curl-8.15.0...
|   |   `-- Installing libnghttp2-1.66.0...
|   |   `-- Extracting libnghttp2-1.66.0: .......... done
|   | `-- Extracting curl-8.15.0: .......... done
|   | `-- Installing pulseaudio-17.0_3...
|   |   `-- Installing avahi-app-0.8_6...
|   |   | `-- Installing dbus-1.16.2_3,1...
|   |   |   `-- Installing libxml2-2.14.5...
|   |   |   | `-- Installing icu-76.1,1...
|   |   |   | `-- Extracting icu-76.1,1: .......... done
|   |   |   `-- Extracting libxml2-2.14.5: .......... done
===> Creating groups
Creating group 'messagebus' with gid '556'
===> Creating users
Creating user 'messagebus' with uid '556'
|   |   | `-- Extracting dbus-1.16.2_3,1: ......... done
|   |   | `-- Installing dbus-glib-0.114...
|   |   | `-- Extracting dbus-glib-0.114: .......... done
|   |   | `-- Installing gdbm-1.25...
|   |   | `-- Extracting gdbm-1.25: .......... done
|   |   | `-- Installing gnome_subr-1.0...
|   |   | `-- Extracting gnome_subr-1.0: .... done
|   |   | `-- Installing libdaemon-0.14_1...
|   |   | `-- Extracting libdaemon-0.14_1: .......... done
|   |   | `-- Installing libevent-2.1.12...
|   |   | `-- Extracting libevent-2.1.12: .......... done
===> Creating groups
Creating group 'avahi' with gid '558'
===> Creating users
Creating user 'avahi' with uid '558'
|   |   `-- Extracting avahi-app-0.8_6: .......... done
|   |   `-- Installing consolekit2-1.2.6_5...
|   |   | `-- Installing libdrm-2.4.123,1...
|   |   |   `-- Installing libpciaccess-0.18.1_1...
|   |   |   | `-- Installing hwdata-0.397,1...
|   |   |   | `-- Extracting hwdata-0.397,1: .......... done
|   |   |   `-- Extracting libpciaccess-0.18.1_1: ........ done
|   |   | `-- Extracting libdrm-2.4.123,1: .......... done
|   |   | `-- Installing libevdev-1.13.2...
|   |   | `-- Extracting libevdev-1.13.2: .......... done
|   |   | `-- Installing libudev-devd-0.6.0...
|   |   | `-- Extracting libudev-devd-0.6.0: ........ done
|   |   | `-- Installing libxslt-1.1.43_1...
|   |   |   `-- Installing libgcrypt-1.11.1...
|   |   |   | `-- Installing libgpg-error-1.55...
|   |   |   | `-- Extracting libgpg-error-1.55: .......... done
|   |   |   `-- Extracting libgcrypt-1.11.1: .......... done
|   |   | `-- Extracting libxslt-1.1.43_1: .......... done
|   |   | `-- Installing polkit-125_1...
|   |   |   `-- Installing duktape-lib-2.7.0...
|   |   |   `-- Extracting duktape-lib-2.7.0: ......... done
===> Creating groups
Creating group 'polkitd' with gid '565'
===> Creating users
Creating user 'polkitd' with uid '565'
|   |   | `-- Extracting polkit-125_1: ......... done
|   |   `-- Extracting consolekit2-1.2.6_5: .......... done
|   |   `-- Installing fftw3-3.3.10_5...
|   |   `-- Extracting fftw3-3.3.10_5: .......... done
|   |   `-- Installing fftw3-float-3.3.10_5...
|   |   `-- Extracting fftw3-float-3.3.10_5: .......... done
|   |   `-- Installing libltdl-2.5.4...
|   |   `-- Extracting libltdl-2.5.4: .......... done
|   |   `-- Installing libsndfile-1.2.2_2...
|   |   | `-- Installing flac-1.5.0,1...
|   |   |   `-- Installing libogg-1.3.6,4...
|   |   |   `-- Extracting libogg-1.3.6,4: .......... done
|   |   | `-- Extracting flac-1.5.0,1: .......... done
|   |   | `-- Installing lame-3.100_5...
|   |   | `-- Extracting lame-3.100_5: .......... done
|   |   | `-- Installing libvorbis-1.3.7_2,3...
|   |   | `-- Extracting libvorbis-1.3.7_2,3: .......... done
|   |   | `-- Installing mpg123-1.33.1...
|   |   | `-- Extracting mpg123-1.33.1: .......... done
|   |   | `-- Installing opus-1.5.2...
|   |   | `-- Extracting opus-1.5.2: .......... done
|   |   `-- Extracting libsndfile-1.2.2_2: .......... done
|   |   `-- Installing libsoxr-0.1.3_3...
|   |   `-- Extracting libsoxr-0.1.3_3: .......... done
|   |   `-- Installing orc-0.4.41_1...
|   |   `-- Extracting orc-0.4.41_1: .......... done
|   |   `-- Installing speexdsp-1.2.1...
|   |   `-- Extracting speexdsp-1.2.1: .......... done
|   |   `-- Installing webrtc-audio-processing-1.3_1...
|   |   `-- Extracting webrtc-audio-processing-1.3_1: .......... done
===> Creating groups
Creating group 'pulse' with gid '563'
Creating group 'pulse-access' with gid '564'
Creating group 'pulse-rt' with gid '557'
===> Creating users
Creating user 'pulse' with uid '563'
|   | `-- Extracting pulseaudio-17.0_3: .......... done
|   `-- Extracting aws-sdk-cpp-1.11.603: .......... done
|   `-- Installing boost-libs-1.88.0_2...
|   `-- Extracting boost-libs-1.88.0_2: .......... done
|   `-- Installing c-ares-1.34.5...
|   `-- Extracting c-ares-1.34.5: .......... done
|   `-- Installing gflags-2.2.2_2...
|   `-- Extracting gflags-2.2.2_2: .......... done
|   `-- Installing googletest-1.16.0...
|   `-- Extracting googletest-1.16.0: .......... done
|   `-- Installing grpc-1.73.1,2...
|   | `-- Installing benchmark-1.9.2,1...
|   | `-- Extracting benchmark-1.9.2,1: .......... done
|   | `-- Installing opentelemetry-cpp-1.22.0...
|   | `-- Extracting opentelemetry-cpp-1.22.0: .......... done
|   | `-- Installing protobuf-29.5,1...
|   |   `-- Installing jsoncpp-1.9.6_1...
|   |   `-- Extracting jsoncpp-1.9.6_1: .......... done
|   | `-- Extracting protobuf-29.5,1: .......... done
|   | `-- Installing re2-20250722...
|   | `-- Extracting re2-20250722: .......... done
|   `-- Extracting grpc-1.73.1,2: .......... done
|   `-- Installing llvm17-17.0.6_8...
|   | `-- Installing libedit-3.1.20250104,1...
|   | `-- Extracting libedit-3.1.20250104,1: .......... done
|   | `-- Installing lua53-5.3.6_1...
|   | `-- Extracting lua53-5.3.6_1: .......... done
|   | `-- Installing perl5-5.40.2_2...
|   | `-- Extracting perl5-5.40.2_2: .......... done
|   `-- Extracting llvm17-17.0.6_8: .......... done
|   `-- Installing thrift-cpp-0.21.0_1,1...
|   | `-- Installing thrift-0.21.0,1...
|   | `-- Extracting thrift-0.21.0,1: ....... done
|   `-- Extracting thrift-cpp-0.21.0_1,1: .......... done
|   `-- Installing utf8proc-2.10.0...
|   `-- Extracting utf8proc-2.10.0: .......... done
`-- Extracting arrow-20.0.0: .......... done
`-- Installing libepoll-shim-0.0.20240608...
`-- Extracting libepoll-shim-0.0.20240608: .......... done
`-- Installing openblas-0.3.30,2...
|   `-- Installing gcc13-13.3.0_3...
|   | `-- Installing binutils-2.44,1...
|   | `-- Extracting binutils-2.44,1: .......... done
|   | `-- Installing gmp-6.3.0...
|   | `-- Extracting gmp-6.3.0: .......... done
|   | `-- Installing isl-0.27...
|   | `-- Extracting isl-0.27: .......... done
|   | `-- Installing mpc-1.3.1_1...
|   |   `-- Installing mpfr-4.2.2,1...
|   |   `-- Extracting mpfr-4.2.2,1: .......... done
|   | `-- Extracting mpc-1.3.1_1: ......... done
|   `-- Extracting gcc13-13.3.0_3: .......... done
`-- Extracting openblas-0.3.30,2: .......... done
`-- Installing sqlite3-3.50.2_1,1...
`-- Extracting sqlite3-3.50.2_1,1: .......... done
pkg-static: Missing shlib dependency: libarrow.so.1900

Failed to install the following 1 package(s):
/packages/All/wazuh-manager-4.12.0_3.pkg

…

This problem began after databases/arrow was updated to version 20.0.0.
I solved this problem by adding this line to security/wazuh-manager/Makefile:

NO_SHLIB_REQUIRES_GLOB= libarrow.so.* libarrow_acero.so.* libarrow_dataset.so.*
libarrow_flight.so.* libarrow_testing.so.* libgandiva.so.* libparquet.so.*

Placing this line in security/wazuh-server/Makefile does not fix anything.

I hope there might a better solution.

-- 
You are receiving this mail because:
You are the assignee for the bug.