From nobody Sun Feb 11 00:50:25 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TXTXL1hYjz590hK; Sun, 11 Feb 2024 00:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TXTXL18Zzz3xQ3; Sun, 11 Feb 2024 00:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707612626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CL1SG6BB1RPI7EVJrEs6ij+YoxbyH1lpZIZ+BtHSK/I=; b=VcsO9/rPFo7VRREU/kMoxgLXge7xhVcX6KDKEdf9OzaauFExMwaznJel3rjS+cGpCGAO/c g4dVgrxq8r55ZDi3Q5zGofzsgTXlNvcgMkfQN6OpPBICYSOdzqElc3VHOQ2LcNwS906cgz pnkMYVTraFGHxPJGPg1lOoUu4iZBS0wRuiZgZALvQHDZiDN+twp7j5mzTfsQn5O/VhnubS 6wiaFduaJ6OUoCIfgYXpLVCVb73RxZ3gmagv/bLpWjo2eEJ5fOJE/GBXO6es4dTj+Zyzek AJNTsI0oSI7DVtiQSFNkO1uiLOa7aGfXwhTVfUK20uX/p90T8sCO83sHpjZ3DQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707612626; a=rsa-sha256; cv=none; b=kJCCGxHWfAIJmUgeG4ZQjelmmQuncMCK1gVPdiet71I0cA9Rgy9pgp9P/J2Dmif3qzqQ40 Fk4bEjXHT9oRD/LOZkExFVDFsT5QOPZ1vlN71AXM5wIT3n6o1h0lzo+u0iitMT8V1uTUsp QtvT4tFgmB6VxbgcIM8ONtsvfVFMpejW+Uw0/aJa6LfMrRiLgMiadWqprhk9iiLa3APoOR HWdp9jwG8rxtxUX55teetrAVu2GwcqmZq6BE7Aw/2vIHvozVeFz5jjLwEC5i42S+PMfIuh 8JqZlO68+HBL7PTvRwP08OqO5MoxBujJVmXT73PxQb5ic8LLEIGExnA64/3LQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707612626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CL1SG6BB1RPI7EVJrEs6ij+YoxbyH1lpZIZ+BtHSK/I=; b=AQvsQrcHNb6tIrfB9eNp8Djn07aviHAmxIQ018Zn/ecvdRyGEiqBwjVSBGSeLvsrqaWT/g RWw2ym14yke1ax0HFuHg5Xdqsa564IG7UAGNgTerq4I72dD6MWHRFzTBoT9xqpWQ1prb8M kG996lQl7teZ+XIIT8vWkFxUNY5gFzxS0Rt4Ot+LgogJTnw5mtwe7cpDCKPHSBBOM7bFuQ HTf27U8w2Ea3JP3H//3VYDklNgIou94RSZ3Kc9FgPC34ZfnqxjGo6iyvZEoh9Npd7Bfziu 4L8+7ti4WAy+D69A9EyW6eABzlAoqyQVAEuMGT3Ig+CAIKczONJ5AuWGmBlLTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TXTXL0Bfrzd8M; Sun, 11 Feb 2024 00:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41B0oPJ2081755; Sun, 11 Feb 2024 00:50:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41B0oPdW081752; Sun, 11 Feb 2024 00:50:25 GMT (envelope-from git) Date: Sun, 11 Feb 2024 00:50:25 GMT Message-Id: <202402110050.41B0oPdW081752@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: d0208b455884 - main - x11-wm/picom: suggest mac_priority(4) after b22b6eeffd22 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d0208b45588472f21fc929f92d1544028ed18ddc Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=d0208b45588472f21fc929f92d1544028ed18ddc commit d0208b45588472f21fc929f92d1544028ed18ddc Author: Jan Beich AuthorDate: 2024-01-20 18:32:56 +0000 Commit: Jan Beich CommitDate: 2024-02-11 00:49:35 +0000 x11-wm/picom: suggest mac_priority(4) after b22b6eeffd22 FreeBSD lacks setcap(8) + CAP_SYS_NICE, so permissions to set realtime priorities like SCHED_RR are group-wide and disabled by default. $ picom --log-level info [...] [ 20/01/2024 19:37:18.928 set_rr_scheduling INFO ] Failed to set real-time scheduling priority to 0. Consider giving picom the CAP_SYS_NICE capability [...] https://github.com/yshui/picom/commit/7d9692360b2e --- x11-wm/picom/Makefile | 1 + x11-wm/picom/files/patch-rtprio | 54 +++++++++++++++++++++++++++++++++++++++++ x11-wm/picom/pkg-message | 7 ++++++ 3 files changed, 62 insertions(+) diff --git a/x11-wm/picom/Makefile b/x11-wm/picom/Makefile index 8b2d0921f66b..ed8eae9867b1 100644 --- a/x11-wm/picom/Makefile +++ b/x11-wm/picom/Makefile @@ -1,6 +1,7 @@ PORTNAME= picom DISTVERSIONPREFIX= v DISTVERSION= 11.1 +PORTREVISION= 1 CATEGORIES= x11-wm MAINTAINER= jbeich@FreeBSD.org diff --git a/x11-wm/picom/files/patch-rtprio b/x11-wm/picom/files/patch-rtprio new file mode 100644 index 000000000000..e4d20a12c732 --- /dev/null +++ b/x11-wm/picom/files/patch-rtprio @@ -0,0 +1,54 @@ +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276962 +https://github.com/yshui/picom/commit/023103c62074 +https://github.com/yshui/picom/commit/dff77aae27cf + +--- src/meson.build.orig 2024-01-28 18:17:19 UTC ++++ src/meson.build +@@ -23,7 +23,7 @@ required_packages = [ + # Some XCB packages are here because their versioning differs (see check below). + required_packages = [ + 'pixman-1', 'x11', 'x11-xcb', 'xcb-image', 'xcb-renderutil', 'xcb-util', +- 'xext' ++ 'xext', 'threads', + ] + + foreach i : required_packages +@@ -59,7 +59,7 @@ if get_option('opengl') + + if get_option('opengl') + cflags += ['-DCONFIG_OPENGL', '-DGL_GLEXT_PROTOTYPES'] +- deps += [dependency('gl', required: true), dependency('egl', required: true), dependency('threads', required:true)] ++ deps += [dependency('gl', required: true), dependency('egl', required: true)] + srcs += [ 'opengl.c' ] + endif + +--- src/picom.c.orig 2024-01-28 18:17:19 UTC ++++ src/picom.c +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -2557,15 +2558,16 @@ void set_rr_scheduling(void) { + + int ret; + struct sched_param param; +- +- ret = sched_getparam(0, ¶m); ++ int old_policy; ++ ret = pthread_getschedparam(pthread_self(), &old_policy, ¶m); + if (ret != 0) { + log_debug("Failed to get old scheduling priority"); + return; + } + + param.sched_priority = priority; +- ret = sched_setscheduler(0, SCHED_RR, ¶m); ++ ++ ret = pthread_setschedparam(pthread_self(), SCHED_RR, ¶m); + if (ret != 0) { + log_info("Failed to set real-time scheduling priority to %d.", priority); + return; diff --git a/x11-wm/picom/pkg-message b/x11-wm/picom/pkg-message new file mode 100644 index 000000000000..aa9a233ab840 --- /dev/null +++ b/x11-wm/picom/pkg-message @@ -0,0 +1,7 @@ +[ +{ type: install + message: <