mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
Ports: Add SQLite
This commit is contained in:
parent
2fb3c98429
commit
9c141d0a87
5 changed files with 50 additions and 0 deletions
|
@ -73,6 +73,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
|
||||||
| [`SDL2_ttf`](SDL2_ttf/) | SDL2\_ttf (TrueType Font add-on for SDL2) | 2.0.15 | https://www.libsdl.org/projects/SDL_ttf/ |
|
| [`SDL2_ttf`](SDL2_ttf/) | SDL2\_ttf (TrueType Font add-on for SDL2) | 2.0.15 | https://www.libsdl.org/projects/SDL_ttf/ |
|
||||||
| [`sed`](sed/) | GNU sed | 4.2.1 | https://www.gnu.org/software/sed/ |
|
| [`sed`](sed/) | GNU sed | 4.2.1 | https://www.gnu.org/software/sed/ |
|
||||||
| [`sl`](sl/) | Steam Locomotive (SL) | | https://github.com/mtoyoda/sl |
|
| [`sl`](sl/) | Steam Locomotive (SL) | | https://github.com/mtoyoda/sl |
|
||||||
|
| [`sqlite`](sqlite/) | SQLite | 3350300 | https://www.sqlite.org/ |
|
||||||
| [`stress-ng`](stress-ng/) | stress-ng | 0.11.23 | https://github.com/ColinIanKing/stress-ng |
|
| [`stress-ng`](stress-ng/) | stress-ng | 0.11.23 | https://github.com/ColinIanKing/stress-ng |
|
||||||
| [`termcap`](termcap/) | GNU termcap | 1.3.1 | https://www.gnu.org/software/termutils/ |
|
| [`termcap`](termcap/) | GNU termcap | 1.3.1 | https://www.gnu.org/software/termutils/ |
|
||||||
| [`tinycc`](tinycc/) | Tiny C Compiler (TinyCC) | dev | https://github.com/TinyCC/tinycc |
|
| [`tinycc`](tinycc/) | Tiny C Compiler (TinyCC) | dev | https://github.com/TinyCC/tinycc |
|
||||||
|
|
7
Ports/sqlite/package.sh
Executable file
7
Ports/sqlite/package.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env -S bash ../.port_include.sh
|
||||||
|
port=sqlite
|
||||||
|
useconfigure="true"
|
||||||
|
version="3350300"
|
||||||
|
files="https://www.sqlite.org/2021/sqlite-autoconf-${version}.tar.gz sqlite-autoconf-${version}.tar.gz"
|
||||||
|
workdir="sqlite-autoconf-${version}"
|
||||||
|
configopts="CFLAGS=-DHAVE_UTIME"
|
11
Ports/sqlite/patches/config.sub.patch
Normal file
11
Ports/sqlite/patches/config.sub.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- sqlite-autoconf-3350300/config.sub 2021-03-26 15:25:02.000000000 +0100
|
||||||
|
+++ sqlite-autoconf-port/config.sub 2021-03-26 23:31:42.457629453 +0100
|
||||||
|
@@ -1366,7 +1366,7 @@
|
||||||
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||||
|
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||||
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||||
|
- | -sym* | -kopensolaris* | -plan9* \
|
||||||
|
+ | -sym* | -kopensolaris* | -plan9* | -serenity* \
|
||||||
|
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
||||||
|
| -aos* | -aros* | -cloudabi* | -sortix* \
|
||||||
|
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
13
Ports/sqlite/patches/shell.c.patch
Normal file
13
Ports/sqlite/patches/shell.c.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- sqlite-autoconf-3350300/shell.c 2021-03-26 15:24:58.000000000 +0100
|
||||||
|
+++ sqlite-autoconf-port/shell.c 2021-03-27 12:05:40.289547647 +0100
|
||||||
|
@@ -2554,6 +2554,10 @@
|
||||||
|
if( utimensat(AT_FDCWD, zFile, times, AT_SYMLINK_NOFOLLOW) ){
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
+#elif defined(HAVE_UTIME)
|
||||||
|
+ int rc = utime(zFile, NULL);
|
||||||
|
+ if (rc < 0)
|
||||||
|
+ return 1;
|
||||||
|
#else
|
||||||
|
/* Legacy unix */
|
||||||
|
struct timeval times[2];
|
18
Ports/sqlite/patches/sqlite3.c.patch
Normal file
18
Ports/sqlite/patches/sqlite3.c.patch
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- sqlite-autoconf-3350300/sqlite3.c 2021-03-26 15:24:58.000000000 +0100
|
||||||
|
+++ sqlite-autoconf-port/sqlite3.c 2021-03-27 12:30:47.197494792 +0100
|
||||||
|
@@ -41852,6 +41852,7 @@
|
||||||
|
** array cannot be const.
|
||||||
|
*/
|
||||||
|
static sqlite3_vfs aVfs[] = {
|
||||||
|
+ UNIXVFS("unix-none", nolockIoFinder ),
|
||||||
|
#if SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__)
|
||||||
|
UNIXVFS("unix", autolockIoFinder ),
|
||||||
|
#elif OS_VXWORKS
|
||||||
|
@@ -41859,7 +41860,6 @@
|
||||||
|
#else
|
||||||
|
UNIXVFS("unix", posixIoFinder ),
|
||||||
|
#endif
|
||||||
|
- UNIXVFS("unix-none", nolockIoFinder ),
|
||||||
|
UNIXVFS("unix-dotfile", dotlockIoFinder ),
|
||||||
|
UNIXVFS("unix-excl", posixIoFinder ),
|
||||||
|
#if OS_VXWORKS
|
Loading…
Add table
Add a link
Reference in a new issue