]> git.pld-linux.org Git - packages/laptop-mode-tools.git/commitdiff
- mksh does not pass fds opened with exec redirecton to process
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Jan 2017 19:33:44 +0000 (04:33 +0900)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 19 Jan 2017 19:33:44 +0000 (04:33 +0900)
laptop-mode-tools.spec
no-exec-redirection.patch [new file with mode: 0644]

index 564d6ca1505fc090558703a2b3ca900e93c5bdae..736c6ecbd7b1a8a8815d6fecf2097637e516fcf8 100644 (file)
@@ -24,6 +24,7 @@ Group:                Applications/System
 Source0:       https://github.com/rickysarraf/laptop-mode-tools/archive/%{version}.tar.gz
 # Source0-md5: 8b9a2d9db7dd9d0a99b635a1185f292c
 Source1:       %{name}.init
+Patch0:                no-exec-redirection.patch
 URL:           https://github.com/rickysarraf/laptop-mode-tools
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
@@ -100,6 +101,7 @@ GUI dla narzędzi do trybu laptopowego.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__sed} -i -e 's|/usr/bin/env python2|/usr/bin/python|' gui/LMT.py
 
diff --git a/no-exec-redirection.patch b/no-exec-redirection.patch
new file mode 100644 (file)
index 0000000..2ec3e06
--- /dev/null
@@ -0,0 +1,8 @@
+--- laptop-mode-tools-1.71/usr/sbin/laptop_mode~       2017-01-12 17:06:23.000000000 +0900
++++ laptop-mode-tools-1.71/usr/sbin/laptop_mode        2017-01-20 04:32:11.006938756 +0900
+@@ -1,4 +1,4 @@
+-#! /bin/sh
++#! /bin/bash
+ #
+ # Script to start or stop laptop_mode, and to control various settings of the
+ # kernel, hardware etc. that influence power consumption.
This page took 0.098625 seconds and 4 git commands to generate.