Skip to content

Commit

Permalink
feat: build sqlite 3.45.0 (for django5 requiring sqlite >= 3.27) (#1786)
Browse files Browse the repository at this point in the history
Consequently we have to fix proj build
  • Loading branch information
thebaptiste authored Jan 18, 2024
1 parent f904cb8 commit f677502
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .metwork-framework/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
| [six](https://github.com/benjaminp/six) | 1.16.0 | python3_core |
| [sloccount](https://www.dwheeler.com/sloccount/) | 2.26 | devtools |
| [snowballstemmer](https://github.com/snowballstem/snowball) | 2.2.0 | python3_devtools |
| [sqlite](http://sqlite.org/) | 3450000 | core |
| [stack_data](http://github.com/alexmojaki/stack_data) | 0.6.3 | python3_devtools |
| [statsd](https://github.com/jsocol/pystatsd) | 075001f | python3 |
| [structlog](https://pypi.org/project/structlog) | 23.1.0 | python3 |
Expand Down Expand Up @@ -269,4 +270,4 @@
| [zeromq](https://zeromq.org/) | 4.3.4 | core |
| [zipp](https://github.com/jaraco/zipp) | 3.16.2 | python3_core |

*(268 components)*
*(269 components)*
1 change: 0 additions & 1 deletion layers/layer0_core/.system_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ libpthread.so.0()(64bit)@generic
libresolv.so.2()(64bit)@generic
librt.so.1()(64bit)@generic
libSM.so.6()(64bit)@generic
libsqlite3.so.0()(64bit)@generic
libssl.so.1.1()(64bit)@generic
libstdc++.so.6()(64bit)@generic
libtcl8.6.so()(64bit)@generic
Expand Down
2 changes: 2 additions & 0 deletions layers/layer0_core/0020_sqlite/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include ../../../adm/root.mk
include ../../layer_wrapper.mk
17 changes: 17 additions & 0 deletions layers/layer0_core/0020_sqlite/Makefile.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
include ../../../adm/root.mk
include ../../package.mk

export NAME=sqlite
export VERSION=3450000
export EXTENSION=tar.gz
export CHECKTYPE=MD5
export CHECKSUM=d6150f5dc837ae94b7d735f1b611b634
export EXPLICIT_NAME=$(NAME)-autoconf-$(VERSION)
DESCRIPTION=\
SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine (the database is a file)
WEBSITE=http://sqlite.org/
LICENSE=Domain public

all:: $(PREFIX)/lib/libsqlite3.so
$(PREFIX)/lib/libsqlite3.so: Makefile Makefile.mk sources
$(MAKE) --file=../../Makefile.standard PREFIX=$(PREFIX) EXPLICIT_NAME="$(EXPLICIT_NAME)" OPTIONS="--enable-shared --disable-static" EXTRACFLAGS="-I$(PREFIX)/include -DSQLITE_ENABLE_COLUMN_METADATA" EXTRALDFLAGS="-L$(PREFIX)/lib" download uncompress configure build install
1 change: 1 addition & 0 deletions layers/layer0_core/0020_sqlite/sources
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://sqlite.org/2024/sqlite-autoconf-3450000.tar.gz
2 changes: 1 addition & 1 deletion layers/layer1_scientific_core/0015_proj/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ LICENSE=MIT

all:: $(PREFIX)/lib/libproj.so
$(PREFIX)/lib/libproj.so:
$(MAKE) --file=../../Makefile.standard PREFIX=$(PREFIX) OPTIONS="-DBUILD_TESTING=OFF" download uncompress configure_cmake build_cmake install_cmake
$(MAKE) --file=../../Makefile.standard PREFIX=$(PREFIX) OPTIONS="-DBUILD_TESTING=OFF -DCMAKE_PREFIX_PATH='$(PREFIX);$(PREFIX)/../core'" download uncompress configure_cmake build_cmake install_cmake

0 comments on commit f677502

Please sign in to comment.