Bug 275810

Summary: wazuh-manager fails port test
Product: Ports & Packages Reporter: Joel Rodriguez <joel>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Not A Bug    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (acm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Joel Rodriguez 2023-12-17 20:18:53 UTC
After an unproductive back and forth with my last PR on this port I ran "port test". Needless to say, it failed.

root@tahoestores:/usr/ports/security/wazuh-manager # port test /usr/ports/security/wazuh-manager
===> Using ports tree /usr/ports
===> Validating port with portlint
FATAL: /usr/ports/security/wazuh-manager/pkg-plist: [348]: installing pkg-config files into lib/pkgconfig.  All pkg-config files m\
ust be installed into libdata/pkgconfig for them to be found by pkg-config.
FATAL: /usr/ports/security/wazuh-manager/pkg-plist: [349]: installing pkg-config files into lib/pkgconfig.  All pkg-config files m\
ust be installed into libdata/pkgconfig for them to be found by pkg-config.
FATAL: /usr/ports/security/wazuh-manager/pkg-plist: [350]: installing pkg-config files into lib/pkgconfig.  All pkg-config files m\
ust be installed into libdata/pkgconfig for them to be found by pkg-config.
FATAL: /usr/ports/security/wazuh-manager/pkg-plist: [351]: installing pkg-config files into lib/pkgconfig.  All pkg-config files m\
ust be installed into libdata/pkgconfig for them to be found by pkg-config.
FATAL: /usr/ports/security/wazuh-manager/pkg-plist: [26311]: Unpacked man file python3.1 listed.  Must be gzipped.
FATAL: /usr/ports/security/wazuh-manager/pkg-plist: [26312]: Unpacked man file %%PYTHON_VERSION%%.1 listed.  Must be gzipped.
WARN: /usr/ports/security/wazuh-manager/pkg-plist: [26370]: installing shared libraries, please define USE_LDCONFIG as appropriate
WARN: Makefile: [159]: use a tab (not space) after a variable name
WARN: Makefile: [160]: IGNORE messages should begin with a lowercase letter and end without a period.
WARN: Makefile: [27]: the arguments to ONLY_FOR_ARCHS are not sorted.  Please consider sorting them.
WARN: Makefile: [20]: possible direct use of command "autoconf" found. Use ${AUTOCONF} instead and set USES=autoreconf and GNU_CON\
FIGURE=yes
WARN: Makefile: possible use of absolute pathname "/logs/wazuh".
WARN: Makefile: possible use of absolute pathname "/etc/decoders".
FATAL: Makefile: DISTVERSIONPREFIX appears out-of-order.
FATAL: Makefile: order must be PORTNAME/PORTVERSION/DISTVERSIONPREFIX/DISTVERSION/DISTVERSIONSUFFIX/PORTREVISION/PORTEPOCH/CATEGOR\
IES/MASTER_SITES/MASTER_SITE_SUBDIR/PROJECTHOST/PKGNAMEPREFIX/PKGNAMESUFFIX/DISTNAME/EXTRACT_SUFX/DISTFILES(_\w+)?/DIST_SUBDIR/EXT\
RACT_ONLY.
WARN: Makefile: "IGNORE_FreeBSD_12_aarch64" has to appear earlier.
WARN: Makefile: "ONLY_FOR_ARCHS" has to appear earlier.
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/etc/locatime".
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/var/ossec/etc/ossec...".
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/var/ossec/etc/clien...".
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/var/ossec/etc/rules...".
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/var/log/userlog".
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/var/ossec/etc/ossec...".
WARN: /usr/ports/security/wazuh-manager/work/pkg-message: possible use of absolute pathname "/etc/rc.conf".
WARN: /usr/ports/security/wazuh-manager/files/patch-freebsd-12: patch was not generated using ``make makepatch''.  It is recommend\
ed to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-issue40422_issue40423: patch was not generated using ``make makepatch''.  It i\
s recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-src-data_provider-src_sysInfoFreeBSD.cpp: patch was not generated using ``make\
 makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-src-shared_modules-utils_stringHelper.h: patch was not generated using ``make \
makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-src-shared_modules-utils_timeHelper.h: patch was not generated using ``make ma\
kepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-src_external_cpython_configure: patch was not generated using ``make makepatch\
''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-src_external_cpython_Modules__socketmodule.c: patch was not generated using ``\
make makepatch''.  It is recommended to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch forma\
t.
WARN: /usr/ports/security/wazuh-manager/files/patch-src_Makefile: patch was not generated using ``make makepatch''.  It is recomme\
nded to use ``make makepatch'' when you need to [re-]generate a patch to ensure proper patch format.
WARN: /usr/ports/security/wazuh-manager/files/patch-src_external_cpython_configure: src/external/cpython/configure patched multipl\
e times
8 fatal errors and 25 warnings found.
Error validating port
Comment 1 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-12-17 20:44:24 UTC
Hello Joel, port test just helps us to keep on mind some advices about ports framework entries, etc. In this case you can see some false positives (FATAL) because security/wazuh* ports include embedded libs and break some standars things by design. If you think it is a big issue feel free to send a patch file to review if it can be applied.

I will have on mind avoid some WARN like regerenrate patch file, VARIABLE order, etc on next version of wazuh. I'll close this PR because it is not a bug and it not avoid wazuh packages can be generated