pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xmindpath Added three patches to make the package ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3f5899dca8c
branches:  trunk
changeset: 533809:d3f5899dca8c
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 01 11:02:44 2007 +0000

description:
Added three patches to make the package work on Solaris.

diffstat:

 x11/xmindpath/distinfo         |   5 ++-
 x11/xmindpath/patches/patch-ab |  58 ++++++++++++++++++++++++++++++++++++++++++
 x11/xmindpath/patches/patch-ac |  44 +++++++++++++++++++++++++++++++
 x11/xmindpath/patches/patch-ad |  12 ++++++++
 4 files changed, 118 insertions(+), 1 deletions(-)

diffs (140 lines):

diff -r 1f3b7951dbe4 -r d3f5899dca8c x11/xmindpath/distinfo
--- a/x11/xmindpath/distinfo    Mon Oct 01 10:08:20 2007 +0000
+++ b/x11/xmindpath/distinfo    Mon Oct 01 11:02:44 2007 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.5 2005/02/23 17:36:24 wiz Exp $
+$NetBSD: distinfo,v 1.6 2007/10/01 11:02:44 rillig Exp $
 
 SHA1 (magicpoint-1.09a.tar.gz) = 2903f7c42a30d558677fc1a93607fe7fc8c1fc0f
 RMD160 (magicpoint-1.09a.tar.gz) = 2ee96eed9c9e31d6c599447d421ae319483c3617
 Size (magicpoint-1.09a.tar.gz) = 816234 bytes
 SHA1 (patch-aa) = 8566a9bbab0538509ea5a1b383d357b403f0860c
+SHA1 (patch-ab) = 7d86596abcd15ce1fea3a7b71ee9254facbd371e
+SHA1 (patch-ac) = ac6fadd92517a43d7f58e3c8ab888724a440b156
+SHA1 (patch-ad) = 507022a52f6f3415678d56929d985f4f07fb9569
diff -r 1f3b7951dbe4 -r d3f5899dca8c x11/xmindpath/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xmindpath/patches/patch-ab    Mon Oct 01 11:02:44 2007 +0000
@@ -0,0 +1,58 @@
+$NetBSD: patch-ab,v 1.3 2007/10/01 11:02:45 rillig Exp $
+
+--- main.c.orig        1998-10-01 01:58:17.000000000 +0200
++++ main.c     2007-10-01 12:55:46.375715000 +0200
+@@ -33,16 +33,20 @@
+  */
+ 
+ #include <sys/time.h>
++#include <err.h>
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <fcntl.h>
+ #include <termios.h>
+ #include <signal.h>
++#include <string.h>
+ #include <X11/X.h>
+ #include <X11/extensions/XTest.h>
+ #include <X11/keysym.h>
+ 
++#include "uucplock.h"
++
+ #ifdef X_DISPLAY_MISSING
+ # error this program cannot be compiled without X11.
+ #endif
+@@ -51,6 +55,13 @@
+ # define REMOTE_DEVICE        "/dev/tty02"    /*biased to VAIO505 :-P*/
+ #endif
+ 
++#ifndef __P
++# define __P(X) X
++#endif
++#ifndef MDMBUF
++# define MDMBUF 0
++#endif
++
+ static char *remote = REMOTE_DEVICE;
+ static int debug = 0;
+ #define dprintf(x)    { if (debug) fprintf x; }
+@@ -144,8 +155,18 @@ main(argc, argv)
+       }
+       tcgetattr(fd, &old);
+       raw = old;
++#if defined(__sun)
++      raw.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
++      raw.c_oflag &= ~OPOST;
++      raw.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
++      raw.c_cflag &= ~(CSIZE|PARENB);
++      raw.c_cflag |= CS8;
++      cfsetispeed(&raw, B1200);
++      cfsetospeed(&raw, B1200);
++#else
+       cfmakeraw(&raw);
+       cfsetspeed(&raw, B1200);
++#endif
+       raw.c_cflag &= ~(CSIZE|PARENB|CSTOPB|MDMBUF);
+       raw.c_cflag |= CS8|CREAD|CLOCAL;
+       tcsetattr(fd, TCSANOW, &raw);
diff -r 1f3b7951dbe4 -r d3f5899dca8c x11/xmindpath/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xmindpath/patches/patch-ac    Mon Oct 01 11:02:44 2007 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-ac,v 1.1 2007/10/01 11:02:45 rillig Exp $
+
+--- uucplock.c.orig    1999-12-02 03:58:31.000000000 +0100
++++ uucplock.c 2007-10-01 12:47:24.989964000 +0200
+@@ -35,9 +35,13 @@
+ static char sccsid[] = "@(#)uucplock.c        5.5 (Berkeley) 6/1/90";
+ #endif /* not lint */
+ 
+-#include <sys/file.h>
+-#include <sys/dir.h>
++#include <dirent.h>
+ #include <errno.h>
++#include <fcntl.h>
++#include <signal.h>
++#include <stdio.h>
++#include <string.h>
++#include <unistd.h>
+ 
+ #include "pathnames.h"
+ 
+@@ -47,13 +51,12 @@ static char sccsid[] = "@(#)uucplock.c     5
+  *      -1 - failure
+  */
+ 
++int
+ uu_lock(ttyname)
+       char *ttyname;
+ {
+-      extern int errno;
+       int fd, pid;
+       char tbuf[sizeof(_PATH_LOCKDIRNAME) + MAXNAMLEN];
+-      off_t lseek();
+ 
+       (void)snprintf(tbuf, sizeof(tbuf), _PATH_LOCKDIRNAME, ttyname);
+       fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0664);
+@@ -81,7 +84,7 @@ uu_lock(ttyname)
+                * The process that locked the file isn't running, so
+                * we'll lock it ourselves
+                */
+-              if (lseek(fd, 0L, L_SET) < 0) {
++              if (lseek(fd, 0L, SEEK_SET) < 0) {
+                       (void)close(fd);
+                       perror("lock lseek");
+                       return(-1);
diff -r 1f3b7951dbe4 -r d3f5899dca8c x11/xmindpath/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/xmindpath/patches/patch-ad    Mon Oct 01 11:02:44 2007 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.1 2007/10/01 11:02:45 rillig Exp $
+
+--- uucplock.h.orig    2007-10-01 12:47:25.072297000 +0200
++++ uucplock.h 2007-10-01 12:47:25.072925000 +0200
+@@ -0,0 +1,7 @@
++#ifndef UUCPLOCK_H
++#define UUCPLOCK_H
++
++extern int uu_lock(char *);
++extern int uu_unlock(char *);
++
++#endif



Home | Main Index | Thread Index | Old Index