From nobody Tue Feb 27 05:02:16 2024 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 4TkQMX6qDsz5CRQK; Tue, 27 Feb 2024 05:02:16 +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 4TkQMX6Kmyz4Hrc; Tue, 27 Feb 2024 05:02:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709010136; 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=lK9dnOPC/gkRBlpQzZ++Nd5Kdb9Vhg+aUdyGp7dkSQI=; b=I+7e5G9nYAZy1rDmP9Hiw2ttkJTGt9QozWso0fdru7NMkhQPiqjH2ahzjm6XeMWGuq7dk4 5Gs/BeqiEF4FVgHJN+NcupdvX6jsvCqoLWWSvyR5MmvHP/nKfJlEAKM51OE9UJWRR/jr6E /3FifA1J25a/0FvY+86CUs7Tljuv4j8z4zqlzpzvVIWKNw+VDjy92Gemta4dBBZsKe0hTd S6b3pCKnIEqf4LcpTFt09/VAed2TsEbFYsCFreVm+ZrQedwtownP5L4tpc9iCHXGyEu2bu Xn0p0gO5+6DLgAsZT9QY9lcftN0sZH7G2asx9pY7V8a006GAoFZZWPJCTwuqiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709010136; a=rsa-sha256; cv=none; b=edhEJxKLlY0afWFyS5wmVWMPyDt016zIK9UgVBxEh/qbJifAukasPAz7YCNIqvHeZcHRo6 H1a9sAuBNn5RWOkRrXtzLASB/AV65QDfdXrRzasRKbtYoc0V8qPNwfKTj9sXO7Z20MVDng s5cssVNyUUrg1fyO5Vdkg9o4E+6S/FYMiM4ZtzgTH9PqqOsctmGiShyHLIt9W3+Q0++P0O ChpXNoHPDtQ/Cy3l4BdA8h7Z9Phlh7Z8xnLvy9uu1JIRp4wLxNiDys/gG0CTHU6navog8k Y4tucsQPQEoYe+EghxVxdNNEEm4JydrHfsaokEr/RxCjIg0NjlGttXbjhxEUYw== 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=1709010136; 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=lK9dnOPC/gkRBlpQzZ++Nd5Kdb9Vhg+aUdyGp7dkSQI=; b=NotUWU0/cnGAEDV8suaOQmem3ziDDXAiTCju33tyoO5A6rFGkTuBm3CNaEX9okVqe8cIE6 tEvBkDmlNVA7crwOL5v5y9+OBuYZy58+kfR0WkNLv+/KqM/oJ57b9HfdDbyxswa3l1h8Od cjoKnIY91hzOfzuK4IxAZd14vFSW/UNUyZYD3qYH5+sJPG7eucpkzZ8i3agQxzU7UZ6XpJ QuZIOAEBV9LNdO/qsQg+9u5Go1DiYQP1+cuehCPjM7JxkkSThGFQ90otnVsva8rY9tfVtL 5u+/Bkr1B3gpowz+xARj16ARW78yrx5JE760MfT3hFA1TMhFXCJAtG7k/rfO5Q== 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 4TkQMX5NWxzycM; Tue, 27 Feb 2024 05:02: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 41R52Gp9005571; Tue, 27 Feb 2024 05:02:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41R52G6j005567; Tue, 27 Feb 2024 05:02:16 GMT (envelope-from git) Date: Tue, 27 Feb 2024 05:02:16 GMT Message-Id: <202402270502.41R52G6j005567@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: 45b681ee03a1 - main - sysutils/coreutils: Fix build with clang 18 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: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 45b681ee03a1caebb65a89e4772a7afdcbacbf42 Auto-Submitted: auto-generated The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=45b681ee03a1caebb65a89e4772a7afdcbacbf42 commit 45b681ee03a1caebb65a89e4772a7afdcbacbf42 Author: Dimitry Andric AuthorDate: 2024-02-27 05:01:23 +0000 Commit: Li-Wen Hsu CommitDate: 2024-02-27 05:01:23 +0000 sysutils/coreutils: Fix build with clang 18 PR: 277280 Approved by: maintainer --- sysutils/coreutils/Makefile | 1 + sysutils/coreutils/files/patch-lib_posixtm.c | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile index a346bdc5e090..9264909a27ab 100644 --- a/sysutils/coreutils/Makefile +++ b/sysutils/coreutils/Makefile @@ -1,5 +1,6 @@ PORTNAME= coreutils PORTVERSION= 9.4 +PORTREVISION= 1 CATEGORIES= sysutils textproc MASTER_SITES= GNU diff --git a/sysutils/coreutils/files/patch-lib_posixtm.c b/sysutils/coreutils/files/patch-lib_posixtm.c new file mode 100644 index 000000000000..3265544a82bc --- /dev/null +++ b/sysutils/coreutils/files/patch-lib_posixtm.c @@ -0,0 +1,24 @@ +commit 67c298c36f69b6906840b7584be06b7b5f33f829 +Author: Paul Eggert +Date: 2024-01-16T17:21:08-08:00 + + posixtm: pacify clang 18 + + Problem reported by Khem Raj in: + https://lists.gnu.org/r/bug-gnulib/2024-01/msg00045.html + * lib/posixtm.c (posixtime): Pacify clang 18 by converting bool to int. + Arguably this is a bug in draft C2x, since the non-pointer args to + ckd_add should promote just like any other expressions do; + but thats not clangs fault. + +--- lib/posixtm.c.orig 2023-01-01 13:39:11 UTC ++++ lib/posixtm.c +@@ -191,7 +191,7 @@ posixtime (time_t *p, const char *s, unsigned int synt + | (tm0.tm_min ^ tm1.tm_min) + | (tm0.tm_sec ^ tm1.tm_sec))) + { +- if (ckd_add (&t, t, leapsec)) ++ if (ckd_add (&t, t, +leapsec)) + return false; + *p = t; + return true;