commit:     d25b69713f97c643e96e971270b6193f346d99f6
Author:     John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 21 21:41:27 2023 +0000
Commit:     John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Thu Dec 21 21:42:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d25b6971

app-misc/ckb: fix bashism in init script

Closes: https://bugs.gentoo.org/920456
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>

 app-misc/ckb/{ckb-0.6.0.ebuild => ckb-0.6.0-r1.ebuild} |  4 ++++
 app-misc/ckb/files/ckb-0.6.0-fix-bashism.patch         | 16 ++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/app-misc/ckb/ckb-0.6.0.ebuild b/app-misc/ckb/ckb-0.6.0-r1.ebuild
similarity index 96%
rename from app-misc/ckb/ckb-0.6.0.ebuild
rename to app-misc/ckb/ckb-0.6.0-r1.ebuild
index 2c6dac302860..ff1d9c5f596f 100644
--- a/app-misc/ckb/ckb-0.6.0.ebuild
+++ b/app-misc/ckb/ckb-0.6.0-r1.ebuild
@@ -40,6 +40,10 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="dev-qt/linguist-tools:5"
 
+PATCHES=(
+       "${FILESDIR}/${P}-fix-bashism.patch"
+)
+
 src_configure() {
        local mycmakeargs=(
                -DDISABLE_UPDATER=yes

diff --git a/app-misc/ckb/files/ckb-0.6.0-fix-bashism.patch 
b/app-misc/ckb/files/ckb-0.6.0-fix-bashism.patch
new file mode 100644
index 000000000000..8cdc2aa59a0e
--- /dev/null
+++ b/app-misc/ckb/files/ckb-0.6.0-fix-bashism.patch
@@ -0,0 +1,16 @@
+From 
https://github.com/ckb-next/ckb-next/commit/76a47f95b442a1ae5a9c7448566eaafd8863ca8d
+From: Willow Barraco <[email protected]>
+Date: Wed, 19 Jul 2023 09:38:09 +0200
+Subject: [PATCH] Fix ckb-next-daemon OpenRC service file
+
+--- a/linux/openrc/ckb-next-daemon.in
++++ b/linux/openrc/ckb-next-daemon.in
+@@ -7,4 +7,4 @@ command="@CMAKE_INSTALL_PREFIX@/bin/ckb-next-daemon"
+ description="Corsair Keyboards and Mice Daemon"
+ pidfile="/dev/input/ckb0/pid"
+ logfile="/var/log/${RC_SVCNAME}.log"
+-start_stop_daemon_args+="--background --stdout ${logfile} --stderr ${logfile}"
++start_stop_daemon_args="$start_stop_daemon_args --background --stdout 
${logfile} --stderr ${logfile}"
+-- 
+2.43.0
+

Reply via email to