From nobody Tue Dec 13 16:27:43 2022 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 4NWkRz5Fglz4kC94; Tue, 13 Dec 2022 16:27:43 +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 4NWkRz4dvWz41QN; Tue, 13 Dec 2022 16:27:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670948863; 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=ZypG1YS58u+HqemoSsmMw94MTZklQbhlEUmdWsrTUTk=; b=uDsP16/j9JAzBq4ixv3M1KypV9CSuqa42FNTgFNCGZnxttk6VMLwPVUfI1ohIRUK4XynXG Xyslm9LJaoq7TX8wRYCD2jU1oMYbDmEqs7+f3Q6N/2dzn91lG9N0HQ1dxSNbNi0zxtwv+x Xie1Wsl38NtOPJwLQlEOaTDuEUWV8X9sbk/GVG+z2E6cjNnsQKP+0nd4IIKlZdNz13EvEF iIlREPb7Kkpxag4KeLAF9FkudPWehnn0VNzgFSr12VUJOieiwuJsPvmrv5ZzulT/RGWYjQ gDrv+hqPhMLyn4uAq9Pd1s9/lrittsCFgoSCOcu36e5Mw0j8R2uyvOJk8ZBgbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670948863; 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=ZypG1YS58u+HqemoSsmMw94MTZklQbhlEUmdWsrTUTk=; b=PfVIkgmSay6pYoJdRHRi/qnonPtwv8dseZOoBlC+/6giJNPTsrZoimEDDL87jLhXrDfqFN u1OpvDyMgjAK9r/63ZooIL9oFo9HtRw2WvHwfWwBMxIJXJTLzai2BtjggyvGwsjjITLkSz R+1ZkvdAZh0VSDlTMQe+i4te/raUYD+sn0zxDWQ955OhJHK+ucuu9lZS8kL3A2ZmHm5p3k 1Y5lRXBrrMr8IUo5wEgvfUcxRoMmLDBwjZbssIrUUBvhPnLJiapedb8fNqeyVddG/tzRhQ HeRL35yEuHMh397hmGZh+Xwc4PaX8tJipryPB2PNfBt8Z5Ei5R2DFZ0NBAl1Qw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670948863; a=rsa-sha256; cv=none; b=Xt2Z4cvnsLcKZOu2v7sanexXhsUUL2Vj2ArleZyBQnuADDn2obaO9QSxrOmBfHQrSzQgX5 Ix/AqsnFFCnYjSAioFvNUxNqkzssohbDX6g9LoUQKFYOlQig+WcayxXS+K4BX8L6GuXDEz y60g/jhZssZK9G2IYIoOEdRihRWZgf/WJE7koN7oEspserF980Tq+Uc2BVdCKlPSK72Lmh kO8DA0KE8e60R5+nZtrorAKdS03yzFJgzzNnntB8+HvP5le7XNQ71YuODhZEugGHI6BTmP GmIOnK8txC5N98QeC1cnwGGg8MU3JSSGZmddvb7m5+hb0r5ngvHGl4U7zKqIHA== 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 4NWkRz3gLjzL3v; Tue, 13 Dec 2022 16:27:43 +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 2BDGRh11091687; Tue, 13 Dec 2022 16:27:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BDGRhL6091686; Tue, 13 Dec 2022 16:27:43 GMT (envelope-from git) Date: Tue, 13 Dec 2022 16:27:43 GMT Message-Id: <202212131627.2BDGRhL6091686@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: 48d51338852a - main - textproc/augeas: fix build with clang 15 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: 48d51338852a1667227dd0735d03f77d72d67247 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim (src committer): URL: https://cgit.FreeBSD.org/ports/commit/?id=48d51338852a1667227dd0735d03f77d72d67247 commit 48d51338852a1667227dd0735d03f77d72d67247 Author: Dimitry Andric AuthorDate: 2022-12-07 16:45:56 +0000 Commit: Dimitry Andric CommitDate: 2022-12-13 16:27:02 +0000 textproc/augeas: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that textproc/augeas failed to build with clang 15: internal.c:436:12: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion] return strerror_r(errnum, buf, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. This is because the GNU variant of strerror_r() is erroneously chosen. Use the BSD variant instead. PR: 268231 Approved by: romain (maintainer) MFH: 2022Q4 --- textproc/augeas/files/patch-src_internal.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/textproc/augeas/files/patch-src_internal.c b/textproc/augeas/files/patch-src_internal.c new file mode 100644 index 000000000000..58fd0c0ad92e --- /dev/null +++ b/textproc/augeas/files/patch-src_internal.c @@ -0,0 +1,11 @@ +--- src/internal.c.orig 2018-08-10 20:17:35 UTC ++++ src/internal.c +@@ -431,7 +431,7 @@ const char *xstrerror(int errnum, char *buf, size_t le + + const char *xstrerror(int errnum, char *buf, size_t len) { + #ifdef HAVE_STRERROR_R +-# ifdef __USE_GNU ++# if defined(__USE_GNU) && defined(__GLIBC__) + /* Annoying linux specific API contract */ + return strerror_r(errnum, buf, len); + # else