From owner-svn-ports-all@freebsd.org Sun Nov 29 02:16:29 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F87B4730EB; Sun, 29 Nov 2020 02:16:29 +0000 (UTC) (envelope-from pkubaj@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CkBn92jTQz3L1L; Sun, 29 Nov 2020 02:16:29 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4FBB11A92; Sun, 29 Nov 2020 02:16:29 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AT2GT0q031006; Sun, 29 Nov 2020 02:16:29 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0AT2GTek031005; Sun, 29 Nov 2020 02:16:29 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202011290216.0AT2GTek031005@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sun, 29 Nov 2020 02:16:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r556545 - head/security/openssh-portable X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/security/openssh-portable X-SVN-Commit-Revision: 556545 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Nov 2020 02:16:29 -0000 Author: pkubaj Date: Sun Nov 29 02:16:28 2020 New Revision: 556545 URL: https://svnweb.freebsd.org/changeset/ports/556545 Log: security/openssh-portable: fix build on GCC architectures loginrec.c:763:2: error: 'strncpy' output may be truncated copying 32 bytes from a string of length 511 [-Werror=stringop-truncation] strncpy(utx->ut_user, li->username, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MIN_SIZEOF(utx->ut_user, li->username)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loginrec.c: In function 'record_failed_login': loginrec.c:1687:2: error: 'strncpy' specified bound 32 equals destination size [-Werror=stringop-truncation] strncpy(ut.ut_user, username, sizeof(ut.ut_user)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ loginrec.c:1696:2: error: 'strncpy' specified bound 256 equals destination size [-Werror=stringop-truncation] strncpy(ut.ut_host, hostname, sizeof(ut.ut_host)); Modified: head/security/openssh-portable/Makefile Modified: head/security/openssh-portable/Makefile ============================================================================== --- head/security/openssh-portable/Makefile Sun Nov 29 01:00:19 2020 (r556544) +++ head/security/openssh-portable/Makefile Sun Nov 29 02:16:28 2020 (r556545) @@ -19,7 +19,8 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-se CONFLICTS?= openssh-3.* ssh-1.* ssh2-3.* openssh-portable-devel-* -USES= alias autoreconf localbase ncurses pkgconfig ssl +USES= alias autoreconf compiler:c11 localbase ncurses \ + pkgconfig ssl GNU_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} \ --with-ssl-engine \ @@ -185,6 +186,9 @@ CONFIGURE_ARGS+= --with-xauth=${LOCALBASE}/bin/xauth RC_SCRIPT_NAME= openssh VERSION_ADDENDUM_DEFAULT?= ${OPSYS}-${PKGNAME} + +CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}} +CFLAGS_gcc= -Wno-stringop-truncation post-patch: @${REINPLACE_CMD} \