MSYS2-packages/sqlite/0001-sqlite3.32.3-configure.ac-fix-OS-recognition-on-MSYS2.patch
Jannick 325eedfc14 sqlite(3.32.3): remove dependency on version-dependent 3rd-party patch
This commit as a heavy overhaul removes the dependency on a version-dependent
third-party patch which obfuscates what is going on and prevents transparent
maintenance.  As an intermediate step the split package 'sqlite-extensions'
is temporarily removed, but is added back in the subsequent commit to make
more understandable the commit series this commit is part of.

The overall goal is to compile the splite package together with packaging
all of its MSYS2 split-packages straight out of the box for each sqlite
package release.

* PKGBUILD:
  - switch from source package 'sqlite-autoconf-XXXXXXX.tar.gz' to
    'sqlite-src-XXXXXXX.zip' which contains the extension source code
  - remove 'sqlite-3.28.0-msys2.patch' which is obsolete since its changes
    are overridden by 'autoreconf'
  - remove 'sqlite-3.28.0-msys2.patch' provided by third party and comprising
    not well maintained sqlite extension code
  - add three patches for flawless package compilation
  - build package rather in separate build directory instead in source
    code directory (VPATH compilation)
  - note that targets of the split package 'tcl-sqlite' are now built by
    the main 'make' run (instead of a separate configure step when using
    sqlite-autoconf-XXXXXXX.tar.gz as source package)
  - sqlite split-packages are restructured as follows, in line with the overall
    structure of the sqlite package (as of 3.32.3):
    - sqlite-compress   : moved to 'sqlite-extensions'
    - sqlite-extensions : added back in subsequent commit (!)
    - sqlite-icu        : extension obsolete since icu compiled into sqlite3.exe
                          by default
    - sqlite-rbu        : extension moved to 'sqlite-extensions', executable
                          to 'sqlite'
    - sqlite-vfslog     : moved to 'sqlite-extensions'
* sqlite-3.28.0-msys2.patch: removed since obsolete after running 'autoreconf'.
* sqlite3-3.32.3-1.src.patch: removed as third-party patch
* other patches: fix compilation and installation bugs
2020-08-24 10:06:49 +02:00

26 lines
752 B
Diff

From a2193226b26851e45a863f2f2a749d291dd4c478 Mon Sep 17 00:00:00 2001
From: Jannick <thirdedition@gmx.net>
Date: Sat, 8 Aug 2020 14:03:25 +0200
Subject: [PATCH 1/3] configure.ac: fix OS recognition on MSYS2
---
configure.ac | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/configure.ac b/configure.ac
index ef70a4f..f293c8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -269,7 +269,7 @@ if test x"$cross_compiling" = xno; then
else
TARGET_EXEEXT=$config_TARGET_EXEEXT
fi
-if test "$TARGET_EXEEXT" = ".exe"; then
+if test "$TARGET_EXEEXT" = ".exe" && test x$CYGWIN != xyes; then
SQLITE_OS_UNIX=0
SQLITE_OS_WIN=1
CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
--
2.28.0.windows.1