From nobody Sat Jun 22 23:12:14 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 4W693f65yQz5PFsm; Sat, 22 Jun 2024 23:12: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 4W693f5gJJz4VTf; Sat, 22 Jun 2024 23:12:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719097934; 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=CNuCHMyrHRmrr6kA2NYkLKOUWu8c9Jb8GOemYLFyVDg=; b=g6nZ+u7HwhFDsOME1LkG+NvkxPp/UEEe4RlJ7TolGa0HiRMej/Vb6pQgNQu6csuA3fyN/t Z8Pr3QmWgi2TYj6nAErDmIWX0P3W3FSsRgyBAtpIf7hEhJP7PXeFxkwjRQAvcG/SPNNwKt A9T0URa70DF8QenUWfmwRdv/eatR/CyuuBkhU6HxLpT16L1J597SndriaZ7UmIJ5Mm9swW oNgsL3DLRvXhelgnnuO638MZkt0oBldCnEc0QtzGfnklYiKXsigqGys44CVyl8kM4BbPgv QejjVvu0sQXtkJ4sX33nMa37mglmwiCRGLFLPHUKCLJ1SOozy6c45IfRSyJ8BA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719097934; a=rsa-sha256; cv=none; b=lPFSxLWICnCQWmhJ2IucW75VEleGDsSS6fjRwcbvUXTZbEDCUdylojOgRKIEKJQIxkzgZY DPJ3cDWleNalqVcqsJ5P6G7dondR/rgwaElDQeSrI5T3DuASkmC89aB2plM+2IbZqJPhf3 ktWFk1NPgSVJF30JyvvZ8sXaYKxTmh2MRKXFs4iByG8LFSEf81I2/xhw4LdpwUKpgUdmBo jT2tPPEeFwZHcffB7McKlI594kwyi2hI2m6D3Vvxpyiaoar3seoDVz5J+uBN8j7744W69u lvb2WettjZqeiWJZQhNX03kdDnCtSwNiZnyRPX9HowhyLf3MgLEF0ZYYtrJycA== 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=1719097934; 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=CNuCHMyrHRmrr6kA2NYkLKOUWu8c9Jb8GOemYLFyVDg=; b=fCPEI9KOda4UVVc3BtTATsio0LoIJp2MprRf0/oHUjypGN52vV+T3+Oa4z+77UX1IPRm/t O3I/NN+0dwnxZUOfxUOQEPN2P4qKWPvDuNdicEGGJHgK0FSvMSu4PAV72im26bPQU+O3tD 8nzwhP01Vu4p3f3emutaeIxNGxnNxRhgYU03Zr1FHrJ8Yd1212/le9oMSgLTICceW3Nfii D3QPPLfE9Qm+c07KuDGPwPZy1rj5UPqnARKtNqsJ/s8Mo8dRA3apX5UVw2CkpK/lbMI6fp XLT/1+3gTjHs5CpfUAYjA3bcDr0R/6eBVn6/v8lBPSE47fq+7Ec+sFN8lNBA0w== 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 4W693f5Gqwz19P2; Sat, 22 Jun 2024 23:12:14 +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 45MNCE6l073163; Sat, 22 Jun 2024 23:12:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45MNCEHe073160; Sat, 22 Jun 2024 23:12:14 GMT (envelope-from git) Date: Sat, 22 Jun 2024 23:12:14 GMT Message-Id: <202406222312.45MNCEHe073160@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: 65456c4820ca - main - devel/electron29: fix build error regarding alloca in sqlite 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 65456c4820cabf881f62cb2d3048d792cf4c121d Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=65456c4820cabf881f62cb2d3048d792cf4c121d commit 65456c4820cabf881f62cb2d3048d792cf4c121d Author: Hiroki Tagato AuthorDate: 2024-06-22 23:09:07 +0000 Commit: Hiroki Tagato CommitDate: 2024-06-22 23:12:06 +0000 devel/electron29: fix build error regarding alloca in sqlite The error was: In file included from ../../third_party/sqlite/sqlite3_shim.c:16: ../../third_party/sqlite/src/amalgamation/sqlite3.c:53602:21: warning: call to undeclared function 'alloca'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53602 | u32 *aiValues = sqlite3StackAllocRaw(0, sizeof(p->u.aHash)); | ^ ../../third_party/sqlite/src/amalgamation/sqlite3.c:20531:38: note: expanded from macro 'sqlite3StackAllocRaw' 20531 | # define sqlite3StackAllocRaw(D,N) alloca(N) | ^ ../../third_party/sqlite/src/amalgamation/sqlite3.c:53602:10: error: incompatible integer to pointer conversion initializing 'u32 *' (aka 'unsigned int *') with an expression of type 'int' [-Wint-conversion] 53602 | u32 *aiValues = sqlite3StackAllocRaw(0, sizeof(p->u.aHash)); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PR: 279802 Reported by: Naram Qashat Obtained from: https://cgit.freebsd.org/ports/commit/?id=4ba66b974729b45f6c2418d87d7403ef2e7b474d --- .../patch-third__party_sqlite_src_amalgamation_sqlite3.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/devel/electron29/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c b/devel/electron29/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c index daff487c92a6..be4949074ad2 100644 --- a/devel/electron29/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c +++ b/devel/electron29/files/patch-third__party_sqlite_src_amalgamation_sqlite3.c @@ -1,5 +1,14 @@ ---- third_party/sqlite/src/amalgamation/sqlite3.c.orig 2024-02-21 00:21:59 UTC +--- third_party/sqlite/src/amalgamation/sqlite3.c.orig 2024-04-06 21:39:37 UTC +++ third_party/sqlite/src/amalgamation/sqlite3.c +@@ -14049,7 +14049,7 @@ struct fts5_api { + ** But _XOPEN_SOURCE define causes problems for Mac OS X, so omit + ** it. + */ +-#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) ++#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__FreeBSD__) + # define _XOPEN_SOURCE 600 + #endif + @@ -44505,7 +44505,12 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nB memset(zBuf, 0, nBuf); randomnessPid = osGetpid(0);