| Summary: | wazuh-agent 4.3.9 fails to compile RELENG_13 | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | mike |
| Component: | Individual Port(s) | Assignee: | Jose Alonso Cardenas Marquez <acm> |
| Status: | Closed FIXED | ||
| Severity: | Affects Many People | CC: | franco |
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(acm) |
| Version: | Latest | ||
| Hardware: | amd64 | ||
| OS: | Any | ||
|
Description
mike
2022-11-10 19:12:45 UTC
(In reply to mike from comment #0) It is strange because my poudriere and freebsd pkg cluster were generating wazuh packages without problems but now I see wazuh-agent-4.3.9 package is not available right now Anyway try the following patch file and tell me if it works for you https://people.freebsd.org/~acm/ports/wazuh-agent.diff Thanks very much, that looks good now!!
0{cage}# rm -R wazuh-agent
0{cage}# portsnap extract security/wazuh-agent
/usr/ports/security/wazuh-agent/
0{cage}# cd /usr/ports/security/wazuh-agent/
0{cage}# fetch https://people.freebsd.org/~acm/ports/wazuh-agent.diff
wazuh-agent.diff 2704 B 32 MBps 00s
0{cage}# make extract
===> License GPLv2 accepted by the user
===> wazuh-agent-4.3.9 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by wazuh-agent-4.3.9 for building
===> Extracting for wazuh-agent-4.3.9
=> SHA256 Checksum OK for wazuh-4.3.9/cJSON.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/curl.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/libdb.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/libffi.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/libyaml.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/openssl.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/procps.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/sqlite.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/zlib.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/audit-userspace.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/msgpack.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/bzip2.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/nlohmann.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/googletest.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/libpcre2.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/libplist.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/libarchive.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/popt.tar.gz.
=> SHA256 Checksum OK for wazuh-4.3.9/wazuh-wazuh-v4.3.9_GH0.tar.gz.
0{cage}# patch -p3 < wazuh-agent.diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/security/wazuh-agent/Makefile b/security/wazuh-agent/Makefile
|index f1b29f55e56f..d4b45eaa6a64 100644
|--- a/security/wazuh-agent/Makefile
|+++ b/security/wazuh-agent/Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 16.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt b/security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt
|new file mode 100644
|index 000000000000..f042a27f6a88
|--- /dev/null
|+++ b/security/wazuh-agent/files/patch-src-data_provider_CMakeLists.txt
--------------------------
(Creating file files/patch-src-data_provider_CMakeLists.txt...)
Patching file files/patch-src-data_provider_CMakeLists.txt using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt b/security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt
|new file mode 100644
|index 000000000000..e26d226d0907
|--- /dev/null
|+++ b/security/wazuh-agent/files/patch-src-shared_modules-dbsync_CMakeLists.txt
--------------------------
(Creating file files/patch-src-shared_modules-dbsync_CMakeLists.txt...)
Patching file files/patch-src-shared_modules-dbsync_CMakeLists.txt using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt b/security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt
|new file mode 100644
|index 000000000000..aac9d1e9aaf0
|--- /dev/null
|+++ b/security/wazuh-agent/files/patch-src-shared_modules-rsync_CMakeLists.txt
--------------------------
(Creating file files/patch-src-shared_modules-rsync_CMakeLists.txt...)
Patching file files/patch-src-shared_modules-rsync_CMakeLists.txt using Plan A...
Empty context always matches.
Hunk #1 succeeded at 1.
done
0{cage}# make
...
install -m 555 /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/gen_ossec.sh /usr/ports/security/wazuh-agent/work/stage/var/ossec/packages_files/agent_installation_scripts/
install -m 555 /usr/ports/security/wazuh-agent/work/wazuh-4.3.9/add_localfiles.sh /usr/ports/security/wazuh-agent/work/stage/var/ossec/packages_files/agent_installation_scripts/
====> Compressing man pages (compress-man)
===> Staging rc.d startup script(s)
0{cage}#
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=003cac755cca2a771b230fcfa777572d0a7354dc commit 003cac755cca2a771b230fcfa777572d0a7354dc Author: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> AuthorDate: 2022-11-16 19:04:54 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2022-11-16 19:06:55 +0000 security/wazuh-agent: Fix compile issues - Add missing dependency PR: 267700 Reported by: mike _at_ sentex.net security/wazuh-agent/Makefile | 2 ++ .../files/patch-src-data_provider_CMakeLists.txt (new) | 11 +++++++++++ .../patch-src-shared_modules-dbsync_CMakeLists.txt (new) | 11 +++++++++++ .../files/patch-src-shared_modules-rsync_CMakeLists.txt (new) | 11 +++++++++++ 4 files changed, 35 insertions(+) security/wazuh-agent should compile without problems right now. Thanks for your PR Take a look at https://cgit.FreeBSD.org/ports/commit/?id=003cac755cca2a771b230fcfa777572d0a7354dc |