From nobody Wed Jun 28 17:26:13 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 4QrpQZ5TYFz4jspF; Wed, 28 Jun 2023 17:26:14 +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 4QrpQY67h0z3qFy; Wed, 28 Jun 2023 17:26:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687973173; 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=9PTywYNBqeumYNHBtvPw+LwgsSTvXftMW2BagjqHybA=; b=SMI1FK6r47EEMeGaX7HFJA/SUdBk+arDA4cs3XGlD54e9JoRLr9X5MSilGLXqVrWrBORb8 7XRvEfg2wxT2W/HYYY7JDLUg8qL7bPvKpBzzamrPNbzFtB2OjcPBF+aM61LII9hz/bcQYo eowtXUFs0Z1uhUfz1QGWOsA3snWFaEw4y/0ygge15UMmQmlgwahnlDp62AAeqplJKgx+ay sIV16PvshuaeUAFkMzhzeCNm4KRE02bC0IdJ0RoegnD8jO7yZspeafecW2rXEzeilvIfDZ sBmLM7EoC8rMhTtcA6vlssiQUMXpLjKwho/rtoBC0/e2eQg1FkcCaP4OY381Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687973173; 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=9PTywYNBqeumYNHBtvPw+LwgsSTvXftMW2BagjqHybA=; b=uXPuTKLqWulip4AXDsmfc8Cy48q4Z4hw3bhCvD4m+UEjXZ2/dktRHLbMuT5X3KU3M1dz5H nUzSVQmdOOML2P6Nw3SmPYAMUPEHciTacLPRZFFaDNtVAg0lBImcgJuZ2Bkjl1pZugxuOJ pLXmm9p4gVXXr3fnqXTOuiwyzfOSgnRhrg+rIIp9wxWvhDpar/9H+az1fq1vZePaGSHl9c MoQhfbj6raIUD60c1RskR9QrvXKaDSYK2ehH/nS3RUUGEXGk1k1QSPFzZWUUqjuHzn2+EL /svfWYfaOuDlH+Xozy86Hgi8Sr9a7AZBqDFj5zh3OKOa0GfduZjNFbVPxcbstw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687973173; a=rsa-sha256; cv=none; b=ASbr6v4qPuDpRomwrJYBHnRTjRmEZzJmxhrmCn9U4hKxBnFBic49dw8T2reAnvdN7+HIkY zOQi8liXbElYO/577pMAIHszcsLyAk97FXuD0luf4bAmzOS3oQSNgTaqYddly/Fi+LB8Kv Pl3bdAqzjqw5ObmF7y6soxuOMA+e1s3gU4V8fWzn+9Zu/pSURJD+j1VJGGS0eKyGovhsrV qSXiB5oDx7K7r5Vxjf0FDGG4ox2cVwj9HbGER35RkAtwXrbDlsAilM/NROHTgs6DpxVXWG bepbfCHdeEachFl2qXOiMwt4aeme8fpk/fJFsDXdPHScCh2e/SNJGgoedN+HXA== 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 4QrpQY5C6Czj1V; Wed, 28 Jun 2023 17:26:13 +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 35SHQDgP026398; Wed, 28 Jun 2023 17:26:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35SHQDgJ026397; Wed, 28 Jun 2023 17:26:13 GMT (envelope-from git) Date: Wed, 28 Jun 2023 17:26:13 GMT Message-Id: <202306281726.35SHQDgJ026397@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: ffa7085ab412 - main - x11/xdm: fix build with clang 16 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: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ffa7085ab4121e92eb61c4e1f6a7138e7ea43d6a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=ffa7085ab4121e92eb61c4e1f6a7138e7ea43d6a commit ffa7085ab4121e92eb61c4e1f6a7138e7ea43d6a Author: Dimitry Andric AuthorDate: 2023-06-25 18:26:57 +0000 Commit: Dimitry Andric CommitDate: 2023-06-28 17:25:30 +0000 x11/xdm: fix build with clang 16 Clang 16 has a new error about incompatible function types, which shows up when x11/xdm: greet.c:451:20: error: incompatible function pointer types assigning to 'void (*)(void)' from 'int (*)(void)' [-Wincompatible-function-pointer-types] __xdm_setgrent = dlfuncs->_setgrent; ^ ~~~~~~~~~~~~~~~~~~ This is because it assumes setgrent(3) returns int, which it has not done since a very long time. Reported by: O. Hartmann PR: 272209 MFH: 2023Q2 --- x11/xdm/Makefile | 1 + x11/xdm/files/patch-include_greet.h | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/x11/xdm/Makefile b/x11/xdm/Makefile index 158166693ed5..f828df33c99b 100644 --- a/x11/xdm/Makefile +++ b/x11/xdm/Makefile @@ -1,5 +1,6 @@ PORTNAME= xdm PORTVERSION= 1.1.14 +PORTREVISION= 1 CATEGORIES= x11 MAINTAINER= x11@FreeBSD.org diff --git a/x11/xdm/files/patch-include_greet.h b/x11/xdm/files/patch-include_greet.h new file mode 100644 index 000000000000..08b77fdfcc26 --- /dev/null +++ b/x11/xdm/files/patch-include_greet.h @@ -0,0 +1,11 @@ +--- include/greet.h.orig 2022-12-03 21:38:28 UTC ++++ include/greet.h +@@ -45,7 +45,7 @@ from The Open Group. + # define GETPWNAM_ARGS /*unknown*/ + #endif + +-#if defined(__FreeBSD__) || defined(__bsdi__) || defined(__osf__) ++#if defined(__bsdi__) || defined(__osf__) + # define SETGRENT_TYPE int + #else + # define SETGRENT_TYPE void