ckb-next/ckb-next-use-run.patch
Jannik Seiler 2c3e19aca5 Accepting request 1095205 from home:seil0:branches:hardware
- Update to version 0.6.0
  Support for new devices:
  * K55 RGB PRO
  * K55 RGB PRO XT
  * K60 PRO (Monochrome)
  * K60 PRO TKL RGB
  * Dark Core RGB Pro (experimental)
  * Dark Core RGB Pro SE (experimental)
  * Slipstream wireless dongle (when paired with a single supported device)
  Important bugfixes:
  * The Fn key now behaves as expected on the K65
  * The GUI now accepts macros containing the ISO backslash key
  * A workaround is now implemented to prevent the media keys on the Strafe from getting stuck pressed
  * The daemon no longer crashes with a buffer overflow detected message on start under certain conditions
  * The WinLock LED now functions on the K55 RGB and K55 RGB Pro XT
  * The GUI no longer crashes under certain conditions when the sound server is being restarted
  * The battery states are now reported correctly in the GUI
  * The brightness is now correctly set for newer devices (and the lights now turn off instantly)
  New features:
  * The device previews are now rendered using the GPU
  * Horizontal scrolling is now available for binding
  * The mute indicator can now indicate either the default output or input audio device
  * The music visualizer now supports automatic gain control, automatically adapting to volume changes
  * It is now possible to pair wireless devices with dongles (not in GUI yet)
- Refresh ckb-next-use-run.patch
- Refresh 422.patch
- Drop fix_buffer_overflow_FORTIFY_SOURCE.patch, fixed upstream

OBS-URL: https://build.opensuse.org/request/show/1095205
OBS-URL: https://build.opensuse.org/package/show/hardware/ckb-next?expand=0&rev=31
2023-06-28 20:11:51 +00:00

53 lines
2.1 KiB
Diff

diff -Naur ckb-next-0.6.0.orig/ckb-next-dev-detect ckb-next-0.6.0/ckb-next-dev-detect
--- ckb-next-0.6.0.orig/ckb-next-dev-detect 2023-06-22 23:07:29.000000000 +0200
+++ ckb-next-0.6.0/ckb-next-dev-detect 2023-06-25 10:58:28.109452264 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/bash
# Newline
N=$'\n'
@@ -69,7 +69,7 @@
OUT="${OUT}${N}${N}Daemon on current boot:${N}`journalctl -o short-precise -b 0 --unit=ckb-next-daemon 2>&1`"
OUT="${OUT}${N}${N}Daemon on last boot:${N}`journalctl -o short-precise -b -1 --unit=ckb-next-daemon 2>&1`"
fi
- OUT="${OUT}${N}${N}Dev nodes:${N}`find /dev/input/ckb* -print -type f -exec cat {} \; 2>&1`"
+ OUT="${OUT}${N}${N}Dev nodes:${N}`find /run/ckb* -print -type f -exec cat {} \; 2>&1`"
OUT="${OUT}${N}${N}Kernel command line:${N}`cat /proc/cmdline`"
GUIPATH="$(which ckb-next)"
OUT="${OUT}${N}${N}GUI ldd:${N}`ldd ${GUIPATH}`"
diff -Naur ckb-next-0.6.0.orig/src/daemon/devnode.c ckb-next-0.6.0/src/daemon/devnode.c
--- ckb-next-0.6.0.orig/src/daemon/devnode.c 2023-06-22 23:07:29.000000000 +0200
+++ ckb-next-0.6.0/src/daemon/devnode.c 2023-06-25 11:00:12.833333006 +0200
@@ -7,13 +7,7 @@
#include "profile.h"
#include <ckbnextconfig.h>
-// OSX doesn't like putting FIFOs in /dev for some reason
-// Don't make these pointers, as doing so will result in sizeof() not producing the correct result.
-#ifndef OS_MAC
-#define DEVPATH "/dev/input/ckb"
-#else
-#define DEVPATH "/var/run/ckb"
-#endif
+#define DEVPATH "/run/ckb"
const char devpath[] = DEVPATH;
#define DEVPATH_LEN (sizeof(devpath) - 1)
diff -Naur ckb-next-0.6.0.orig/src/gui/kbmanager.cpp ckb-next-0.6.0/src/gui/kbmanager.cpp
--- ckb-next-0.6.0.orig/src/gui/kbmanager.cpp 2023-06-22 23:07:29.000000000 +0200
+++ ckb-next-0.6.0/src/gui/kbmanager.cpp 2023-06-25 11:01:01.785277266 +0200
@@ -2,11 +2,7 @@
#include "idletimer.h"
#include <limits>
-#ifndef Q_OS_MACOS
-QString devpath = "/dev/input/ckb%1";
-#else
-QString devpath = "/var/run/ckb%1";
-#endif
+QString devpath = "/run/ckb%1";
#ifdef DEBUG_IDLE_TIMER
#define IDLE_TIMER_DURATION 5000