From nobody Wed Jun 28 09:15:26 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 4QrbXH0TsSz4jq1q; Wed, 28 Jun 2023 09:15:27 +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 4QrbXG6wJKz3m6s; Wed, 28 Jun 2023 09:15:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687943727; 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=Ga+7ghEOgs7W/rNCPCaH8PfUss7SGxqmLYUFXnTZDHA=; b=TwTodIqARx84MVYIfMGXGKWTI62o2KL/v2FrNZbqiE6l2dMdYy30cSs4YSEdliKv2DxUao srbbO7Wpf5bawtlNX4SHq1xV9rm+xZOVCJwGdN2mWVsFyutolDN5xreyhvQFs1wqk9hOZw fRR7PxF40Rgh0u3jz5zVGqjFWxnNQntZRNVTRs0X3SAZfoW5XNWid1Eqdl1+KM8ryDrb/d 9DcYHPrrL7x0SgewQcYO9OZlhKLZJUDZCk9pWmq53uq3wNBb0SlzPDeoYVGBCvqNTeCa+2 EThButdTUydANKOb/0ZmI2wOj9oOuTeNHb2hIW21QBPZZfL0v2IZzQ7j1hQgDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687943727; 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=Ga+7ghEOgs7W/rNCPCaH8PfUss7SGxqmLYUFXnTZDHA=; b=GlIMXaFQEwnsuihQiZEBkofynT4m+LT6f/WuHSXn8XiiSgP/6WeH8qHS2gfROqFK5B5k1T zNZL5X8NGdmFoty5fZxM09KlOx05F56lHszzkWYS2UzATmLhMsIOLHz0irnNVA6BKiLMPB plczsCD6eC0suSCOaVqPR5Z/lfzCPBNc+zjAJjKeSpUYT6P/7kZDGt8zyjJbWsuvrwn5Bi 4B7XOdQ15c8JpVFeciSWf8yuqmoMOYhBVC7tKJPuX5ELbW3v0xgIlon/GUXSLONPpnhCzo HFFZ/vhJ1xiEfactqeLgOpeJZM0V0bX6uLBLsobOFqiwIdjWEr+TKcW48LwMaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687943727; a=rsa-sha256; cv=none; b=Sf0XUq4pV5Z24qG9QPlWCkh44qeh4t6ZDZI5ycrQv+v9UFjHIobTKsdVYQzipTtpC7Ow/U Lppga6LLMN/Q3Fg3QZtUw5DtKM7fcYHmngsGcD5rilZ8fhvFbUpGtiv1Ry0uJZ6Wp++GJ6 sxm9UkN77ZcX9LBNxGANi5D+5dxi1nayuKDXErX0wMrg2PCBiQDpXMI1xokoyFPx98LTM3 8jFhoz6OoPDRrblVJOHGdwcZ/HrYTSw+djzuie75ZxlnY1mZd8gZtFU+jP0q9q0IeBh2tN ruxVjkrSJ1ZpoNQKnfH3Ma2h1+nC8C6JB6OVvxx3fvV/xZK05rR53vwZN3Sssw== 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 4QrbXG612czT3P; Wed, 28 Jun 2023 09:15:26 +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 35S9FQps009816; Wed, 28 Jun 2023 09:15:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35S9FQsC009815; Wed, 28 Jun 2023 09:15:26 GMT (envelope-from git) Date: Wed, 28 Jun 2023 09:15:26 GMT Message-Id: <202306280915.35S9FQsC009815@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alex Dupre Subject: git: 68fc045834a5 - main - net/portfwd: fix build with clang16 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: ale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 68fc045834a5dfa6f978b2ee77d969b62795250d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ale: URL: https://cgit.FreeBSD.org/ports/commit/?id=68fc045834a5dfa6f978b2ee77d969b62795250d commit 68fc045834a5dfa6f978b2ee77d969b62795250d Author: Alex Dupre AuthorDate: 2023-06-28 09:14:38 +0000 Commit: Alex Dupre CommitDate: 2023-06-28 09:15:22 +0000 net/portfwd: fix build with clang16 --- net/portfwd/Makefile | 2 ++ net/portfwd/files/patch-getopt_getopt.c | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/net/portfwd/Makefile b/net/portfwd/Makefile index 0d557847f6d0..5c23feb03a42 100644 --- a/net/portfwd/Makefile +++ b/net/portfwd/Makefile @@ -22,6 +22,8 @@ post-patch: ${WRKSRC}/src/Makefile.am @${REINPLACE_CMD} -e "s|-Wall -g -O3|${CFLAGS}|g" \ ${WRKSRC}/tools/Makefile.am + @${REINPLACE_CMD} -e "s|register ||g" \ + ${WRKSRC}/src/lexconf.c ${WRKSRC}/src/yconf.c @${TOUCH} ${WRKSRC}/* ${WRKSRC}/*/* post-install: diff --git a/net/portfwd/files/patch-getopt_getopt.c b/net/portfwd/files/patch-getopt_getopt.c new file mode 100644 index 000000000000..2a2f5ea43e7d --- /dev/null +++ b/net/portfwd/files/patch-getopt_getopt.c @@ -0,0 +1,10 @@ +--- getopt/getopt.c.orig 2023-06-28 09:07:29 UTC ++++ getopt/getopt.c +@@ -40,6 +40,7 @@ + #endif + + #include ++#include + + /* Comment out all this code if we are using the GNU C Library, and are not + actually compiling the library itself. This code is part of the GNU C