[Bug 256970] multimedia/pipewire: unbreak xdg-desktop-portal-wlr after 0.3.31 update

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Jul 2021 10:28:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256970

            Bug ID: 256970
           Summary: multimedia/pipewire: unbreak xdg-desktop-portal-wlr
                    after 0.3.31 update
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: arrowd@FreeBSD.org
          Reporter: jbeich@FreeBSD.org
                CC: evgeniy@khramtsov.org
          Assignee: arrowd@FreeBSD.org
             Flags: maintainer-feedback?(arrowd@FreeBSD.org)

Created attachment 226210
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=226210&action=edit
v1 (revert upstream change)

In 0.3.31 update ( ports ea3170c51fd4)
https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/cb6dbd165a37 made
public API incompatible with consumers using _POSIX_SOURCE, _POSIX_C_SOURCE or
_XOPEN_SOURCE: <sys/mount.h> isn't standalone but depends on BSD-specific types
in <sys/types.h> which are hidden when POSIX compliance is requested.
xdg-desktop-portal-wlr passes -D_POSIX_C_SOURCE=200809L via meson.build which
works for its own code and all other dependencies.

In file included from ../src/core/main.c:7:
In file included from /usr/local/include/pipewire-0.3/pipewire/pipewire.h:35:
In file included from /usr/local/include/pipewire-0.3/pipewire/client.h:35:
In file included from /usr/local/include/pipewire-0.3/pipewire/proxy.h:108:
In file included from /usr/local/include/pipewire-0.3/pipewire/protocol.h:48:
In file included from /usr/local/include/pipewire-0.3/pipewire/utils.h:34:
In file included from /usr/include/sys/mount.h:38:
/usr/include/sys/ucred.h:99:2: error: unknown type name 'u_int'
        u_int   cr_version;             /* structure layout version */
        ^
In file included from ../src/core/main.c:7:
In file included from /usr/local/include/pipewire-0.3/pipewire/pipewire.h:35:
In file included from /usr/local/include/pipewire-0.3/pipewire/client.h:35:
In file included from /usr/local/include/pipewire-0.3/pipewire/proxy.h:108:
In file included from /usr/local/include/pipewire-0.3/pipewire/protocol.h:48:
In file included from /usr/local/include/pipewire-0.3/pipewire/utils.h:34:


http://www.ipv6proxy.net/go.php?u=http://beefy18.nyi.freebsd.org/data/main-amd64-default/p8656d375678d_s6329ca325e/logs/errors/xdg-desktop-portal-wlr-0.4.0.log

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