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)
Thu, Dec 19, 11:26 AM
Unknown Object (File)
Fri, Nov 29, 9:08 PM
Unknown Object (File)
Fri, Nov 29, 9:08 PM
Unknown Object (File)
Fri, Nov 29, 8:50 PM
Unknown Object (File)
Nov 25 2024, 6:37 AM
Unknown Object (File)
Nov 13 2024, 5:57 PM
Unknown Object (File)
Nov 7 2024, 5:57 AM
Unknown Object (File)
Oct 21 2024, 4:37 AM
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