From nobody Sun Aug 20 03:22:46 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RT1Bv1kN6z4qcBx; Sun, 20 Aug 2023 03:22:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RT1Bv0yNVz4Lvy; Sun, 20 Aug 2023 03:22:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692501767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eEcmCCIyvMfK8CY2a3EnZpwqW6QCIMWxaQ6ZVp/hbjk=; b=xMGMqUl0yFMZJhT4OCgkg5Cu59dcWcRzTiGHmsNoQPi9DHTjJD9GGdCzAgA8nA/DJULUvp A0+Hx1IBru6rwjVlTCdaZge5J95kUCG7dSeqChx/0IQqBD4toulvXhxUALPUtmsl5Vp/Eu inJ5JQ/LwXnnONX8jelEVA93BTphJwTCvWj15ndFQrigJT/2lSeBYezOXJwS8G9CpcmwPy 00cN7DwFm4+fYKQGmZ8kQVYaC1UwhsSyXUhGqr9DRH684/JnmwV/hQUFUF11TEd3SFBCA/ L7BHG9L3ZLqxbWk4EnEWVvCZWlfMMLLmyXdGFrFU9QLjgxjZ3cdbHtEt9Yw9dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692501767; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eEcmCCIyvMfK8CY2a3EnZpwqW6QCIMWxaQ6ZVp/hbjk=; b=d5MausF7bBjfbQFHR/rjm4EZBc7Zof26ZYGBV0OZ/Xdcgmhk9EgH2+xsy/Sl4hJlsecrcy ZwCs+5x2e1yW92sBoBOqgfc8xdglkZ4jGF75yYTs2Kt5Wk9yMEOqth8v11dFXM80Q136qE SOdBpk9mmgKAOgMgKe3+CxnZAgA/5idCPjHz6dwlTwIXo9bioaYY7h+/lkNl1f2AGj0jjh cLaEg5uI2G17vFeYSvo05kl799fDVErFJrJ/alWe/RHHc6Qqbz/Cz/Aa5L/s/3dGzaeMX8 83Fea7uxywQOdTmWtCrSeDOG/8v1Vv9yowghnVjX3GVzlDvVJmMOIwO2sH5Q6g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692501767; a=rsa-sha256; cv=none; b=YQz4Gdz80efIhIfA4J7FUgrn3YKDA1teLyTyryS34sWmJl6A+KuqIsly7Pt5IKJUq14aei olw+voAjj+cXV/A3fU69D4aclYpZoaOIpJ6VdM0kWhkoZbH8sLSh6ue0Qja14/aKa7udVN ZwCiEmWRCxKPWuN5r7W43b7jMBV3b7TgEFgDCVnlYN0aFKcvWrSC8n3b60mwxJMuFkxUNL bJ5MX7SOy8hTV+RKcaO4Q0qfoJJfGtLNS7GjhasbtaBpfapW6m5LqmuRPHexT+4AYEDF3E eVUEsKgK0lBjcPIA5J9f+9tAnwXIt+fsaFh7JCZReY9rnbMOhsoJm+C2zwSVAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RT1Bv03R3z8PN; Sun, 20 Aug 2023 03:22:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37K3MkrJ032818; Sun, 20 Aug 2023 03:22:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37K3MkcJ032815; Sun, 20 Aug 2023 03:22:46 GMT (envelope-from git) Date: Sun, 20 Aug 2023 03:22:46 GMT Message-Id: <202308200322.37K3MkcJ032815@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: bfae663ae1c7 - main - sysutils/screen: Update 4.9.0 --> 4.9.1 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bfae663ae1c723300be5f4a5da4bf609ca0c2ab2 Auto-Submitted: auto-generated The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=bfae663ae1c723300be5f4a5da4bf609ca0c2ab2 commit bfae663ae1c723300be5f4a5da4bf609ca0c2ab2 Author: Cy Schubert AuthorDate: 2023-08-20 03:12:53 +0000 Commit: Cy Schubert CommitDate: 2023-08-20 03:22:09 +0000 sysutils/screen: Update 4.9.0 --> 4.9.1 Version 4.9.1 (20/08/2023): * Support stop/parity bits on serial port (#23952) * Add needed system headers in checks and return values for implicit function declarations * Fixes: - Avoid zombies after shell exit (#25089) - Missed signal sending permission check on failed query messages (CVE-2023-24626) - manpage fixes - source code fixes during cleanup - UTF-8 encoding can emit invalid UTF-8 sequences for out of range unicode values (#62097) --- sysutils/screen/Makefile | 3 +- sysutils/screen/distinfo | 6 ++-- sysutils/screen/files/patch-configure.ac | 39 ++++++++++++---------- sysutils/screen/files/patch-utmp.c | 55 ++++++++++++++++++++++++++++---- sysutils/screen/pkg-plist | 2 +- 5 files changed, 76 insertions(+), 29 deletions(-) diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile index a75a39f3146b..0ca99d2f6c9a 100644 --- a/sysutils/screen/Makefile +++ b/sysutils/screen/Makefile @@ -1,6 +1,5 @@ PORTNAME= screen -PORTVERSION= 4.9.0 -PORTREVISION= 7 +PORTVERSION= 4.9.1 CATEGORIES= sysutils MASTER_SITES= GNU \ ftp://ftp.gnu.org/gnu/screen/ \ diff --git a/sysutils/screen/distinfo b/sysutils/screen/distinfo index 203a25ac276f..21d74bb6e156 100644 --- a/sysutils/screen/distinfo +++ b/sysutils/screen/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1647532509 -SHA256 (screen-4.9.0.tar.gz) = f9335281bb4d1538ed078df78a20c2f39d3af9a4e91c57d084271e0289c730f4 -SIZE (screen-4.9.0.tar.gz) = 798229 +TIMESTAMP = 1692454303 +SHA256 (screen-4.9.1.tar.gz) = 26cef3e3c42571c0d484ad6faf110c5c15091fbf872b06fa7aa4766c7405ac69 +SIZE (screen-4.9.1.tar.gz) = 1040785 diff --git a/sysutils/screen/files/patch-configure.ac b/sysutils/screen/files/patch-configure.ac index cee1a130731e..77608dbebb05 100644 --- a/sysutils/screen/files/patch-configure.ac +++ b/sysutils/screen/files/patch-configure.ac @@ -1,38 +1,43 @@ ---- configure.ac.orig 2022-01-28 06:06:02.670611602 -0800 -+++ configure.ac 2022-03-17 10:09:55.599298000 -0700 -@@ -811,11 +811,11 @@ +--- configure.ac.orig 2023-08-15 17:29:26.000000000 -0700 ++++ configure.ac 2023-08-19 07:32:42.246552000 -0700 +@@ -669,7 +669,7 @@ + tgetent((char *)0, (char *)0); + ],, + olibs="$LIBS" +-LIBS="-lcurses $olibs" ++LIBS="-lcurses $olibs"; CC="$CC -I/usr/local/include" + AC_CHECKING(libcurses) + AC_TRY_LINK([ + #include +@@ -900,11 +900,11 @@ dnl dnl **** utmp handling **** dnl -AC_CHECKING(getutent) +AC_CHECKING(getutxent) AC_TRY_LINK([ - #include /* to get time_t on SCO */ - #include + #include /* to get time_t on SCO */ + #include -#if defined(SVR4) && !defined(DGUX) -+#if (defined(SVR4) && !defined(DGUX)) || defined(__FreeBSD__) - #include ++#if defined(SVR4) && !defined(DGUX) || defined(__FreeBSD__) + #include #define utmp utmpx #else -@@ -825,14 +825,14 @@ - #define pututline _pututline - #endif - ], --[int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();], AC_DEFINE(GETUTENT), -+[int x = DEAD_PROCESS; pututxline((struct utmp *)0); getutxent();], AC_DEFINE(GETUTENT), +@@ -917,11 +917,11 @@ + [int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();], AC_DEFINE(GETUTENT), olibs="$LIBS" LIBS="$LIBS -lgen" -AC_CHECKING(getutent with -lgen) +AC_CHECKING(getutxent with -lgen) AC_TRY_LINK([ - #include - #include + #include + #include -#if defined(SVR4) && !defined(DGUX) +#if defined(SVR4) && !defined(DGUX) || defined(__FreeBSD__) - #include + #include #define utmp utmpx #else -@@ -842,13 +842,13 @@ +@@ -931,13 +931,13 @@ #define pututline _pututline #endif ], diff --git a/sysutils/screen/files/patch-utmp.c b/sysutils/screen/files/patch-utmp.c index 008106464429..0573d96ceab5 100644 --- a/sysutils/screen/files/patch-utmp.c +++ b/sysutils/screen/files/patch-utmp.c @@ -1,5 +1,5 @@ ---- utmp.c.orig 2017-01-17 11:28:29.397404660 -0800 -+++ utmp.c 2017-02-10 16:48:34.902236000 -0800 +--- utmp.c.orig 2023-08-15 17:29:26.000000000 -0700 ++++ utmp.c 2023-08-19 08:57:48.376313000 -0700 @@ -26,6 +26,7 @@ **************************************************************** */ @@ -8,6 +8,30 @@ #include #include #include +@@ -89,11 +90,13 @@ + static int pututslot __P((slot_t, struct utmp *, char *, struct win *)); + static struct utmp *getutslot __P((slot_t)); + #ifndef GETUTENT ++#if 0 + static struct utmp *getutent __P((void)); + static void endutent __P((void)); + static int initutmp __P((void)); + static void setutent __P((void)); + #endif ++#endif + #if defined(linux) && defined(GETUTENT) + static struct utmp *xpututline __P((struct utmp *utmp)); + # define pututline xpututline +@@ -102,9 +105,7 @@ + + static int utmpok; + static char UtmpName[] = UTMPFILE; +-#ifndef UTMP_HELPER + static int utmpfd = -1; +-#endif + + + # if defined(GETUTENT) && (!defined(SVR4) || defined(__hpux)) && ! defined(__CYGWIN__) @@ -409,12 +410,6 @@ register slot_t slot; struct utmp u; @@ -76,7 +100,7 @@ { Msg(errno,"Could not write %s", UtmpName); UT_CLOSE; -@@ -598,7 +555,7 @@ +@@ -607,7 +564,7 @@ struct utmp *u; { u->ut_type = DEAD_PROCESS; @@ -85,7 +109,7 @@ u->ut_exit.e_termination = 0; u->ut_exit.e_exit = 0; #endif -@@ -631,7 +588,11 @@ +@@ -640,7 +597,11 @@ /* must use temp variable because of NetBSD/sparc64, where * ut_xtime is long(64) but time_t is int(32) */ (void)time(&now); @@ -98,9 +122,28 @@ } static slot_t -@@ -743,7 +704,11 @@ +@@ -670,6 +631,7 @@ + return (utmpfd = open(UtmpName, O_RDWR)) >= 0; + } + ++#if 0 + static void + setutent() + { +@@ -694,6 +656,7 @@ + return 0; + return &uent; + } ++#endif + + static struct utmp * + getutslot(slot) +@@ -750,9 +713,13 @@ + { + time_t now; strncpy(u->ut_line, line, sizeof(u->ut_line)); - strncpy(u->ut_name, user, sizeof(u->ut_name)); +- strncpy(u->ut_name, user, sizeof(u->ut_name)); ++ strncpy(u->ut_user, user, sizeof(u->ut_user)); (void)time(&now); - u->ut_time = now; +#if defined(__FreeBSD_version) && __FreeBSD_version < 900000 diff --git a/sysutils/screen/pkg-plist b/sysutils/screen/pkg-plist index e03f87d0ccc1..943bab573f47 100644 --- a/sysutils/screen/pkg-plist +++ b/sysutils/screen/pkg-plist @@ -1,5 +1,5 @@ bin/screen -%%MULTISUID%%bin/screen-4.9.0 +%%MULTISUID%%bin/screen-4.9.1 man/man1/screen.1.gz %%DATADIR%%/utf8encodings/01 %%DATADIR%%/utf8encodings/02