Re: FreeBSD Port: wine-6.0.1_3,1 error build (13-stable)

From: Gerald Pfeifer <gerald_at_pfeifer.com>
Date: Thu, 06 Jan 2022 12:38:45 UTC
On Sat, 23 Oct 2021, Gerald Pfeifer wrote:
> I fixed this upstream two months ago with
> 
> commit 59da79021a6e441e3b21b933c744aba922208ec1
> Author: Gerald Pfeifer <gerald@pfeifer.com>
> Date:   Tue Aug 10 22:36:27 2021 +0200
> 
>     ntdll: Only use sysinfo function when present.
>     
>     On some systems <sys/sysinfo.h> may be present while the sysinfo
>     function may not, or at least not as part of standard libraries,
>     so check whether the function is actually available before using
>     it.
>     
>     This fixes builds on FreeBSD with the devel/libsysinfo present.
>     
>     Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
>     Signed-off-by: Alexandre Julliard <julliard@winehq.org>
> 
> Easy workarounds on your end for now: build in a clean environment
> (just a Poudriere provides), use packages pre-built that way, or
> remove the devel/libsysinfo port (at least when building Wine).

emulators/wine-devel now also has that fix backported from mainline Wine.

Gerald