commit:     c61313f1947b89d00859e66f612f2f380bfa5a98
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 28 17:20:12 2025 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Thu Aug 28 17:31:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c61313f1

dev-db/sqlite: Apply upstream clang patch to 3.50.4

Closes: https://bugs.gentoo.org/928745
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 dev-db/sqlite/files/sqlite-3.50.4-clang.patch | 30 +++++++++++++++++++++++++++
 dev-db/sqlite/sqlite-3.50.4.ebuild            |  1 +
 2 files changed, 31 insertions(+)

diff --git a/dev-db/sqlite/files/sqlite-3.50.4-clang.patch 
b/dev-db/sqlite/files/sqlite-3.50.4-clang.patch
new file mode 100644
index 000000000000..a48d4be34d86
--- /dev/null
+++ b/dev-db/sqlite/files/sqlite-3.50.4-clang.patch
@@ -0,0 +1,30 @@
+# https://bugs.gentoo.org/928745
+# https://sqlite.org/src/info/9f0a16f6e8
+From dca1f04f0775cce80bcd6831acd9fa69bdfb40f2 Mon Sep 17 00:00:00 2001
+From: stephan <[email protected]>
+Date: Thu, 28 Aug 2025 15:04:52 +0000
+Subject: [PATCH] Remove sqlite3expert.h from the compiler invocation for that
+ tool, as it (A) doesn't need to be there and (B) it causes some compilers
+ problems (as reported in [forum:a1085109e7db4cf3 | forum post a1085109e7]).
+ This bug was faithfully carried over from the legacy build.
+
+FossilOrigin-Name: 
9f0a16f6e893d51f760a8c1e2cb4709fdd16ccb2c0258695767f8305f407f4ac
+---
+ main.mk       |  2 +-
+ manifest      | 14 +++++++-------
+ manifest.uuid |  2 +-
+ 3 files changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/main.mk b/main.mk
+index f817924fea..6304a0ad30 100644
+--- a/main.mk
++++ b/main.mk
+@@ -1963,7 +1963,7 @@ xbin: sqltclsh$(T.exe) sqlite3_analyzer$(T.exe)
+ 
+ sqlite3_expert$(T.exe): $(TOP)/ext/expert/sqlite3expert.h 
$(TOP)/ext/expert/sqlite3expert.c \
+                        $(TOP)/ext/expert/expert.c sqlite3.c
+-      $(T.link) $(TOP)/ext/expert/sqlite3expert.h 
$(TOP)/ext/expert/sqlite3expert.c \
++      $(T.link) $(TOP)/ext/expert/sqlite3expert.c \
+               $(TOP)/ext/expert/expert.c sqlite3.c -o sqlite3_expert 
$(LDFLAGS.libsqlite3)
+ xbin: sqlite3_expert$(T.exe)
+ 

diff --git a/dev-db/sqlite/sqlite-3.50.4.ebuild 
b/dev-db/sqlite/sqlite-3.50.4.ebuild
index b1a38b742380..0b53ebe7c3fd 100644
--- a/dev-db/sqlite/sqlite-3.50.4.ebuild
+++ b/dev-db/sqlite/sqlite-3.50.4.ebuild
@@ -51,6 +51,7 @@ fi
 
 PATCHES=(
        "${FILESDIR}"/${PN}-3.47.2-hwtime.h-Don-t-use-rdtsc-on-i486.patch
+       "${FILESDIR}"/${PN}-3.50.4-clang.patch
 )
 
 _fossil_fetch() {

Reply via email to