Created attachment 252772 [details] unbreak i386 build - recognize i386 architecture in upstream GNUmakefile - use LLD_UNSAFE with OPENAL option - change WWW to homepage - fix typo in pkg-descr
This work for me: - ifneq ($(filter i686-%,$(machine_str)),) + ifneq ($(filter i386-% i686-%,$(machine_str)),) Probably for upstream best is: + ifneq ($(filter i%86-%,$(machine_str)),) Or + ifneq ($(filter i386-% i486-% i586-% i686-%,$(machine_str)),) Can you suggest this for upstream?
I have another idea: the original GNUmakefile looks for the i686- prefix only to set the "arch" variable to it. It's not used for anything else. We could leave the i686-% unaltered in place and just add "MAKE_ARGS= arch=${ARCH}" to our Makefile. This works. What do you think? Of course I can suggest your improvement to upstream.
Sorry, forget my last comment. The GNUmakefile does specific stuff with explicit values acquired from this search. It's probably best to do it as you suggested. Will provide patch soon.
$(filter i%86-%,$(machine_str)) doesn't work - filter takes only one wildcard.
(In reply to Stefan Schlosser from comment #3) Pick one from: ifneq ($(filter i386-% i686-%,$(machine_str)),) ifneq ($(filter i386-% i486-% i586-% i686-%,$(machine_str)),)
Created attachment 252780 [details] unbreak i386 build Applied your first suggestion. Will propose it upstream soon and remove our patch again when we update the port the next time.
Created attachment 252781 [details] unbreak i386 build Upstream PR is submitted. Updated patch accordingly.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5e2e6a2f8e5d14fd4322863cbae3a779c83c3278 commit 5e2e6a2f8e5d14fd4322863cbae3a779c83c3278 Author: Stefan Schlosser <bsdcode@disroot.org> AuthorDate: 2024-08-15 17:31:25 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2024-08-15 17:35:42 +0000 emulators/ares: unbreak i386 build - recognize i386 architecture in upstream GNUmakefile (upstream pool request: https://github.com/ares-emulator/ares/pull/1600) - use LLD_UNSAFE with OPENAL option - change WWW to homepage - fix typo in pkg-descr PR: 280826 emulators/ares/Makefile | 9 ++++++++- emulators/ares/files/patch-nall_GNUmakefile | 9 +++++++++ emulators/ares/pkg-descr | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-)
Thanks.