[packages/laptop-mode-tools] - mksh does not pass fds opened with exec redirecton to process
baggins
baggins at pld-linux.org
Thu Jan 19 20:34:17 CET 2017
commit 1221a1ea4a21eb933c514c247e09e635a45f5fa0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Jan 20 04:33:44 2017 +0900
- mksh does not pass fds opened with exec redirecton to process
laptop-mode-tools.spec | 2 ++
no-exec-redirection.patch | 8 ++++++++
2 files changed, 10 insertions(+)
---
diff --git a/laptop-mode-tools.spec b/laptop-mode-tools.spec
index 564d6ca..736c6ec 100644
--- a/laptop-mode-tools.spec
+++ b/laptop-mode-tools.spec
@@ -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
index 0000000..2ec3e06
--- /dev/null
+++ b/no-exec-redirection.patch
@@ -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.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/laptop-mode-tools.git/commitdiff/1221a1ea4a21eb933c514c247e09e635a45f5fa0
More information about the pld-cvs-commit
mailing list