pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/screen



Module Name:    pkgsrc
Committed By:   christos
Date:           Mon Jan  3 21:21:12 UTC 2022

Modified Files:
        pkgsrc/misc/screen: Makefile distinfo
        pkgsrc/misc/screen/patches: patch-tty.sh

Log Message:
Fix HUP-on-master close issue


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 pkgsrc/misc/screen/Makefile
cvs rdiff -u -r1.61 -r1.62 pkgsrc/misc/screen/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/misc/screen/patches/patch-tty.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/screen/Makefile
diff -u pkgsrc/misc/screen/Makefile:1.120 pkgsrc/misc/screen/Makefile:1.121
--- pkgsrc/misc/screen/Makefile:1.120   Tue Sep 28 08:51:06 2021
+++ pkgsrc/misc/screen/Makefile Mon Jan  3 16:21:12 2022
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.120 2021/09/28 12:51:06 jperkin Exp $
+# $NetBSD: Makefile,v 1.121 2022/01/03 21:21:12 christos Exp $
 
 DISTNAME=      screen-4.8.0
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    misc shells
 MASTER_SITES=  ${MASTER_SITE_GNU:=screen/}
 

Index: pkgsrc/misc/screen/distinfo
diff -u pkgsrc/misc/screen/distinfo:1.61 pkgsrc/misc/screen/distinfo:1.62
--- pkgsrc/misc/screen/distinfo:1.61    Tue Oct 26 06:59:32 2021
+++ pkgsrc/misc/screen/distinfo Mon Jan  3 16:21:12 2022
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.61 2021/10/26 10:59:32 nia Exp $
+$NetBSD: distinfo,v 1.62 2022/01/03 21:21:12 christos Exp $
 
 BLAKE2s (screen-4.8.0.tar.gz) = 51169142215c9f8b64da633a6d77db24894d7f2f95636532344efc79985898d3
 SHA512 (screen-4.8.0.tar.gz) = 770ebaf6ee9be711bcb8a6104b3294f2bf4523dae6683fdc5eac4b3aff7e511be2d922b6b2ad28ec241113c2e4fe0d80f9a482ae1658adc19c8c3a3680caa25c
@@ -19,5 +19,5 @@ SHA1 (patch-display.h) = 922ebe152d8c09f
 SHA1 (patch-encoding.c) = f426f0118a76106f8063c8d0c0f36b4e4ad7ae0b
 SHA1 (patch-screen.c) = de5d8468100ab88cbdb842e21b04b00221e798b8
 SHA1 (patch-socket.c) = ef7d3cb14f0199383c0e750af48f19537eb0b36d
-SHA1 (patch-tty.sh) = 711e10879250de4b0e04bc2ec00472edeaf6aada
+SHA1 (patch-tty.sh) = 6a818b7a4d70e55878ee69605e53300eabcb525f
 SHA1 (patch-window.h) = 84dc5a2c24ff77147b416c05f897536c0cfddf31

Index: pkgsrc/misc/screen/patches/patch-tty.sh
diff -u pkgsrc/misc/screen/patches/patch-tty.sh:1.5 pkgsrc/misc/screen/patches/patch-tty.sh:1.6
--- pkgsrc/misc/screen/patches/patch-tty.sh:1.5 Fri Feb  7 07:19:00 2020
+++ pkgsrc/misc/screen/patches/patch-tty.sh     Mon Jan  3 16:21:12 2022
@@ -1,13 +1,30 @@
-$NetBSD: patch-tty.sh,v 1.5 2020/02/07 12:19:00 ryoon Exp $
+$NetBSD: patch-tty.sh,v 1.6 2022/01/03 21:21:12 christos Exp $
 
 Change condition for using TIOCSCTTY.
 
 NetBSD on the netbsd-5 branch insists on a non-NULL second argument
 to the realpath() function.  Make it so.
 
---- tty.sh.orig        2020-02-05 20:09:38.000000000 +0000
-+++ tty.sh
-@@ -784,7 +784,9 @@ int fgtty(int fd)
+On BSD's we don't want to set CLOCAL because it prevents sending SIGHUP
+on master pty close.
+
+--- tty.sh.orig        2020-02-05 15:09:38.000000000 -0500
++++ tty.sh     2022-01-03 16:10:52.529555957 -0500
+@@ -267,7 +267,13 @@
+ 
+ IF{CS8}       m->tio.c_cflag |= CS8;
+ IF{CREAD}     m->tio.c_cflag |= CREAD;
++#ifndef BSD
++/*
++ * On BSDs definining CLOCAL disables SIGHUP on master close
++ * and we don't want that.
++ */
+ IF{CLOCAL}    m->tio.c_cflag |= CLOCAL;
++#endif
+ 
+ IF{ECHOCTL}   m->tio.c_lflag |= ECHOCTL;
+ IF{ECHOKE}    m->tio.c_lflag |= ECHOKE;
+@@ -784,7 +790,9 @@
    /*
     * Under BSD we have to set the controlling terminal again explicitly.
     */
@@ -18,7 +35,7 @@ to the realpath() function.  Make it so.
    ioctl(fd, TIOCSCTTY, (char *)0);
  # endif
  
-@@ -1485,8 +1487,10 @@ int CheckTtyname (char *tty)
+@@ -1485,8 +1493,10 @@
    char realbuf[PATH_MAX];
    const char *real;
    int rc;



Home | Main Index | Thread Index | Old Index