0001-sqlite3.pc.in-revert-upstream-commits-causing-build-.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From f70123a40193c2056755117aa291582f42db5f35 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Sun, 13 Apr 2025 17:47:53 +0200
  4. Subject: [PATCH] sqlite3.pc.in: revert upstream commits causing build issues
  5. This reverts upstream commit a2d88f6a03c9ebde3d037b0e297f47216c685381
  6. and a number of following commits related to the same commit. The
  7. sqlite build system is indeed upstream not based on autoconf, but the
  8. project "generates" an "autoconf-based amalgamation":
  9. https://www3.sqlite.org/src/dir?ci=tip&name=autoconf
  10. Unfortunately commit a2d88f6a03c9ebde3d037b0e297f47216c685381 broke
  11. the build with the autoconf amalgamation because while @LIBS@ gets
  12. replaced by the autoconf machinery, @LDFLAGS_*@ do not, causing build
  13. failures such as:
  14. output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/13.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: cannot find @LDFLAGS_MATH@: No such file or directory
  15. output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/13.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: cannot find @LDFLAGS_ZLIB@: No such file or directory
  16. output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/13.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: cannot find @LDFLAGS_ICU@: No such file or directory
  17. This issue has been reported at
  18. https://sqlite.org/forum/info/e40b9b424a, and upstream says that the
  19. issue has been fixed in the amalgamation script by basically doing the
  20. same as what this commit does:
  21. https://sqlite.org/src/info/fe47154799bfe
  22. Upstream: https://sqlite.org/forum/info/e40b9b424a
  23. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  24. ---
  25. sqlite3.pc.in | 2 +-
  26. 1 file changed, 1 insertion(+), 1 deletion(-)
  27. diff --git a/sqlite3.pc.in b/sqlite3.pc.in
  28. index a9f941b1e4..3799671e61 100644
  29. --- a/sqlite3.pc.in
  30. +++ b/sqlite3.pc.in
  31. @@ -9,5 +9,5 @@ Name: SQLite
  32. Description: SQL database engine
  33. Version: @PACKAGE_VERSION@
  34. Libs: -L${libdir} -lsqlite3
  35. -Libs.private: @LDFLAGS_MATH@ @LDFLAGS_ZLIB@ @LDFLAGS_ICU@
  36. +Libs.private: @LIBS@
  37. Cflags: -I${includedir}
  38. --
  39. 2.49.0