packages: gpm/gpm.spec, gpm/close-fds.patch (NEW)=?UTF-8?Q?=20?=- close fds patch
glen
glen at pld-linux.org
Mon Apr 16 23:01:08 CEST 2012
Author: glen Date: Mon Apr 16 21:01:08 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- close fds patch
---- Files affected:
packages/gpm:
gpm.spec (1.178 -> 1.179) , close-fds.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/gpm/gpm.spec
diff -u packages/gpm/gpm.spec:1.178 packages/gpm/gpm.spec:1.179
--- packages/gpm/gpm.spec:1.178 Fri Mar 2 21:17:48 2012
+++ packages/gpm/gpm.spec Mon Apr 16 23:01:03 2012
@@ -2,6 +2,9 @@
#
# TODO:
# - make modprobe of kernel mouse modules for 2.5
+# - unpackaged:
+# /usr/bin/mouse-test
+# /usr/sbin/hltest
#
Summary: General Purpose Mouse support for Linux
Summary(de.UTF-8): Allgemeine Mausunterstützung für Linux
@@ -15,7 +18,7 @@
Summary(uk.UTF-8): Сервер роботи з мишою для консолі Linux
Name: gpm
Version: 1.20.6
-Release: 13
+Release: 14
Epoch: 1
License: GPL v2+
Group: Daemons
@@ -33,6 +36,7 @@
Patch3: %{name}-nodebug.patch
Patch4: %{name}-dont_display_stupid_error_messages.patch
Patch5: %{name}-ncursesw.patch
+Patch6: close-fds.patch
URL: http://linux.schottelius.org/gpm/
BuildRequires: autoconf
BuildRequires: automake
@@ -245,6 +249,7 @@
%{!?debug:%patch3 -p1}
%patch4 -p1
%patch5 -p1
+%patch6 -p1
sed -i -e 's#/usr##' doc/manpager
@@ -275,6 +280,8 @@
cp -a %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/gpm.service
bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/README.gpm-non-english-man-pages
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/gpm-man.patch
install -d $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
install -p contrib/emacs/*.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
@@ -408,6 +415,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.179 2012/04/16 21:01:03 glen
+- close fds patch
+
Revision 1.178 2012/03/02 20:17:48 glen
- try to escape " in $CHARSET for trigger
================================================================
Index: packages/gpm/close-fds.patch
diff -u /dev/null packages/gpm/close-fds.patch:1.1
--- /dev/null Mon Apr 16 23:01:08 2012
+++ packages/gpm/close-fds.patch Mon Apr 16 23:01:03 2012
@@ -0,0 +1,17 @@
+diff -up gpm-1.20.5/src/daemon/startup.c.close-fds gpm-1.20.5/src/daemon/startup.c
+--- gpm-1.20.5/src/daemon/startup.c.close-fds 2008-06-13 10:08:19.000000000 +0200
++++ gpm-1.20.5/src/daemon/startup.c 2008-12-02 10:11:12.000000000 +0100
+@@ -135,6 +135,13 @@ void startup(int argc, char **argv)
+ check_uniqueness();
+ gpm_report(GPM_PR_INFO,GPM_MESS_STARTED);
+
++ // close extra fds
++ if (option.run_status == GPM_RUN_STARTUP ) {
++ close(0);
++ close(1);
++ close(2);
++ }
++
+ //return mouse_table[1].fd; /* the second is handled in the main() */
+
+ /****************** OLD CODE from gpn.c END ***********************/
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/gpm/gpm.spec?r1=1.178&r2=1.179
More information about the pld-cvs-commit
mailing list