Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlite3: Update to 3.48.0
Browse files Browse the repository at this point in the history
**Summary**
- introduces the lemon parser
- update sqlite to latest version
uni-dos committed Jan 23, 2025
1 parent f44fddb commit 7584d00
Showing 6 changed files with 87 additions and 43 deletions.
1 change: 1 addition & 0 deletions packages/s/sqlite3/abi_used_libs32
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
libc.so.6
libgcc_s.so.1
libm.so.6
11 changes: 9 additions & 2 deletions packages/s/sqlite3/abi_used_symbols
Original file line number Diff line number Diff line change
@@ -29,7 +29,9 @@ libc.so.6:fdatasync
libc.so.6:fflush
libc.so.6:fgetc
libc.so.6:fgets
libc.so.6:fopen
libc.so.6:fopen64
libc.so.6:fprintf
libc.so.6:fputc
libc.so.6:fputs
libc.so.6:fread
@@ -51,6 +53,7 @@ libc.so.6:isatty
libc.so.6:localtime_r
libc.so.6:lstat64
libc.so.6:malloc
libc.so.6:malloc_usable_size
libc.so.6:memchr
libc.so.6:memcmp
libc.so.6:memcpy
@@ -65,8 +68,8 @@ libc.so.6:open64
libc.so.6:opendir
libc.so.6:pclose
libc.so.6:popen
libc.so.6:posix_fallocate64
libc.so.6:pread64
libc.so.6:printf
libc.so.6:pthread_create
libc.so.6:pthread_join
libc.so.6:pthread_mutex_destroy
@@ -77,6 +80,7 @@ libc.so.6:pthread_mutex_unlock
libc.so.6:pthread_mutexattr_destroy
libc.so.6:pthread_mutexattr_init
libc.so.6:pthread_mutexattr_settype
libc.so.6:putc
libc.so.6:pwrite64
libc.so.6:qsort
libc.so.6:raise
@@ -88,15 +92,16 @@ libc.so.6:rewind
libc.so.6:rmdir
libc.so.6:setvbuf
libc.so.6:signal
libc.so.6:sprintf
libc.so.6:stat64
libc.so.6:stderr
libc.so.6:stdin
libc.so.6:stdout
libc.so.6:strchr
libc.so.6:strchrnul
libc.so.6:strcmp
libc.so.6:strcspn
libc.so.6:strdup
libc.so.6:strerror_r
libc.so.6:strlen
libc.so.6:strncmp
libc.so.6:strrchr
@@ -109,7 +114,9 @@ libc.so.6:sysconf
libc.so.6:system
libc.so.6:time
libc.so.6:unlink
libc.so.6:utime
libc.so.6:utimes
libc.so.6:vfprintf
libc.so.6:write
libm.so.6:acos
libm.so.6:acosh
10 changes: 7 additions & 3 deletions packages/s/sqlite3/abi_used_symbols32
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@ libc.so.6:gettimeofday
libc.so.6:localtime_r
libc.so.6:lstat64
libc.so.6:malloc
libc.so.6:malloc_usable_size
libc.so.6:memchr
libc.so.6:memcmp
libc.so.6:memcpy
@@ -35,7 +36,6 @@ libc.so.6:mremap
libc.so.6:munmap
libc.so.6:nanosleep
libc.so.6:open64
libc.so.6:posix_fallocate64
libc.so.6:pread64
libc.so.6:pthread_create
libc.so.6:pthread_join
@@ -54,18 +54,22 @@ libc.so.6:readlink
libc.so.6:realloc
libc.so.6:rmdir
libc.so.6:stat64
libc.so.6:strchrnul
libc.so.6:strcmp
libc.so.6:strcspn
libc.so.6:strerror_r
libc.so.6:strlen
libc.so.6:strncmp
libc.so.6:strrchr
libc.so.6:strspn
libc.so.6:sysconf
libc.so.6:time
libc.so.6:unlink
libc.so.6:utimes
libc.so.6:utime
libc.so.6:write
libgcc_s.so.1:__divdi3
libgcc_s.so.1:__moddi3
libgcc_s.so.1:__udivdi3
libgcc_s.so.1:__umoddi3
libm.so.6:acos
libm.so.6:acosh
libm.so.6:asin
13 changes: 13 additions & 0 deletions packages/s/sqlite3/files/sqlite-lemon-system-template.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/tool/lemon.c b/tool/lemon.c
index 54c8946..ac14a06 100644
--- a/tool/lemon.c
+++ b/tool/lemon.c
@@ -3668,6 +3668,8 @@ PRIVATE FILE *tplt_open(struct lemon *lemp)
tpltname = buf;
}else if( access(templatename,004)==0 ){
tpltname = templatename;
+ }else if( access("/usr/share/lemon/lempar.c", R_OK)==0){
+ tpltname = "/usr/share/lemon/lempar.c";
}else{
toFree = tpltname = pathsearch(lemp->argv0,templatename,0);
}
44 changes: 29 additions & 15 deletions packages/s/sqlite3/package.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
name : sqlite3

Check warning on line 1 in packages/s/sqlite3/package.yml

GitHub Actions / Checks

This package is included in the ISO and is currently frozen. It can only be updated to fix critical bugs, in consultation with multiple Solus staff members.
version : 3.47.2
release : 60
version : 3.48.0
release : 61
source :
- https://www.sqlite.org/2024/sqlite-autoconf-3470200.tar.gz : f1b2ee412c28d7472bc95ba996368d6f0cdcf00362affdadb27ed286c179540b
- https://sqlite.org/2025/sqlite-src-3480000.zip : 2d7b032b6fdfe8c442aa809f850687a81d06381deecd7be3312601d28612e640
license : Public-Domain
component : system.base
component :
- system.base
- lemon : programming.tools
emul32 : yes
homepage : https://www.sqlite.org
summary : Self contained SQL package
description: |
The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
summary :
- Self contained SQL package
- lemon : A parser generator
description:
- The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
- lemon : The Lemon program is an LALR(1) parser generator. It takes a context free grammar and converts it into a subroutine that will parse a file using that grammar.
clang : yes
optimize :
- speed
- thin-lto
setup : |
ex_opts=""
if [[ -z "${EMUL32BUILD}" ]]; then
ex_opts="--enable-readline"
fi
%patch -p1 -i $pkgfiles/sqlite-lemon-system-template.patch
%configure --disable-static \
--enable-dynamic-extensions \
--enable-fts3 \
--enable-fts4 \
--enable-fts5 \
--enable-rtree \
--enable-threadsafe \
$ex_opts \
--disable-tcl \
--soname=legacy \
CFLAGS="$CFLAGS \
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_DBPAGE_VTAB=1 \
@@ -36,11 +38,23 @@ setup : |
-DSQLITE_ENABLE_STMTVTAB=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
-DSQLITE_SECURE_DELETE=1 \
-DSQLITE_ENABLE_SESSION=1 \
-DSQLITE_ENABLE_SESSION \
-DSQLITE_ENABLE_PREUPDATE_HOOK=1 \
-DSQLITE_ENABLE_STAT4=1"
build : |
%make
pushd tool
clang lemon.c -o lemon
popd
install : |
%make_install
install -D -m00644 sqlite3.1 $installdir/usr/share/man/man1/sqlite3.1
install -Dm00644 sqlite3.1 $installdir/usr/share/man/man1/sqlite3.1
pushd tool
install -Dm00644 lempar.c -t $installdir/usr/share/lemon/
install -Dm00755 lemon $installdir/usr/bin
popd
patterns :
- lemon :
- /usr/bin/lemon
- /usr/share/lemon
51 changes: 28 additions & 23 deletions packages/s/sqlite3/pspec_x86_64.xml
Original file line number Diff line number Diff line change
@@ -3,52 +3,48 @@
<Name>sqlite3</Name>
<Homepage>https://www.sqlite.org</Homepage>
<Packager>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
<Name>Robert Gonzalez</Name>
<Email>uni.dos12@outlook.com</Email>
</Packager>
<License>Public-Domain</License>
<PartOf>system.base</PartOf>
<Summary xml:lang="en">Self contained SQL package</Summary>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
</Description>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.</Description>
<Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://sources.getsol.us/README.Solus</Archive>
</Source>
<Package>
<Name>sqlite3</Name>
<Summary xml:lang="en">Self contained SQL package</Summary>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
</Description>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.</Description>
<PartOf>system.base</PartOf>
<Files>
<Path fileType="executable">/usr/bin/sqlite3</Path>
<Path fileType="library">/usr/lib64/libsqlite3.so.0</Path>
<Path fileType="library">/usr/lib64/libsqlite3.so.0.8.6</Path>
<Path fileType="library">/usr/lib64/libsqlite3.so.3.48.0</Path>
<Path fileType="man">/usr/share/man/man1/sqlite3.1</Path>
</Files>
</Package>
<Package>
<Name>sqlite3-32bit</Name>
<Summary xml:lang="en">32-bit libraries for sqlite3</Summary>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
</Description>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.</Description>
<PartOf>emul32</PartOf>
<RuntimeDependencies>
<Dependency release="60">sqlite3</Dependency>
<Dependency release="61">sqlite3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libsqlite3.so.0</Path>
<Path fileType="library">/usr/lib32/libsqlite3.so.0.8.6</Path>
<Path fileType="library">/usr/lib32/libsqlite3.so.3.48.0</Path>
</Files>
</Package>
<Package>
<Name>sqlite3-32bit-devel</Name>
<Summary xml:lang="en">Development files for 32-bit sqlite3</Summary>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
</Description>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="60">sqlite3-devel</Dependency>
<Dependency release="60">sqlite3-32bit</Dependency>
<Dependency release="61">sqlite3-devel</Dependency>
<Dependency release="61">sqlite3-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libsqlite3.so</Path>
@@ -58,11 +54,10 @@
<Package>
<Name>sqlite3-devel</Name>
<Summary xml:lang="en">Development files for sqlite3</Summary>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.
</Description>
<Description xml:lang="en">The SQLite package is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
<Dependency release="60">sqlite3</Dependency>
<Dependency release="61">sqlite3</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include/sqlite3.h</Path>
@@ -71,13 +66,23 @@
<Path fileType="data">/usr/lib64/pkgconfig/sqlite3.pc</Path>
</Files>
</Package>
<Package>
<Name>sqlite3-lemon</Name>
<Summary xml:lang="en">A parser generator</Summary>
<Description xml:lang="en">The Lemon program is an LALR(1) parser generator. It takes a context free grammar and converts it into a subroutine that will parse a file using that grammar.</Description>
<PartOf>programming.tools</PartOf>
<Files>
<Path fileType="executable">/usr/bin/lemon</Path>
<Path fileType="data">/usr/share/lemon/lempar.c</Path>
</Files>
</Package>
<History>
<Update release="60">
<Date>2024-12-18</Date>
<Version>3.47.2</Version>
<Update release="61">
<Date>2025-01-23</Date>
<Version>3.48.0</Version>
<Comment>Packaging update</Comment>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
<Name>Robert Gonzalez</Name>
<Email>uni.dos12@outlook.com</Email>
</Update>
</History>
</PISI>

0 comments on commit 7584d00

Please sign in to comment.