Bug 259035 - graphics/qt5-wayland: Enable memfd_create() usage
Summary: graphics/qt5-wayland: Enable memfd_create() usage
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-10 02:58 UTC by sigsys
Modified: 2023-05-22 13:36 UTC (History)
0 users

See Also:


Attachments
graphics/qt5-wayland/files/patch-memfd-fbsd13 (435 bytes, patch)
2021-10-10 02:58 UTC, sigsys
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sigsys 2021-10-10 02:58:38 UTC
Created attachment 228553 [details]
graphics/qt5-wayland/files/patch-memfd-fbsd13

Port works fine without it, but it creates temporary files in XDG_RUNTIME_DIR instead.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-08-18 08:25:02 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fc9d9b0c38a1296a7d6cc7675412128a224659ae

commit fc9d9b0c38a1296a7d6cc7675412128a224659ae
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2022-08-17 23:43:24 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2022-08-18 08:23:58 +0000

    graphics/qt5-wayland: use memfd_create() on 13+

    On 13+, the memfd_create() syscall can create anonymous shared-
    memory areas that behaves like a file. This is used upstream
    (not in Qt, but in KDE) when possible. Use it when relevant,
    since it avoids creating temporary files.

    While here, freshen-up the other patches.

    PR:             259035

 graphics/qt5-wayland/Makefile                                 |  1 +
 graphics/qt5-wayland/files/patch-qtwayland.pro                |  4 ++--
 .../files/patch-src_client_qwaylandshmbackingstore.cpp (new)  | 11 +++++++++++
 ...egration_compositor_linux-dmabuf-unstable-v1_linuxdmabuf.h |  4 ++--
 4 files changed, 16 insertions(+), 4 deletions(-)