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
35
pkgs/applications/video/simplescreenrecorder/fix-paths.patch
Normal file
35
pkgs/applications/video/simplescreenrecorder/fix-paths.patch
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
diff --git a/scripts/ssr-glinject b/scripts/ssr-glinject
|
||||
index 48be48d..5038d4c 100755
|
||||
--- a/scripts/ssr-glinject
|
||||
+++ b/scripts/ssr-glinject
|
||||
@@ -59,6 +59,6 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
-echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:libssr-glinject.so"
|
||||
+echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:@out@/lib/libssr-glinject.so"
|
||||
echo "ssr-glinject: command = $@"
|
||||
-LD_PRELOAD="$LD_PRELOAD:libssr-glinject.so" "$@"
|
||||
+LD_PRELOAD="$LD_PRELOAD:@out@/lib/libssr-glinject.so" "$@"
|
||||
diff --git a/src/AV/Input/GLInjectInput.cpp b/src/AV/Input/GLInjectInput.cpp
|
||||
index fc98f31..18f5196 100644
|
||||
--- a/src/AV/Input/GLInjectInput.cpp
|
||||
+++ b/src/AV/Input/GLInjectInput.cpp
|
||||
@@ -113,7 +113,7 @@ bool ExecuteDetached(const char* command, const char* working_directory) {
|
||||
|
||||
// try to execute command
|
||||
do {
|
||||
- res = execl("/bin/sh", "/bin/sh", "-c", command, (char*) NULL);
|
||||
+ res = execl("@sh@", "@sh@", "-c", command, (char*) NULL);
|
||||
} while(res == -1 and errno == EINTR);
|
||||
|
||||
// failed, send feedback
|
||||
@@ -207,7 +207,7 @@ void GLInjectInput::SetCapturing(bool capturing) {
|
||||
bool GLInjectInput::LaunchApplication(const QString& channel, bool relax_permissions, const QString& command, const QString& working_directory) {
|
||||
|
||||
// prepare command
|
||||
- QString full_command = "LD_PRELOAD=\"libssr-glinject.so\" ";
|
||||
+ QString full_command = "LD_PRELOAD=\"@out@/lib/libssr-glinject.so\" ";
|
||||
full_command += "SSR_CHANNEL=\"" + ShellEscape(channel) + "\" ";
|
||||
if(relax_permissions)
|
||||
full_command += "SSR_STREAM_RELAX_PERMISSIONS=1 ";
|
||||
Loading…
Add table
Add a link
Reference in a new issue