aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>2010-01-16 00:37:12 +0800
committergj <gj@FreeBSD.org>2010-01-16 00:37:12 +0800
commit5c2a115d7dcbe79affd8dc96204d5a8aa68a9c39 (patch)
tree3360209b2cd518553c9de5ea78f396c9fc48e449 /x11
parent7f3debf23ab496772245b6a7cd8f9149bae66a4c (diff)
downloadfreebsd-ports-gnome-5c2a115d7dcbe79affd8dc96204d5a8aa68a9c39.tar.gz
freebsd-ports-gnome-5c2a115d7dcbe79affd8dc96204d5a8aa68a9c39.tar.zst
freebsd-ports-gnome-5c2a115d7dcbe79affd8dc96204d5a8aa68a9c39.zip
Add patch-src-logging.c to fix the "can't parse pts/xx" error.
Bump PORTREVISION.
Diffstat (limited to 'x11')
-rw-r--r--x11/mrxvt/Makefile2
-rw-r--r--x11/mrxvt/files/patch-src-logging.c25
2 files changed, 26 insertions, 1 deletions
diff --git a/x11/mrxvt/Makefile b/x11/mrxvt/Makefile
index 9ea0d407a3cd..271d48938842 100644
--- a/x11/mrxvt/Makefile
+++ b/x11/mrxvt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mrxvt
PORTVERSION= 0.4.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11
MASTER_SITES= SF/materm/${PORTNAME}%20source/${PORTVERSION}
EXTRACT_SUFX= .tgz
diff --git a/x11/mrxvt/files/patch-src-logging.c b/x11/mrxvt/files/patch-src-logging.c
new file mode 100644
index 000000000000..281cfc5f6478
--- /dev/null
+++ b/x11/mrxvt/files/patch-src-logging.c
@@ -0,0 +1,25 @@
+--- src/logging.c.orig 2010-01-15 17:27:05.000000000 +0100
++++ src/logging.c 2010-01-15 17:29:39.000000000 +0100
+@@ -114,14 +114,22 @@
+ if (!STRNCMP(pty, "/dev/", 5))
+ pty += 5; /* skip /dev/ prefix */
+
++#ifdef PTYS_ARE_OPENPTY
++ if (!STRNCMP(pty, "pts", 3) || !STRNCMP(pty, "tty", 3)) {
++#else
+ if (!STRNCMP(pty, "pty", 3) || !STRNCMP(pty, "tty", 3)) {
++#endif
+ STRNCPY(ut_id, (pty + 3), sizeof(ut_id));
+ }
+ #ifdef HAVE_UTMP_PID
+ else if (sscanf(pty, "pts/%d", &i) == 1)
+ sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */
+ #endif
++#ifdef PTYS_ARE_OPENPTY
++ else if (!STRNCMP(pty, "pts", 3) || !STRNCMP(pty, "tty", 3)) {
++#else
+ else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) {
++#endif
+ rxvt_print_error("can't parse tty name \"%s\"", pty);
+ return;
+ }