1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

x11-toolkits/wlroots: backport WLR_DRM_NO_MODIFIERS support

https://github.com/swaywm/wlroots/commit/2bdd1d0896cc broke KMS-based
screen capture e.g.,

  $ sudo LIBVA_DRIVER_NAME=iHD ffmpeg -hide_banner \
      -f kmsgrab -i - \
      -vf hwmap=derive_device=vaapi,scale_vaapi=format=nv12 \
      -c:v h264_vaapi  \
      output.mp4
  [kmsgrab @ 0x81098b000] Using plane 30 to locate framebuffers.
  [kmsgrab @ 0x81098b000] Failed to get framebuffer 131: Invalid argument.
  pipe:: Invalid argument

To make it work again define WLR_DRM_NO_MODIFIERS=1 via environ(7)
before starting a wlroots-based compositor.
This commit is contained in:
Jan Beich 2020-01-29 15:59:49 +00:00
parent d6304965a4
commit 52ae0e2a69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=524557
2 changed files with 8 additions and 0 deletions

View File

@ -2,8 +2,12 @@
PORTNAME= wlroots
DISTVERSION= 0.10.0
PORTREVISION= 1
CATEGORIES= x11-toolkits
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= f0594fb73225.patch:-p1 144d2041adfb.patch:-p1
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Modular Wayland compositor library

View File

@ -1,5 +1,9 @@
TIMESTAMP = 1579717324
SHA256 (swaywm-wlroots-0.10.0_GH0.tar.gz) = 9414ba761c321f9c2b3e0426e1bbed55443fa8f97d46643d1706d1ddd614f6cd
SIZE (swaywm-wlroots-0.10.0_GH0.tar.gz) = 454540
SHA256 (f0594fb73225.patch) = 18bf269fcd6831246604654dc1e229e8ed75a5d3dbb46c49600609e144404dc2
SIZE (f0594fb73225.patch) = 2971
SHA256 (144d2041adfb.patch) = e76603d04d24063182e05876313f1ac697a132771e32c50ae7cf1d962a866c40
SIZE (144d2041adfb.patch) = 1838
SHA256 (e8cc137111bc.patch) = e0b686193a6925eedb09298e0f300aa93d4910c41dbe788a47a2699df34cfafe
SIZE (e8cc137111bc.patch) = 27737