From nobody Sat Jun 24 04:38:00 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 4Qp1Z05lJnz4gdv1; Sat, 24 Jun 2023 04:38:00 +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 4Qp1Z04VGyz4MbC; Sat, 24 Jun 2023 04:38:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687581480; 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=tWoMkdsOMP6bswZyWWrqwJDTGFTQZJKMoGhiBvVZw9k=; b=Wf/CjF0mQJWwWjdTkRD8l4o7/KlLvEb2FJn9jnVxv1c1+9GezezXHj4bHubh6ySk5sRT4X eUjk03urn1tpqt/pVOWgI2Kn0caG7/r5QCU4xdVjPdQklW4zkRbliU4ktV0NpYREqVw21B gNVWaHHdj+UZJyL5loBLn1E9B14hivvkllfIi/Q00WvaihfBXEQclIgXa+Wa28Ig+m9ZX8 UDBak6ofc749aoRUdFd/rYHE0Gt1naVviH02ncV1/abHBBeNnRiwPzJWVJ/Hcy1G8RRaIO BAHYfq7CFqrGSPw6WZ5+RirT4ap6+zpKMnYjyBP30Lib3pysIaPLewYFrqS6qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687581480; 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=tWoMkdsOMP6bswZyWWrqwJDTGFTQZJKMoGhiBvVZw9k=; b=Nmr0yX1Lvrs3AYqq6MYXLUP6nImYVD4SRjLT1EwX4Pp6M/X6MBYBkY9yHeuj7F05IjZGbF z6Tfaj5pv1HWe3ggxRfZMT6FUmevowfnGnTF+75EgzJxHVW6tS/7rO9/2jbhny7sf3qfdB ytLJ8vLoin2qul3izVJWffva9lRE2f1YWBGfeOwYIqpWatabQkFWZxcZWyl9cXDqKB4170 k1o50sEARXyA9kjAMWFAqYqNCkKFykR5X68091/iDfgCfkYb+pCfI/xBO1yC2lz7065YN6 dsCR4LDyIw+y6rM+z+IuYYTfTG6GAELzXxgjWUUdZ8VmoUh1ZvMZ9xoW6/5qNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687581480; a=rsa-sha256; cv=none; b=fmnTBXOo4Z4aDDFRZKPjfgFb0mVOSZm0JdmMhYAdVYIPggv4/vmKgFsgWJedhDFt3tLI+5 EWGWVdnYun4l+Fiyg4gAMVNDhj9Xkb42Qv8H6CNJzfEnjupm2vzWuCzaggm0kKMTEeoNFX rhPjuJ2UZFx9/QBHjiqZAZjduEl+imkVs3sxInfILOpPfDFYKtNgY5QLPDYH/X5P0Gkc9l dSTOWm83SNWASfT2EHDnQFsj7MYwLxM+9uPzWxudnrK+QGXQudBMrUoikOQaUEUTnpd8tX E1yfH805a2susZ58Klp8pv257NZn4oaSAsVDs0Vb9SMZZiFk7qhUUdBjey5WKQ== 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 4Qp1Z03F6CzY1J; Sat, 24 Jun 2023 04:38:00 +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 35O4c0qf073558; Sat, 24 Jun 2023 04:38:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35O4c0Av073557; Sat, 24 Jun 2023 04:38:00 GMT (envelope-from git) Date: Sat, 24 Jun 2023 04:38:00 GMT Message-Id: <202306240438.35O4c0Av073557@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: abdfb41c181b - main - devel/gengetopt: Fix build with llvm16 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: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: abdfb41c181ba23a31c71860076c8815c98a93d3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=abdfb41c181ba23a31c71860076c8815c98a93d3 commit abdfb41c181ba23a31c71860076c8815c98a93d3 Author: Muhammad Moinur Rahman AuthorDate: 2023-06-24 00:36:01 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-06-24 04:37:51 +0000 devel/gengetopt: Fix build with llvm16 - Pet portclippy - Adopt port Sponsored by: The FreeBSD Foundation --- devel/gengetopt/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/devel/gengetopt/Makefile b/devel/gengetopt/Makefile index cf04c959d9af..1d1f56bad4df 100644 --- a/devel/gengetopt/Makefile +++ b/devel/gengetopt/Makefile @@ -3,7 +3,7 @@ PORTVERSION= 2.23 CATEGORIES= devel MASTER_SITES= GNU -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bofh@FreeBSD.org COMMENT= Tool for generating a C function which parses command line arguments WWW= https://www.gnu.org/software/gengetopt/ @@ -13,22 +13,31 @@ LICENSE_FILE= ${WRKSRC}/COPYING USES= makeinfo tar:xz GNU_CONFIGURE= yes + MAKE_JOBS_UNSAFE=yes CFLAGS+= -D_GL_SYSTEM_GETOPT INSTALL_WRKSRC= ${WRKSRC}/src +INFO= gengetopt PORTDOCS= * PORTEXAMPLES= * -INFO= gengetopt + +OPTIONS_DEFINE= DOCS EXAMPLES DOC_EXAMPLES= README.example cmdline1.c cmdline1.h cmdline2.c cmdline2.h \ main1.cc main2.c multiple_example.c sample1.ggo sample2.ggo TESTS_EXAMPLES= test_manual_help.c test_manual_help_cmd.c \ test_manual_help_cmd.ggo test_manual_help_cmd.h -OPTIONS_DEFINE= DOCS EXAMPLES +.include + +post-patch: +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 + @${REINPLACE_CMD} -e 's|std::unary_function|std::__unary_function|' \ + ${WRKSRC}/src/gm_utils.h +.endif post-install: ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \