rpms/gpm/devel gpm-1.20.1-deadsocket.patch, 1.1, 1.2 gpm.spec, 1.49, 1.50

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Mar 23 16:26:13 UTC 2007


Author: tjanouse

Update of /cvs/dist/rpms/gpm/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv13206

Modified Files:
	gpm-1.20.1-deadsocket.patch gpm.spec 
Log Message:
* Fri Mar 23 2007 Tomas Janousek <tjanouse at redhat.com> - 1.20.1-81
- the patch for #168076 caused a strange behaviour with ncurses, fixed it
  differently


gpm-1.20.1-deadsocket.patch:
 gpm.c |    7 +++++++
 1 files changed, 7 insertions(+)

Index: gpm-1.20.1-deadsocket.patch
===================================================================
RCS file: /cvs/dist/rpms/gpm/devel/gpm-1.20.1-deadsocket.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gpm-1.20.1-deadsocket.patch	22 Jan 2007 12:21:26 -0000	1.1
+++ gpm-1.20.1-deadsocket.patch	23 Mar 2007 16:26:11 -0000	1.2
@@ -1,56 +1,17 @@
---- gpm-1.20.1/src/gpm.c.deadsocket	2007-01-22 12:53:19.000000000 +0100
-+++ gpm-1.20.1/src/gpm.c	2007-01-22 12:49:54.000000000 +0100
-@@ -544,7 +544,7 @@
+--- gpm-1.20.1/src/gpm.c.deadsocket	2007-03-23 16:59:42.000000000 +0100
++++ gpm-1.20.1/src/gpm.c	2007-03-23 17:10:10.000000000 +0100
+@@ -544,7 +544,14 @@
            * we can safely use micelist
            */
           close(micelist->dev.fd);
--         wait_text_console();
-+         wait_text_console(ctlfd);
++
++	 close(ctlfd);
++	 FD_CLR(ctlfd, &connSet);
+          wait_text_console();
++	 ctlfd = listen_for_clients();
++	 FD_SET(ctlfd, &connSet);
++	 maxfd = max(maxfd, ctlfd);
++
           /* reopen, reinit (the function is only used if we have one mouse device) */
           if ((micelist->dev.fd = open(micelist->device, O_RDWR)) < 0)
              gpm_report(GPM_PR_OOPS, GPM_MESS_OPEN, micelist->device);
---- gpm-1.20.1/src/console.c.deadsocket	2007-01-22 00:50:25.000000000 +0100
-+++ gpm-1.20.1/src/console.c	2007-01-22 13:08:18.000000000 +0100
-@@ -101,7 +101,7 @@
- }
- 
- /*-------------------------------------------------------------------*/
--void wait_text_console(void)
-+void wait_text_console(int ctlfd)
- {
-    struct timeval now;
-    int usecs;
-@@ -113,7 +113,21 @@
-           usecs -= 1000000;
-       usecs += 1000000 - now.tv_usec;
- 
--      usleep(usecs);
-+      now.tv_sec = 0;
-+      now.tv_usec = usecs;
-+
-+      /* check for pending connections and reject them */
-+      fd_set fds;
-+      FD_ZERO(&fds);
-+      FD_SET(ctlfd, &fds);
-+
-+      select(ctlfd + 1, &fds, 0, 0, &now);
-+
-+      if (FD_ISSET(ctlfd, &fds) && !is_text_console()) {
-+	 int fd = accept(ctlfd, 0, 0);
-+	 if (fd >= 0)
-+	    close(fd);
-+      }
-    } while (!is_text_console());
- }
- 
---- gpm-1.20.1/src/headers/console.h.deadsocket	2007-01-22 12:53:27.000000000 +0100
-+++ gpm-1.20.1/src/headers/console.h	2007-01-22 12:51:49.000000000 +0100
-@@ -33,7 +33,7 @@
- char  *get_console_name();
- char  *compose_vc_name(int vc);
- int   is_text_console(void);
--void  wait_text_console(void);
-+void  wait_text_console(int ctlfd);
- void  refresh_console_size(void);
- int   is_console_owner(int vc, uid_t uid);
- int   get_console_state(unsigned char *shift_state);


Index: gpm.spec
===================================================================
RCS file: /cvs/dist/rpms/gpm/devel/gpm.spec,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- gpm.spec	22 Jan 2007 13:49:00 -0000	1.49
+++ gpm.spec	23 Mar 2007 16:26:11 -0000	1.50
@@ -1,7 +1,7 @@
 Summary: A mouse server for the Linux console.
 Name: gpm
 Version: 1.20.1
-Release: 80%{?dist}
+Release: 81%{?dist}
 License: GPL
 Group: System Environment/Daemons
 Source: http://ftp.linux.it/pub/People/rubini/gpm/%{name}-%{version}.tar.gz
@@ -70,6 +70,7 @@
 %patch24 -p1 -b .deadsocket
 
 %build
+rm -f configure
 autoconf
 CFLAGS="-D_GNU_SOURCE $RPM_OPT_FLAGS" \
     lispdir=%{buildroot}%{_datadir}/emacs/site-lisp \
@@ -185,6 +186,10 @@
 %{_libdir}/libgpm.so
 
 %changelog
+* Fri Mar 23 2007 Tomas Janousek <tjanouse at redhat.com> - 1.20.1-81
+- the patch for #168076 caused a strange behaviour with ncurses, fixed it
+  differently
+
 * Mon Jan 22 2007 Tomas Janousek <tjanouse at redhat.com> - 1.20.1-80
 - forgot to add the patch for #168076
 




More information about the fedora-cvs-commits mailing list