[neon/plasma/kwin-selenium-tester/Neon/stable] debian: refresh patch and bring back setcap

Carlos De Maine null at kde.org
Wed Sep 16 03:54:49 BST 2026


Git commit d5112c7d67e2468a474e4e95ccd8a3e048c2b929 by Carlos De Maine.
Committed on 16/09/2026 at 02:54.
Pushed by carlosdem into branch 'Neon/stable'.

refresh patch and bring back setcap

(cherry picked from commit dd826c1b6d2cc0d5771287c8ccfd9ed6e83427f9)

M  +0    -7    debian/patches/pw_stream_queue_buffer.diff
M  +8    -0    debian/rules
R  +2    -1    debian/setcap.yaml [from: debian/setcap.yaml.old - 067% similarity]

https://invent.kde.org/neon/plasma/kwin-selenium-tester/-/commit/d5112c7d67e2468a474e4e95ccd8a3e048c2b929

diff --git a/debian/patches/pw_stream_queue_buffer.diff b/debian/patches/pw_stream_queue_buffer.diff
index aa1c482..6c2331a 100644
--- a/debian/patches/pw_stream_queue_buffer.diff
+++ b/debian/patches/pw_stream_queue_buffer.diff
@@ -1,14 +1,9 @@
-
 diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp
-index 5a169e78d0..b6e06edf4f 100644
 index 683d885e3d..f6b8ed5cce 100644
 --- a/src/plugins/screencast/screencaststream.cpp
 +++ b/src/plugins/screencast/screencaststream.cpp
-@@ -622,7 +623,7 @@ void ScreenCastStream::record(Contents contents)
 @@ -628,7 +628,7 @@ void ScreenCastStream::record(Contents contents)
  
-     EglContext *context = backend->openglContext();
-     if (!context->makeCurrent()) {
      const auto &context = m_source->eglContext();
      if (!context || !context->makeCurrent()) {
 -        pw_stream_return_buffer(m_pwStream, pwBuffer);
@@ -16,5 +11,3 @@ index 683d885e3d..f6b8ed5cce 100644
          // TODO maybe re-allocate buffers and deal with this better?
          close();
          return;
-     }
- 
diff --git a/debian/rules b/debian/rules
index 322522b..76c2c18 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,6 +22,14 @@ override_dh_auto_configure:
 	-DKWIN_BUILD_RUNNERS=OFF \
 	-DBUILD_TESTING=OFF
 
+override_dh_install:
+	# make sure dir exists
+	mkdir -p debian/kwin-selenium-tester/DEBIAN
+	# sed in our multiarch path
+	sed 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/kwin-selenium-tester.postinst.in > debian/kwin-selenium-tester/DEBIAN/postinst
+	# ensure the postinst is executable
+	chmod 755 debian/kwin-selenium-tester/DEBIAN/postinst
+
 override_dh_auto_test:
 	#do not run tests
 	true
diff --git a/debian/setcap.yaml.old b/debian/setcap.yaml
similarity index 67%
rename from debian/setcap.yaml.old
rename to debian/setcap.yaml
index 11a18f8..c88e87e 100644
--- a/debian/setcap.yaml.old
+++ b/debian/setcap.yaml
@@ -2,4 +2,5 @@
 # Being whitelisted means they will pass the build without problems.
 # A whitelisted call needs to have a corresponding setcap/setuid call in
 # postinst so it actually gets applied.
-- ["CAP_SYS_NICE=+ep", "*/bin/kwin_wayland"]
+- ["CAP_SYS_NICE=+ep", "*/usr/bin/kwin_wayland_wrapper"]
+- ["CAP_SYS_NICE=+ep", "*/usr/bin/kwin_wayland"]


More information about the Neon-commits mailing list