From nobody Tue May 02 20:02:12 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 4Q9rZr4BcFz49LXt; Tue, 2 May 2023 20:02:12 +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 4Q9rZr31q3z4Crm; Tue, 2 May 2023 20:02:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683057732; 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=e0vCpLdYICFonjsUUQxYFS8GVjefcFC9JSo742B2ylw=; b=AVXCi/oGA7vRZDN7klEbuCLFV9taw2W6o2H2PRUaC3dEeG3rLzr30dCO0N9sFcYksDHLD8 INeTSQwzETqcsi4jWLwn2uVNy/GOmERT5j2bMvXaMQeBs01sd6B+uBhQPSl8gmWzhe/VLJ dDjJNL8rkJgjl6/nKBFcYTNKisz6PH7fnYt9SRaCyzSp7mCzLJWfQSQPYm4CELQnsaZIMC Cvii3keax71fnbV7+TadxWK2JkOdG9FC6pxjhTJzPz4udpAbj/GrVWHx7EHaNgah+ojnVG Q2cni7FnijVihUEjp9OjR/Osqm8Agchv/fUt6VAM9LLNc5cPYKo+l/b1Sds6YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683057732; 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=e0vCpLdYICFonjsUUQxYFS8GVjefcFC9JSo742B2ylw=; b=T9bPsimynHHUDWUrNm2EJdMr6tMTNuBKFLOCcLLYxGyQbJA/UYh0BVJFtIouc5maykEJSp wOBNE++W7gckgzwZyZtif3zbE/NFEb57F4uKAjn+1EtNZwUgZ5w7daD3d9QMau49f9Mjmh pHAvJYPh3jJxrMoHV2m+p5/XNLGkr9pMPROfix11g56KTqd8ycgn/KwDylrUmqwuu1OG36 7VGq+t4ZTgZThJinBdzl6B4nSajWfZwTHEiZXdzdEO++GnC+JNOSiECJXFIpqmt7zQ7nLb 79/xU4HE6VeB1LUoH+t+YIhGiC4CnTP2/msX8ebdiiyd5u0YRgeBpbHWZobDXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683057732; a=rsa-sha256; cv=none; b=IPox1GhCNauaGv43FPF+B0lw+wnfkO16hvS7RA8ytcGo07CVfgjCx2xXIMNlAuXiumwqpo s9GhOrxBSmee4ity6TMfHa7Fp1vYiGIkdZx8XHPC8eaRQflIfY9zrZLRDbO567DRsczMbp jh/q3axjGZliR/Y9HbgI3EOc6g2JrgOsmTMzMwbFRjp5tPfDZeNAFTxthPb9jYqJShQGi6 UOE+1DBHS7/Gl9Epxt3Pq7xYCBIq73v4tOqid6MGVs3XdczTbT+ST25DoKLV5MxFFWEnpR DPz/vrxX/dN9X1melECQlCCmWguEhodRpJ+cpbYwl7C/5ywgA4KjRN0u8G1p+w== 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 4Q9rZr1f4Jz11R4; Tue, 2 May 2023 20:02:12 +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 342K2C2i039435; Tue, 2 May 2023 20:02:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 342K2CL2039423; Tue, 2 May 2023 20:02:12 GMT (envelope-from git) Date: Tue, 2 May 2023 20:02:12 GMT Message-Id: <202305022002.342K2CL2039423@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 95c89d246afb - main - archivers/upx: Fix build on 14-CURRENT 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95c89d246afb6e04e61ed416574ef8d79a386683 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=95c89d246afb6e04e61ed416574ef8d79a386683 commit 95c89d246afb6e04e61ed416574ef8d79a386683 Author: Po-Chuan Hsieh AuthorDate: 2023-05-02 19:58:20 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-05-02 19:58:20 +0000 archivers/upx: Fix build on 14-CURRENT In file included from filteri.cpp:71: ./filter/cto.h:47:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:73: ./filter/cto.h:47:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:79: ./filter/cto.h:47:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:81: ./filter/cto.h:47:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:87: ./filter/cto.h:47:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:89: ./filter/cto.h:47:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:100: ./filter/ctoj.h:51:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:102: ./filter/ctoj.h:51:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:115: ./filter/ctok.h:52:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:117: ./filter/ctok.h:52:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:141: ./filter/ctojr.h:109:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ In file included from filteri.cpp:143: ./filter/ctojr.h:109:39: error: variable 'noncalls2' set but not used [-Werror,-Wunused-but-set-variable] unsigned calls = 0, noncalls = 0, noncalls2 = 0; ^ 12 errors generated. Reference: https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/pdf5b273c8e36_s83d5725005/logs/upx-3.96.log --- archivers/upx/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/archivers/upx/Makefile b/archivers/upx/Makefile index 2ea930b4067e..3a101bfd2bed 100644 --- a/archivers/upx/Makefile +++ b/archivers/upx/Makefile @@ -24,8 +24,14 @@ PLIST_FILES= bin/upx \ CPE_VENDOR= upx_project +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079 +CFLAGS+= -Wno-error=unused-but-set-variable +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${STAGEDIR}${PREFIX}/bin/upx ${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${PREFIX}/man/man1 -.include +.include