OBS User unknown 2007-12-12 17:10:48 +00:00 committed by Git OBS Bridge
parent 5c564bba46
commit c7a7007900
3 changed files with 25 additions and 3 deletions

13
gpm-1.20.1-OPEN_MAX.patch Normal file
View File

@ -0,0 +1,13 @@
Index: gpm-1.20.1/src/prog/gpm-root.y
===================================================================
--- gpm-1.20.1.orig/src/prog/gpm-root.y 2002-12-24 23:57:16.000000000 +0100
+++ gpm-1.20.1/src/prog/gpm-root.y 2007-12-12 11:15:15.000000000 +0100
@@ -525,7 +525,7 @@ int f_bgcmd(int mode, DrawItem *self, in
open("/dev/null",O_RDONLY); /* stdin */
open(consolename,O_WRONLY); /* stdout */
dup(1); /* stderr */
- for (i=3;i<OPEN_MAX; i++) close(i);
+ for (i=3;i<FOPEN_MAX; i++) close(i);
execl("/bin/sh","sh","-c",self->arg,(char *)NULL);
exit(1); /* shouldn't happen */
default: return 0;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 12 11:17:26 CET 2007 - rguenther@suse.de
- use FOPEN_MAX instead of OPEN_MAX to fix build.
-------------------------------------------------------------------
Tue Aug 7 09:23:55 CEST 2007 - anosek@suse.cz

View File

@ -12,14 +12,14 @@
Name: gpm
BuildRequires: bison ncurses-devel
URL: http://linux.schottelius.org/gpm/
Url: http://linux.schottelius.org/gpm/
License: GPL v2 or later
Group: System/Console
Provides: select
PreReq: /bin/sed %insserv_prereq %fillup_prereq
Autoreqprov: on
AutoReqProv: on
Version: 1.20.1
Release: 379
Release: 392
Summary: Console Mouse Support
Source0: http://arcana.linux.it/pub/gpm/gpm-%{version}.tar.bz2
Source1: rcgpm
@ -41,6 +41,7 @@ Patch12: gpm-%{version}-daemon_mode.patch
Patch13: gpm-%{version}-gunze-overflow.patch
Patch14: gpm-%{version}-warnings.patch
Patch15: gpm-%{version}-verbosity.patch
Patch16: gpm-%{version}-OPEN_MAX.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
@ -75,6 +76,7 @@ Authors:
%patch13
%patch14
%patch15
%patch16 -p1
#
cp %{S:1} %{S:2} %{S:3} .
@ -162,6 +164,8 @@ rm -rf $RPM_BUILD_ROOT
/var/adm/fillup-templates/*
%changelog
* Wed Dec 12 2007 - rguenther@suse.de
- use FOPEN_MAX instead of OPEN_MAX to fix build.
* Tue Aug 07 2007 - anosek@suse.cz
- fixed /etc/sysconfig/mouse should configure the mouse by default for gpm
[#262749]