rpms/gpm/devel gpm-1.20.1-openmax.patch, NONE, 1.1 gpm.spec, 1.55, 1.56
Tomas Janousek (tjanouse)
fedora-extras-commits at redhat.com
Tue Jul 24 18:52:12 UTC 2007
- Previous message: rpms/pungi/devel .cvsignore, 1.18, 1.19 pungi.spec, 1.19, 1.20 sources, 1.18, 1.19
- Next message: rpms/ktorrent/F-7 .cvsignore, 1.12, 1.13 ktorrent.spec, 1.35, 1.36 sources, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tjanouse
Update of /cvs/pkgs/rpms/gpm/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4876
Modified Files:
gpm.spec
Added Files:
gpm-1.20.1-openmax.patch
Log Message:
* Tue Jul 24 2007 Tomas Janousek <tjanouse at redhat.com> - 1.20.1-87
- replace OPEN_MAX with sysconf(_SC_OPEN_MAX), fixing build with 2.6.23 kernel
gpm-1.20.1-openmax.patch:
--- NEW FILE gpm-1.20.1-openmax.patch ---
--- gpm-1.20.1/src/prog/gpm-root.y.openmax 2002-12-24 23:57:16.000000000 +0100
+++ gpm-1.20.1/src/prog/gpm-root.y 2007-07-24 20:45:46.000000000 +0200
@@ -525,7 +525,9 @@
open("/dev/null",O_RDONLY); /* stdin */
open(consolename,O_WRONLY); /* stdout */
dup(1); /* stderr */
- for (i=3;i<OPEN_MAX; i++) close(i);
+ int open_max = sysconf(_SC_OPEN_MAX);
+ if (open_max == -1) open_max = 1024;
+ for (i=3;i<open_max; i++) close(i);
execl("/bin/sh","sh","-c",self->arg,(char *)NULL);
exit(1); /* shouldn't happen */
default: return 0;
--- gpm-1.20.1/src/special.c.openmax 2007-07-24 20:45:46.000000000 +0200
+++ gpm-1.20.1/src/special.c 2007-07-24 20:45:46.000000000 +0200
@@ -156,7 +156,9 @@
open(GPM_NULL_DEV,O_RDONLY); /* stdin */
open(console.device, O_WRONLY); /* stdout */
dup(1); /* stderr */
- for (i=3;i<OPEN_MAX; i++) close(i);
+ int open_max = sysconf(_SC_OPEN_MAX);
+ if (open_max == -1) open_max = 1024;
+ for (i=3;i<open_max; i++) close(i);
execl("/bin/sh","sh","-c",command,(char *)NULL);
exit(1); /* shouldn't happen */
Index: gpm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gpm/devel/gpm.spec,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- gpm.spec 24 Jul 2007 14:13:06 -0000 1.55
+++ gpm.spec 24 Jul 2007 18:51:40 -0000 1.56
@@ -1,7 +1,7 @@
Summary: A mouse server for the Linux console.
Name: gpm
Version: 1.20.1
-Release: 86%{?dist}
+Release: 87%{?dist}
License: GPL
Group: System Environment/Daemons
Source: http://ftp.linux.it/pub/People/rubini/gpm/%{name}-%{version}.tar.gz
@@ -24,6 +24,7 @@
Patch24: gpm-1.20.1-deadsocket.patch
Patch25: gpm-1.20.1-default-handler.patch
Patch26: gpm-1.20.1-va_list.patch
+Patch27: gpm-1.20.1-openmax.patch
Prereq: /sbin/chkconfig /sbin/ldconfig /sbin/install-info
Requires: bash >= 2.0
@@ -72,6 +73,7 @@
%patch24 -p1 -b .deadsocket
%patch25 -p1 -b .default-handler
%patch26 -p1 -b .va_list
+%patch27 -p1 -b .openmax
%build
rm -f configure
@@ -191,6 +193,9 @@
%{_libdir}/libgpm.so
%changelog
+* Tue Jul 24 2007 Tomas Janousek <tjanouse at redhat.com> - 1.20.1-87
+- replace OPEN_MAX with sysconf(_SC_OPEN_MAX), fixing build with 2.6.23 kernel
+
* Tue Jul 24 2007 Tomas Janousek <tjanouse at redhat.com> - 1.20.1-86
- don't install t-mouse.el, emacs-common contains a newer version,
fixes #249362
- Previous message: rpms/pungi/devel .cvsignore, 1.18, 1.19 pungi.spec, 1.19, 1.20 sources, 1.18, 1.19
- Next message: rpms/ktorrent/F-7 .cvsignore, 1.12, 1.13 ktorrent.spec, 1.35, 1.36 sources, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list