From nobody Tue Dec 12 05:15:16 2023 X-Original-To: dev-commits-src-all@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 4Sq6J51SYpz53Pnk; Tue, 12 Dec 2023 05:15:17 +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 4Sq6J50wW7z4M2w; Tue, 12 Dec 2023 05:15:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702358117; 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=kx9oW4wqQihhxvHgoqEp6Rf8IH1f5KDXQqoIn+8BGLM=; b=IBg8za2Ar8WEFf4Hyx42uszSVHGfU+wJfXJ8QDgcg3Tw6UVlC9mD+KD6iVp1rHPix/Lvt2 OUWByD3nlYYAMAwOkL3cg1FXV/B85YUnYb8OWVnY1dSJC0goZ4UhWSIahTxzVw5UQE7tfq tjSJKDVN9jn/pDWMajaKK9hjCk8I28Z4J76ckEST02i+WvHQl03Uf4yaZDv2/c7QlZHmfw IJpirIuCX9vh8HHZTnP+QtwN8B9RCTziaLB09nSmj6kdcrRsvgt5iNNiynKS5PUpPWznTl AFT32hejyBAW19aVIDDcBpgdGWG970MyYNXzAW/fWub6XvpSH4X4wPLOnlCxpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702358117; a=rsa-sha256; cv=none; b=ZSuMiWRaN1beY0qcC02CU62vN/t/SXWnAZEJr8YLsqJDlx+J88H4171DwzxMBCk/MQEaNs WeXIcGzm0tmGE5WH4AK8OgrrgYKIFFNi1xSxsUMEC9P7kV3w4HTvICK7VD+RCrPV+UBlgu GyVVNV4M7tPEFsVlNA7dTkW8v8m9jZFjsdpcs4jErMx/yf7RDPWXtHSLScIVXh9IXagp/2 npsxlSa54VstQ4G96rrUZQXXQHtpfJ2aWvl97o7WReEk2TDJgBOg5q338zP229wbjkLtJg l+7/U29nwD8QHwf6wvCBPbpDhtYF/Xk8iDORXunRjscBXFnrm0KWEO23Il8QTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702358117; 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=kx9oW4wqQihhxvHgoqEp6Rf8IH1f5KDXQqoIn+8BGLM=; b=qy0j77MDKxCG1NglIseJdSmwDkTQ3y32+QsLS9zPlho7ndiNye63Z3i/ki6FFB5wvBaBCp uZW8B6tgxwuMxzyifikGW1uaHUkmPWvqFaBZvom4mbQZ6JTlZrJW4PkvP0QY3MuovYLkYW Q9NPKGEnpQTBew457yoiKnsKF5rUBBZg3kqj2ZDNqpK9tdiheAVj3RONC71iwhrU9KkGg2 HX9gJGkMMLmckxoDaGnAJFK4SpexeJBiJjA/vEZE98cHPJFWrMLd7ZgKQVIima0j1Yj7ld jF8aC3iCGuXqH+UCbHJHBhoQYZrmBI7FOGAkw6oiLYUNcZ03uLiKZvJtffmLtw== 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 4Sq6J4755Qz12HQ; Tue, 12 Dec 2023 05:15:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BC5FGfV079629; Tue, 12 Dec 2023 05:15:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BC5FG9j079626; Tue, 12 Dec 2023 05:15:16 GMT (envelope-from git) Date: Tue, 12 Dec 2023 05:15:16 GMT Message-Id: <202312120515.3BC5FG9j079626@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alex Richardson Subject: git: 0156465c6d11 - main - mandoc: fix bootstrapping on Linux with Clang 16 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: arichardson X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0156465c6d11e1ef064d104443047e4146e5b925 Auto-Submitted: auto-generated The branch main has been updated by arichardson: URL: https://cgit.FreeBSD.org/src/commit/?id=0156465c6d11e1ef064d104443047e4146e5b925 commit 0156465c6d11e1ef064d104443047e4146e5b925 Author: Alex Richardson AuthorDate: 2023-12-12 05:08:38 +0000 Commit: Alex Richardson CommitDate: 2023-12-12 05:14:56 +0000 mandoc: fix bootstrapping on Linux with Clang 16 It appears that Clang 16 errors by default for the mismatched function pointer types that are triggered by the fts callback (since glibc has a callback type without the second const qualifier). Fortunately, there is already code to handle glibc inside mandoc, we just have to edit the checked-in config.h. Reviewed By: imp, emaste Differential Revision: https://reviews.freebsd.org/D42999 --- contrib/mandoc/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/mandoc/config.h b/contrib/mandoc/config.h index 553c4c8b7400..213513f1c87e 100644 --- a/contrib/mandoc/config.h +++ b/contrib/mandoc/config.h @@ -13,7 +13,11 @@ #define HAVE_ENDIAN 0 #define HAVE_ERR 1 #define HAVE_FTS 1 +#ifdef __GLIBC__ +#define HAVE_FTS_COMPARE_CONST 0 +#else #define HAVE_FTS_COMPARE_CONST 1 +#endif #define HAVE_GETLINE 1 #define HAVE_GETSUBOPT 1 #define HAVE_ISBLANK 1