Bug 258983

Summary: security/wazuh-agent working on i386
Product: Ports & Packages Reporter: mike
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: eduardo, fuz, m.muenz, m.muenz
Priority: --- Flags: bugzilla: maintainer-feedback? (m.muenz)
Version: Latest   
Hardware: i386   
OS: Any   
Attachments:
Description Flags
3 diffs to get things to compile and run on i386
none
Makefile 4.2.3 none

Description mike 2021-10-07 12:04:50 UTC
Created attachment 228498 [details]
3 diffs to get things to compile and run on i386

Hi,
I found that if you change the compile option of the wazuh-agent to non shared, it  builds and runs on i386.  Not sure if this can be incorporated into the port or not. Diffs attached that I used to get it to work on RELENG_13, i386.
Comment 1 Michael 2021-10-12 14:41:19 UTC
Hi,

Sorry for the late reply! Did you test if this patch compiles also with poudriere? I'm currently struggeling with update to 4.2 which breaks poudriere build completely and I'm not sure if enabling i386 will help to make things better.

Best,
Michael
Comment 2 mike 2021-10-12 14:47:41 UTC
Hi, I didnt test with poudriere. So far, I just manually tested building the package from the ports tree and then added that package to my nanobsd image and its been working so far
Comment 3 Michael 2021-10-12 15:34:17 UTC
Sorry, I can't accept this patch as it seems Wazuh guys removed this parameter in 4.2.X Makefile:

https://github.com/wazuh/wazuh/blob/master/src/Makefile#L70
Comment 4 mike 2021-10-12 17:52:29 UTC
(In reply to Michael from comment #3)
Hmmm, yes I see what you mean. There is a large version upgrade since then. I will see if I can generate a new set of diffs.  What branch (if any) are you working on from their git repo ?
Comment 5 Michael 2021-10-13 07:59:35 UTC
Created attachment 228652 [details]
Makefile 4.2.3

Enclosed the patchset I'm using which compiles fine pkg but breaks poudriere.
Comment 6 mike 2021-10-25 13:13:11 UTC
The Wazuh folks pointed out that to build on i386, this works on a clean checkout of the 4.2.4 source 

gmake TARGET=agent OPENSSL_FLAGS='enable-weak-ssl-ciphers no-shared no-asm'
Comment 7 mike 2021-10-25 14:13:43 UTC
For the poudriere issue, what if you get rid of -j in your make script. ie
@cd ${WRKSRC}/src && ${GMAKE} deps && ${GMAKE} TARGET=agent
Comment 8 Robert Clausecker freebsd_committer freebsd_triage 2023-04-27 21:39:29 UTC
Assign to new maintainer.

Is this issue still current?
Comment 9 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-04-27 21:48:47 UTC
(In reply to Robert Clausecker from comment #8)
I don't think so. Current version of wazuh-agent compiles without problems on i386. I close it