[Bug 265318] devel/ctypes.sh: fix build on FreeBSD 13

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Jul 2022 17:52:20 UTC

            Bug ID: 265318
           Summary: devel/ctypes.sh: fix build on FreeBSD 13
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills@FreeBSD.org
          Reporter: fuz@fuz.su
                CC: swills@FreeBSD.org
             Flags: maintainer-feedback?(swills@FreeBSD.org)
          Assignee: swills@FreeBSD.org
 Attachment #235365 maintainer-approval?(swills@FreeBSD.org)
                CC: swills@FreeBSD.org

Created attachment 235365
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=235365&action=edit
devel/ctypes.sh: fix build on FreeBSD 13

FreeBSD 13 has the mempcpy function which was absent before.
Patch the port to add a configure test for this function.
Work around the port shipping an extra file named config.

While we are at it, also fix wrong getopt usage for platforms
where char is an unsigned type.

Tested with Poudriere on armv7 arm64 FreeBSD 13, arm64 FreeBSD 12.

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