Your message dated Mon, 02 Jun 2008 11:32:03 +0000 with message-id <E1K38Gh-0005wi-SS@ries.debian.org> and subject line Bug#471494: fixed in xfree86-driver-synaptics 0.14.7~git20070706-2.1 has caused the Debian Bug report #471494, regarding xserver-xorg-input-synaptics: uses obsolete libcwrapper to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 471494: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471494 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: xserver-xorg-input-synaptics: uses obsolete libcwrapper
- From: Julien Cristau <jcristau@debian.org>
- Date: Tue, 18 Mar 2008 15:51:05 +0100
- Message-id: <20080318145103.GA1412@patate.is-a-geek.org>
Package: xserver-xorg-input-synaptics Version: 0.14.7~git20070706-2 Severity: important xf86-input-synaptics doesn't work against xserver 1.5, because the libc wrapper has been dropped. RH has a patch by Jarod Wilson <jwilson@redhat.com> at http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/synaptics/synaptics-0.14.6-delibcwrap.patch?rev=1.1 which I've ported to the current version in sid. Cheers, JulienPatch by Jarod Wilson <jwilson@redhat.com> Downloaded from http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/synaptics/synaptics-0.14.6-delibcwrap.patch?rev=1.1 --- xserver-xorg-input-synaptics.orig/synaptics.c +++ xserver-xorg-input-synaptics/synaptics.c @@ -70,7 +70,6 @@ #include <misc.h> #include <xf86.h> #define NEED_XF86_TYPES -#include <xf86_ansic.h> #include <xf86_OSproc.h> #include <xf86Xinput.h> #include "mipointer.h" @@ -236,14 +235,14 @@ return TRUE; /* Already allocated */ if (priv->shm_config) { - if ((shmid = xf86shmget(SHM_SYNAPTICS, 0, 0)) != -1) - xf86shmctl(shmid, XF86IPC_RMID, NULL); - if ((shmid = xf86shmget(SHM_SYNAPTICS, sizeof(SynapticsSHM), - 0777 | XF86IPC_CREAT)) == -1) { + if ((shmid = shmget(SHM_SYNAPTICS, 0, 0)) != -1) + shmctl(shmid, IPC_RMID, NULL); + if ((shmid = shmget(SHM_SYNAPTICS, sizeof(SynapticsSHM), + 0777 | IPC_CREAT)) == -1) { xf86Msg(X_ERROR, "%s error shmget\n", local->name); return FALSE; } - if ((priv->synpara = (SynapticsSHM*)xf86shmat(shmid, NULL, 0)) == NULL) { + if ((priv->synpara = (SynapticsSHM*)shmat(shmid, NULL, 0)) == NULL) { xf86Msg(X_ERROR, "%s error shmat\n", local->name); return FALSE; } @@ -269,8 +268,8 @@ return; if (priv->shm_config) { - if ((shmid = xf86shmget(SHM_SYNAPTICS, 0, 0)) != -1) - xf86shmctl(shmid, XF86IPC_RMID, NULL); + if ((shmid = shmget(SHM_SYNAPTICS, 0, 0)) != -1) + shmctl(shmid, IPC_RMID, NULL); } else { xfree(priv->synpara); } @@ -284,7 +283,7 @@ char *str_par; double value; str_par = xf86FindOptionValue(options, optname); - if ((!str_par) || (xf86sscanf(str_par, "%lf", &value) != 1)) + if ((!str_par) || (sscanf(str_par, "%lf", &value) != 1)) return default_value; return value; } @@ -491,8 +490,8 @@ priv->fifofd = -1; if (repeater) { /* create repeater fifo */ - if ((xf86mknod(repeater, 666, XF86_S_IFIFO) != 0) && - (xf86errno != xf86_EEXIST)) { + if ((mknod(repeater, 666, S_IFIFO) != 0) && + (errno != EEXIST)) { xf86Msg(X_ERROR, "%s can't create repeater fifo\n", local->name); } else { /* open the repeater fifo */ @@ -501,7 +500,7 @@ xf86Msg(X_ERROR, "%s repeater device open failed\n", local->name); } } - xf86free(repeater); + free(repeater); } if (!QueryHardware(local)) { @@ -697,7 +696,7 @@ static int move_distance(int dx, int dy) { - return xf86sqrt(SQR(dx) + SQR(dy)); + return sqrt((dx * dx) + (dy * dy)); } /* @@ -732,14 +731,14 @@ double xCenter = (priv->synpara->left_edge + priv->synpara->right_edge) / 2.0; double yCenter = (priv->synpara->top_edge + priv->synpara->bottom_edge) / 2.0; - return xf86atan2(-(y - yCenter), x - xCenter); + return atan2(-(y - yCenter), x - xCenter); } /* return angle difference */ static double diffa(double a1, double a2) { - double da = xf86fmod(a2 - a1, 2 * M_PI); + double da = fmod(a2 - a1, 2 * M_PI); if (da < 0) da += 2 * M_PI; if (da > M_PI) @@ -847,7 +846,7 @@ int c; while ((c = XisbRead(priv->comm.buffer)) >= 0) { unsigned char u = (unsigned char)c; - xf86write(priv->fifofd, &u, 1); + write(priv->fifofd, &u, 1); if (++count >= 3) break; } @@ -1405,10 +1404,10 @@ /* save the fraction, report the integer part */ tmpf = dx * speed + x_edge_speed * dtime + priv->frac_x; - priv->frac_x = xf86modf(tmpf, &integral); + priv->frac_x = modf(tmpf, &integral); dx = integral; tmpf = dy * speed + y_edge_speed * dtime + priv->frac_y; - priv->frac_y = xf86modf(tmpf, &integral); + priv->frac_y = modf(tmpf, &integral); dy = integral; } --- xserver-xorg-input-synaptics.orig/synaptics.h +++ xserver-xorg-input-synaptics/synaptics.h @@ -1,6 +1,18 @@ #ifndef _SYNAPTICS_H_ #define _SYNAPTICS_H_ +#include <errno.h> +#include <stdio.h> +#include <string.h> +#include <sys/ipc.h> +#include <sys/shm.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> +#include <math.h> +#include <stdlib.h> + #include <X11/Xdefs.h> /******************************************************************************
--- End Message ---
--- Begin Message ---
- To: 471494-close@bugs.debian.org
- Subject: Bug#471494: fixed in xfree86-driver-synaptics 0.14.7~git20070706-2.1
- From: Julien Cristau <jcristau@debian.org>
- Date: Mon, 02 Jun 2008 11:32:03 +0000
- Message-id: <E1K38Gh-0005wi-SS@ries.debian.org>
Source: xfree86-driver-synaptics Source-Version: 0.14.7~git20070706-2.1 We believe that the bug you reported is fixed in the latest version of xfree86-driver-synaptics, which is due to be installed in the Debian FTP archive: xfree86-driver-synaptics_0.14.7~git20070706-2.1.diff.gz to pool/main/x/xfree86-driver-synaptics/xfree86-driver-synaptics_0.14.7~git20070706-2.1.diff.gz xfree86-driver-synaptics_0.14.7~git20070706-2.1.dsc to pool/main/x/xfree86-driver-synaptics/xfree86-driver-synaptics_0.14.7~git20070706-2.1.dsc xfree86-driver-synaptics_0.14.7~git20070706-2.1_i386.deb to pool/main/x/xfree86-driver-synaptics/xfree86-driver-synaptics_0.14.7~git20070706-2.1_i386.deb xserver-xorg-input-synaptics_0.14.7~git20070706-2.1_i386.deb to pool/main/x/xfree86-driver-synaptics/xserver-xorg-input-synaptics_0.14.7~git20070706-2.1_i386.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 471494@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Julien Cristau <jcristau@debian.org> (supplier of updated xfree86-driver-synaptics package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Mon, 02 Jun 2008 12:21:39 +0200 Source: xfree86-driver-synaptics Binary: xfree86-driver-synaptics xserver-xorg-input-synaptics Architecture: source i386 Version: 0.14.7~git20070706-2.1 Distribution: unstable Urgency: low Maintainer: Debian X Strike Force <debian-x@lists.debian.org> Changed-By: Julien Cristau <jcristau@debian.org> Description: xfree86-driver-synaptics - dummy package to upgrade to X.Org new modular packages xserver-xorg-input-synaptics - Synaptics TouchPad driver for X.Org/XFree86 server Closes: 461551 471494 Changes: xfree86-driver-synaptics (0.14.7~git20070706-2.1) unstable; urgency=low . * Non-maintainer upload, with Mattia's agreement. * Add patch to fix the build with xserver 1.5, which removed the libc wrapper (closes: #471494). * Add armel and armeb to the Architecture field (closes: #461551). Checksums-Sha1: 269c8185bce8edd0e05b60bff196737626072c56 1670 xfree86-driver-synaptics_0.14.7~git20070706-2.1.dsc f352c73c63f0b1584ea58c3e52a8ee898bf2f88e 22965 xfree86-driver-synaptics_0.14.7~git20070706-2.1.diff.gz 766b075eadf4dda74ee62208eb79e862991ffc5b 4352 xfree86-driver-synaptics_0.14.7~git20070706-2.1_i386.deb 696dd71760c4269ac1381132c55e99e009d1b539 64280 xserver-xorg-input-synaptics_0.14.7~git20070706-2.1_i386.deb Checksums-Sha256: e708a44c381fb2b834d1db2772c4ac12d01b926e38e1f2e93a60ac6cbcefb74a 1670 xfree86-driver-synaptics_0.14.7~git20070706-2.1.dsc 2917984b8e1c67ff592178f80209e05f18a59395dfa1cfa3a40528fce6cf3a99 22965 xfree86-driver-synaptics_0.14.7~git20070706-2.1.diff.gz 70df49e6a854bf8326faad133400162b7397337ea311df4c9d9abefca448ab92 4352 xfree86-driver-synaptics_0.14.7~git20070706-2.1_i386.deb eb44ade89e71d30f926bc295c28733a7ca4ce5b46e1bcdc52d13c26fc7fba2c5 64280 xserver-xorg-input-synaptics_0.14.7~git20070706-2.1_i386.deb Files: 78576962bea7834f45c1da76fbd567fe 1670 x11 optional xfree86-driver-synaptics_0.14.7~git20070706-2.1.dsc a8fe6867b71acf32dea86b6989fe3c0a 22965 x11 optional xfree86-driver-synaptics_0.14.7~git20070706-2.1.diff.gz dcb839e249c13442c6b8e67e5adfedc6 4352 x11 optional xfree86-driver-synaptics_0.14.7~git20070706-2.1_i386.deb b3a031dd24e62ff9174c8fbda95dc9cc 64280 x11 optional xserver-xorg-input-synaptics_0.14.7~git20070706-2.1_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIQ9h2mEvTgKxfcAwRAkfRAKCiOMatGg/i0wgIaiIE/q0U2mDNhwCffW9Q bcs0wzRRs1aO1bfet6hgCk0= =C6g/ -----END PGP SIGNATURE-----
--- End Message ---