ckb-next/422.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

40 lines
1.8 KiB
Diff

https://github.com/ckb-next/ckb-next/pull/422
From 257d39dc187f818c6c77a7fb50b994eaa613cbb1 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Wed, 29 May 2019 05:28:33 +0200
Subject: [PATCH] Do not prepend /usr to libexecdir
Fix #276
Without this patch, compiling with -DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir}
expanded this to /usr//usr/lib/ckb-next-animations
and there is no rpm macro to have libexecdir without /usr
but we need to use these macros to be able to use the same .spec file
across distributions (Fedora has /usr/libexec and openSUSE has /usr/lib )
This matches usage in src/daemon/CMakeLists.txt
diff -Naur ckb-next-0.6.0.orig/src/ckbnextconfig.h.in ckb-next-0.6.0/src/ckbnextconfig.h.in
--- ckb-next-0.6.0.orig/src/ckbnextconfig.h.in 2023-06-22 23:07:29.000000000 +0200
+++ ckb-next-0.6.0/src/ckbnextconfig.h.in 2023-06-25 11:15:37.424689978 +0200
@@ -1,5 +1,5 @@
#define CKB_NEXT_VERSION_STR "${ckb-next_VERSION}"
-#define CKB_NEXT_ANIMATIONS_PATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_DIR_ANIMATIONS}"
+#define CKB_NEXT_ANIMATIONS_PATH "${INSTALL_DIR_ANIMATIONS}"
#define CKB_NEXT_UTILITIES_PATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_DIR_UTILITIES}"
#define CKB_NEXT_PROFILE_VER ${ckb-next_PROFILE_VER}
diff -Naur ckb-next-0.6.0.orig/src/CMakeLists.txt ckb-next-0.6.0/src/CMakeLists.txt
--- ckb-next-0.6.0.orig/src/CMakeLists.txt 2023-06-22 23:07:29.000000000 +0200
+++ ckb-next-0.6.0/src/CMakeLists.txt 2023-06-25 11:16:37.568637199 +0200
@@ -27,7 +27,7 @@
# Export version, etc. to source code
set(CKB_NEXT_VERSION_STR "${ckb-next_VERSION}")
-set(CKB_NEXT_ANIMATIONS_PATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_DIR_ANIMATIONS}")
+set(CKB_NEXT_ANIMATIONS_PATH "${INSTALL_DIR_ANIMATIONS}")
configure_file(
${CMAKE_CURRENT_LIST_DIR}/ckbnextconfig.h.in
${CMAKE_BINARY_DIR}/ckbnextconfig.h)