Accepting request 706157 from home:bmwiedemann:branches:hardware
Add 422.patch to fix animations dir (boo#1135528) OBS-URL: https://build.opensuse.org/request/show/706157 OBS-URL: https://build.opensuse.org/package/show/hardware/ckb-next?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
f8442f3b3e
commit
b40c8b38d7
46
422.patch
Normal file
46
422.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
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
|
||||
---
|
||||
src/CMakeLists.txt | 2 +-
|
||||
src/ckbnextconfig.h.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 07804972..1b9a9e59 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -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)
|
||||
diff --git a/src/ckbnextconfig.h.in b/src/ckbnextconfig.h.in
|
||||
index 7842968a..ed5e2404 100644
|
||||
--- a/src/ckbnextconfig.h.in
|
||||
+++ b/src/ckbnextconfig.h.in
|
||||
@@ -1,5 +1,5 @@
|
||||
#cmakedefine CKB_NEXT_VERSION_STR "${ckb-next_VERSION}"
|
||||
-#cmakedefine CKB_NEXT_ANIMATIONS_PATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_DIR_ANIMATIONS}"
|
||||
+#cmakedefine CKB_NEXT_ANIMATIONS_PATH "${INSTALL_DIR_ANIMATIONS}"
|
||||
|
||||
#define CKB_NEXT_PROFILE_VER ${ckb-next_PROFILE_VER}
|
||||
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 29 03:55:59 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||
|
||||
- Add 422.patch to fix animations dir (boo#1135528)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 9 08:46:09 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>
|
||||
|
||||
|
@@ -32,6 +32,8 @@ Patch2: ckb-next-systemd.patch
|
||||
Patch3: ckb-next-no-cmake-modules.patch
|
||||
# PATCH-FIX-UPSTREAM ckb-next-udev.patch
|
||||
Patch4: ckb-next-udev.patch
|
||||
# PATCH-FIX-UPSTREAM 422.patch boo#1135528
|
||||
Patch5: 422.patch
|
||||
BuildRequires: ImageMagick
|
||||
BuildRequires: cmake
|
||||
BuildRequires: hicolor-icon-theme
|
||||
@@ -63,6 +65,7 @@ including full RGB animations.
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
|
Reference in New Issue
Block a user