uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
14
pkgs/development/libraries/kde-frameworks/kdesu/default.nix
Normal file
14
pkgs/development/libraries/kde-frameworks/kdesu/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
mkDerivation,
|
||||
extra-cmake-modules,
|
||||
kcoreaddons, ki18n, kpty, kservice, qtbase,
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
pname = "kdesu";
|
||||
nativeBuildInputs = [ extra-cmake-modules ];
|
||||
buildInputs = [ kcoreaddons ki18n kpty kservice qtbase ];
|
||||
propagatedBuildInputs = [ kpty ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [ ./kdesu-search-for-wrapped-daemon-first.patch ];
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
From 01af4d2a098e5819c09bca37568941dcd4b89d0b Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= <malaquias@gmail.com>
|
||||
Date: Thu, 16 Jul 2020 13:21:42 -0300
|
||||
Subject: [PATCH] Search for the daemon first in /run/wrappers/bin
|
||||
|
||||
If looking first in libexec, the eventually wrapped one in
|
||||
/run/wrappers/bin can not be found.
|
||||
---
|
||||
src/client.cpp | 13 ++++++++-----
|
||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/client.cpp b/src/client.cpp
|
||||
index 44fbacd..6b5abf5 100644
|
||||
--- a/src/client.cpp
|
||||
+++ b/src/client.cpp
|
||||
@@ -384,11 +384,14 @@ int KDEsuClient::stopServer()
|
||||
|
||||
static QString findDaemon()
|
||||
{
|
||||
- QString daemon = QFile::decodeName(KDE_INSTALL_FULL_LIBEXECDIR_KF "/kdesud");
|
||||
- if (!QFile::exists(daemon)) { // if not in libexec, find it in PATH
|
||||
- daemon = QStandardPaths::findExecutable(QStringLiteral("kdesud"));
|
||||
- if (daemon.isEmpty()) {
|
||||
- qCWarning(KSU_LOG) << "kdesud daemon not found.";
|
||||
+ QString daemon = QFile::decodeName("/run/wrappers/bin/kdesud");
|
||||
+ if (!QFile::exists(daemon)) { // if not in wrappers
|
||||
+ daemon = QFile::decodeName(KDE_INSTALL_FULL_LIBEXECDIR_KF "/kdesud");
|
||||
+ if (!QFile::exists(daemon)) { // if not in libexec, find it in PATH
|
||||
+ daemon = QStandardPaths::findExecutable(QStringLiteral("kdesud"));
|
||||
+ if (daemon.isEmpty()) {
|
||||
+ qCWarning(KSU_LOG) << "kdesud daemon not found.";
|
||||
+ }
|
||||
}
|
||||
}
|
||||
return daemon;
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue