From nobody Fri Feb 10 04:49:44 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 4PCh9N4lmJz3nW4C; Fri, 10 Feb 2023 04:49:44 +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 4PCh9N49hHz4Dlt; Fri, 10 Feb 2023 04:49:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676004584; 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=nWyjVX9ORP5q5Is9pVbpeqH5QY4R1wVFj6eBaR2uYho=; b=c0p23wv+G+nmwvgs2AEJBRFBiqKsJav5J0chl8msPXFV9kq38AXbSpsiHYaBhr/MQhi8CS nSDpGtM994F0AEZcxnWV2TWHDbrV3YDB5Oi4285GkvqYIbV3GYwsnO7JGcysGRWMvnvCpL gk20ehIbnX8TdM8/oHux7WJe0mC4vAYISosevpcGzsaGE8dFa5FQr6QRXy9u1ay/yZvYZc AnE8ydzKwho4afcwvTSP1WOi7VJ6ZpQ4vDPbyeaNmmT5K13m5pNWGTjCPgpkDZ4eM3m9Eg c7aQFyMhGUsFU8+PUGE3qheQ3mtO8P93I+s/k7XfUsCqhLAjPBGcmd0nBXAanQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676004584; 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=nWyjVX9ORP5q5Is9pVbpeqH5QY4R1wVFj6eBaR2uYho=; b=SX/0R59+cacSUEHacjfOLKBQ9BFv1ia571kieJQ2UDMZEcftk5NufBvGCZmXu4+5GrqmR7 Rku/9NdNiART1hGJeYvFAnsUXAkMJJNug3biThcKNqmjX6CV8NOFnkEyWNob1vMryiPgWS g6aUxeBSfRyqpPK+t8HOE2w243XeEtQ4rmYGk834erHSZDhXxT7vMlCHj6LxBFjWYNRqEm VN/dnyiuBrfzvmeVPfZIT+fwfFkPOw+o275DSkZ3MSRk4rfUZc3T7k0Gos3C4z/XDdcvpz 87socH1bT1eMTJ0EV1xHklVQrkGRX9Y/noN2wx2xqbF+KpBNafU1DGo7HvdVBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676004584; a=rsa-sha256; cv=none; b=X65dCyZ5cpsZapZsIj+9eYIL0qRtJxayLIZ47TKobVpynYXHqpuNLbxMd3u/9IciBd6rJx Z1dNzMSHoUuagctc/y+JueHfkmAlQ7Q0Jt0y6Cq3yk6m0m5n1BhwPP7//DpfW19PCU2Txs 9DZjRDl8D9gpvNxoAo8m+/8eC00KbxKR55KP2NKi9GqFGep3fE+2EFZ0+R9Y7jThUCLujO ERHlzSbveRIbqQ8vUbRUF6J2MWFkVoxXUNMTGBdoTroZmZr9Fymj3HLrcbDAdrf/+UyDBA CrK0/alrecdv9luccj5i1D7azIiTGRI2ntGSeSasW73qHvpwXvXcHv/qxlbG8Q== 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 4PCh9N3CL6z14LG; Fri, 10 Feb 2023 04:49:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31A4nio4089195; Fri, 10 Feb 2023 04:49:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31A4nicJ089194; Fri, 10 Feb 2023 04:49:44 GMT (envelope-from git) Date: Fri, 10 Feb 2023 04:49:44 GMT Message-Id: <202302100449.31A4nicJ089194@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Mikhail Teterin Subject: git: 089fb698f23c - main - devel/tcl-trf: fix fatal compiler warning 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: mi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 089fb698f23c450dfc221ed099e57768644eb156 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mi: URL: https://cgit.FreeBSD.org/ports/commit/?id=089fb698f23c450dfc221ed099e57768644eb156 commit 089fb698f23c450dfc221ed099e57768644eb156 Author: Mikhail Teterin AuthorDate: 2023-02-10 04:44:56 +0000 Commit: Mikhail Teterin CommitDate: 2023-02-10 04:44:56 +0000 devel/tcl-trf: fix fatal compiler warning Starting with version 15 clang includes the new -Wdeprecated-non-prototype in -Wall. This warns, when a K&R-style function-definitions follow ANSI function-declarations. And TCL code has LOTS of K&R definitions... The warning is poorly worded -- and, in my opinion, outright bogus, but the ports need to keep building, so I'm using a trick borrowed from src/share/mk/sys.mk to conditionally disable it. --- devel/tcl-trf/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/devel/tcl-trf/Makefile b/devel/tcl-trf/Makefile index 5902242f165d..7055435b6b56 100644 --- a/devel/tcl-trf/Makefile +++ b/devel/tcl-trf/Makefile @@ -17,7 +17,7 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept TEST_DEPENDS= ${LOCALBASE}/lib/Memchan2.3/libMemchan.so.1:devel/tcl-memchan -USES+= tcl:tea tar:bzip2 +USES+= tcl:tea tar:bzip2 compiler USE_LDCONFIG= ${PREFIX}/lib/Trf DDIR= ${PREFIX}/lib/tcl${TCL_VER}/Trf CFLAGS+= -Wall -Werror @@ -27,6 +27,7 @@ MAKE_ENV+= INSTALL_DATA="${INSTALL_DATA}" REINPLACE_ARGS= -i "" CONFIGURE_ARGS+=--enable-static-zlib --enable-static-bzlib \ --enable-static-md5 +CONFIGURE_ENV+= CC=${CC} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/Trf @@ -44,4 +45,10 @@ do-test: PLIST_SUB+= TCL_DVER=${TCL_VER:C/\.//} VER=${PORTVERSION} -.include +.include + +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150 +CFLAGS+= -Wno-deprecated-non-prototype +.endif + +.include