diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-03-07 04:13:40 +0800 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-03-07 04:13:40 +0800 |
commit | 107ecb90a61a11b93b4c778dab097bb65c500165 (patch) | |
tree | 11e6b6e129f74609a32db56023af6b7fdd4a6a54 /x11 | |
parent | 12f0981a82f5fdce256a04b2dc660f78ba6fd5a9 (diff) | |
download | freebsd-ports-gnome-107ecb90a61a11b93b4c778dab097bb65c500165.tar.gz freebsd-ports-gnome-107ecb90a61a11b93b4c778dab097bb65c500165.tar.zst freebsd-ports-gnome-107ecb90a61a11b93b4c778dab097bb65c500165.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; + } |