From nobody Tue Dec 13 16:21:58 2022 X-Original-To: dev-commits-ports-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 4NWkKL4JZYz4kBZH; Tue, 13 Dec 2022 16:21:58 +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 4NWkKL3l8yz40kD; Tue, 13 Dec 2022 16:21:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670948518; 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=rrV2RLsPQeKjACWxq+l5Spno/LFLRYT/e+RrQVpIlBg=; b=rPrV2SC3PrghMgGxrJ4FS+qF8HC6rn9rWHUvdIR/UOEJRNYRL8d2JU8wh/hVhsX6saa1rK YvKMnb9xGGzpPgW6QZ1OAt1y8haU+fn0H04dyi0Q7hAtZXB1Ij//3Q26aTtYV7Ck8wNRWE OFFoRoflPzZT/UZspzJ2os2PwEHWJfDIRQRny+bfX1fVyHGxKnNtTcyx6Zy5ITXcFIPiEJ 6y+edBuHTuBEuNhYkeGTyI1MPv0m0DerifQSO+JWMFjO35/Y6HrqdAkR6tszn5prspFn0G DTJnEG8hGGB9ivd18qusB8Es6LbUkvCTQQWXM1+n61Pu4c15vzON7/EhViAgew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670948518; 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=rrV2RLsPQeKjACWxq+l5Spno/LFLRYT/e+RrQVpIlBg=; b=NBisL6VcYbVNbRf65hiMh8xoUcRjGgZbLuItHnK6HvHCmRYEKVHCFvCb8YGuuUIOdiArqV U90OrymUjNQ9reL6dm3kJpqsgOUbLoXLganzG4Zv4fLMpgYBa6vJrCSi+5LchH2u5w0TBr wTQiVzOvZi3SbIqxJjeyhFNZFDG3i48PAEMRzBpRNWQxd5llNiAwRruPlDidzBth9zE1vd DSVebJFPPvmkfOadOfLO5M2ewqaZbZmTgN23PgRSMdtdzaPLAjYWjPqs1oRbxO8Vy98YiO 7uzwSqZYMrwK4arsdKeB+USNDc2hEBnpRwNq0pP0+s80dLKmC2bI2euBy+2+Sg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670948518; a=rsa-sha256; cv=none; b=lgOYtNByefPEQ/BXEf90xNMsrLGIBHtaVRQUdFfCRQS6RB6GnyrqGMgqE3A6CqK0GOK4CF wfQCqcNN2HnR8LjJv0hxsabihNMw/e179F7df5N6S50PsKu62WYTcjJHTZPbBkVtysqBDQ YaYfMbJjqw16V9vbzHRUZMygJhfeKGpBKN0MdnQuwzHZq6vCvRuOZlt4lXedJZllLBzo5u kCxPw0EGQRP3aIiBrDqKrOm5S7s6prXWEYvq690kr0ueTazXLIPZGPUfoSHSZw1lqoiFYm Bpf8UNiXamBxmfKDfS1/KI1LzB/AtAP4+9YT3IpGt7+cMmcpxyKhb9xG9Skvcw== 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 4NWkKL2nQBzLJl; Tue, 13 Dec 2022 16:21:58 +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 2BDGLwCt088799; Tue, 13 Dec 2022 16:21:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BDGLwn1088798; Tue, 13 Dec 2022 16:21:58 GMT (envelope-from git) Date: Tue, 13 Dec 2022 16:21:58 GMT Message-Id: <202212131621.2BDGLwn1088798@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: b06956644e3d - main - archivers/rpm4: fix build with clang 15 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: b06956644e3d514ea746e0663a90df3c082ae2fd 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=b06956644e3d514ea746e0663a90df3c082ae2fd commit b06956644e3d514ea746e0663a90df3c082ae2fd Author: Dimitry Andric AuthorDate: 2022-12-12 20:30:27 +0000 Commit: Dimitry Andric CommitDate: 2022-12-13 16:20:38 +0000 archivers/rpm4: fix build with clang 15 During an exp-run for llvm 15 (see bug 265425), it turned out that archivers/rpm4 failed to build with clang 15: tools/rpmuncompress.c:101:23: warning: call to undeclared function 'basename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] const char *bn = basename(fn); ^ tools/rpmuncompress.c:101:18: error: incompatible integer to pointer conversion initializing 'const char *' with an expression of type 'int' [-Wint-conversion] const char *bn = basename(fn); ^ ~~~~~~~~~~~~ This is because basename(3) is defined in . After this include is added to rpmuncompress.c, link errors still occur: ld: error: undefined symbol: WIFEXITED >>> referenced by rpmuncompress.c >>> tools/rpmuncompress.o:(main) ld: error: undefined symbol: WEXITSTATUS >>> referenced by rpmuncompress.c >>> tools/rpmuncompress.o:(main) This is because WIFEXITED() and WEXITSTATUS() are macros defined in . PR: 268341 Approved by: rodrigo (maintainer) MFH: 2022Q4 --- archivers/rpm4/files/patch-tools_rpmuncompress.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archivers/rpm4/files/patch-tools_rpmuncompress.c b/archivers/rpm4/files/patch-tools_rpmuncompress.c index 0e8f99d25dfa..23dc0cc83dea 100644 --- a/archivers/rpm4/files/patch-tools_rpmuncompress.c +++ b/archivers/rpm4/files/patch-tools_rpmuncompress.c @@ -1,9 +1,12 @@ --- tools/rpmuncompress.c.orig 2022-08-30 11:42:23 UTC +++ tools/rpmuncompress.c -@@ -1,5 +1,6 @@ +@@ -1,7 +1,9 @@ #include "system.h" +#include #include #include ++#include #include + #include +