diff options
author | ed <ed@FreeBSD.org> | 2009-03-07 04:13:40 +0800 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-03-07 04:13:40 +0800 |
commit | 0e6c0e1c89cac2f87689ea0e1211acef0ca462be (patch) | |
tree | e9ccc55ce509b9a4966a4062fbe8d67261e471ce /x11 | |
parent | c642d375ec875518186ae07a2f0b5e5c4f4258e7 (diff) | |
download | freebsd-ports-gnome-0e6c0e1c89cac2f87689ea0e1211acef0ca462be.tar.gz freebsd-ports-gnome-0e6c0e1c89cac2f87689ea0e1211acef0ca462be.tar.zst freebsd-ports-gnome-0e6c0e1c89cac2f87689ea0e1211acef0ca462be.zip |
Silence error generated by rxvt-devel, caused by pts(4) naming scheme.
In FreeBSD -CURRENT, pseudo-terminals are named /dev/pts/%u. This
confuses rxvt-devel. Change the source to allow this naming scheme as
well. I still have to write a similar patch for rxvt, because this
version does not apply.
Approved by: port maintainer
Diffstat (limited to 'x11')
-rw-r--r-- | x11/rxvt-devel/Makefile | 2 | ||||
-rw-r--r-- | x11/rxvt-devel/files/patch-src::logging.c | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/x11/rxvt-devel/Makefile b/x11/rxvt-devel/Makefile index 8e34d7fb40e5..bbf9baf253ce 100644 --- a/x11/rxvt-devel/Makefile +++ b/x11/rxvt-devel/Makefile @@ -9,7 +9,7 @@ PORTNAME= rxvt PORTVERSION= 2.7.10 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES+= x11 MASTER_SITES= SF PKGNAMESUFFIX= -devel diff --git a/x11/rxvt-devel/files/patch-src::logging.c b/x11/rxvt-devel/files/patch-src::logging.c new file mode 100644 index 000000000000..20f9e436a24a --- /dev/null +++ b/x11/rxvt-devel/files/patch-src::logging.c @@ -0,0 +1,12 @@ +--- src/logging.c ++++ src/logging.c +@@ -82,7 +82,8 @@ + else if (sscanf(pty, "pts/%d", &i) == 1) + sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */ + #endif +- else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) { ++ else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3) && ++ STRNCMP(pty, "pts/", 4)) { + rxvt_print_error("can't parse tty name \"%s\"", pty); + return; + } |