[Bug 283034] devel/openocd: Fix aarch64 build

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 29 Nov 2024 04:50:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283034

            Bug ID: 283034
           Summary: devel/openocd: Fix aarch64 build
           Product: Ports & Packages
           Version: Latest
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbo@FreeBSD.org
          Reporter: parakleta@darkreality.org
             Flags: maintainer-feedback?(jbo@FreeBSD.org)
          Assignee: jbo@FreeBSD.org

Created attachment 255519
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255519&action=edit
Patch to fix building on AARCH64

There is a clash between a name in a header file within the port and a name
within the system header files that has prevented this from building since Sept
2021
(https://cgit.freebsd.org/ports/commit/devel/openocd/Makefile?id=55d27db3cff9f49e743ce4bf9f3fbb37b06dc184)

A comment was updated to state that the offending code has been removed in the
development branch and so a patch is not necessary as it will be resolved when
the next release is cut
(https://cgit.freebsd.org/ports/commit/devel/openocd/Makefile?id=70c2b83232415954356803e286ea2263f5e98c8d)

Given that this problem has existed for more than 3 years now, I think maybe a
patch could be justified.  Luckily, I have provided one.

This particular fix is relevant to me because I have started using FreeBSD
under emulation on the new M series Mac computers, and so to save translation I
am now using the ARM64 version of FreeBSD instead of the AMD64 version.

-- 
You are receiving this mail because:
You are the assignee for the bug.