Created attachment 241196 [details] patch diff to disable arm optimization arm builds on several OS versions are failing. Seems like there is some missing special arm optimization code in the Perforce distribution and that code special cases to turn it off. Add OS_FREEBSD to disable arm optimization. Add the attached patch file to the files directory of both ports (devel/p4 and devel/p4api) to fix the arm builds. FYI: I'm the maintainer.
Created attachment 241345 [details] p4.diff - disable arm optimization - combine patch and distinfo for two ports
New patch for both ports removes devel/p4api files/* and distinfo
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c3c2129c94d55bb857ff2bbb07a81779efc70fd4 commit c3c2129c94d55bb857ff2bbb07a81779efc70fd4 Author: Craig Leres <leres@FreeBSD.org> AuthorDate: 2023-04-09 00:54:52 +0000 Commit: Craig Leres <leres@FreeBSD.org> CommitDate: 2023-04-09 00:54:52 +0000 devel/{p4,p4api}: Unbreak build on arm Also change devel/p4api to use devel/p4 files/patches and distinfo. PR: 270531 Approved by: antonfb@hesiod.org (maintainer) devel/p4/files/patch-Jamrules | 6 +++--- devel/p4/files/patch-zlib_deflate.c (new) | 11 +++++++++++ devel/p4api/Makefile | 4 ++++ devel/p4api/distinfo (gone) | 3 --- devel/p4api/files/patch-Jamrules (gone) | 28 ---------------------------- 5 files changed, 18 insertions(+), 34 deletions(-)
Thanks for the patches!
You should check if you could simply unbundle the bundled zlib in which the error occurs. It's recommended practice anyway.
(In reply to Robert Clausecker from comment #5) I expect a new release in May and I'm preparing to make that unbundle stuff.