Page MenuHomeFreeBSD

x11-servers/xorg-server: Add upstream patch for xkbcomp directory
ClosedPublic

Authored by manu on Apr 9 2024, 3:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 4, 1:51 AM
Unknown Object (File)
Thu, Sep 26, 3:43 PM
Unknown Object (File)
Thu, Sep 26, 3:29 PM
Unknown Object (File)
Thu, Sep 26, 1:34 PM
Unknown Object (File)
Sun, Sep 22, 9:30 AM
Unknown Object (File)
Mon, Sep 16, 3:25 PM
Unknown Object (File)
Sun, Sep 8, 2:53 AM
Unknown Object (File)
Sep 5 2024, 11:14 PM
Subscribers
None

Details

Summary

Add a patch commited upstream but not present in any releases (except
Xwayland ones) as xorg-server releases stopped a while ago. This adds
a fallback to use $XDG_RUNTIME_DIR for xkbcomp result file if the user
can't write to the configured directory, which is unlikely for xorg-server
as it's SUID but it is likely for xephyr or xvfb.
While here use the meson default for xkb_dir as it's the same as the one we
provide and use also the default for xkb_output_dir which defaults to
xkb_dir/compiled which is a link to /var/lib/xkb (setup by the xkeyboard-config
port).

Sponsored by: Beckhoff Automation GmbH & Co. KG

Test Plan

With the patch and using Xephyr :

access("/usr/local/share/X11/xkb/compiled/",X_OK|W_OK) ERR#13 'Permission denied'
access("/var/run/xdg/manu",X_OK|W_OK) = 0 (0x0)

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable