From 75e7bb9c72d562d397f9fb62072ab114cfbc6244 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 6 Mar 2022 15:21:10 +0000 Subject: fixed python compilation for js78 --- repo/system/js78.xibuild | 16 +++++++++------- repo/system/sqlite3.xibuild | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 7 deletions(-) create mode 100644 repo/system/sqlite3.xibuild (limited to 'repo/system') diff --git a/repo/system/js78.xibuild b/repo/system/js78.xibuild index 39eb45c..26716d9 100644 --- a/repo/system/js78.xibuild +++ b/repo/system/js78.xibuild @@ -1,6 +1,6 @@ #!/bin/sh -MAKEDEPS="gcc autoconf2-13 icu rustc zlib which zip clang llvm patch make" +MAKEDEPS="gcc autoconf2-13 icu rustc zlib which zip clang llvm patch make python-six python-mach" DEPS="readline nspr bash zlib" PKG_VER=78.15.0 @@ -18,9 +18,6 @@ prepare () { apply_patches export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=1048576" - - autoreconf -fi - mountpoint -q /dev/shm || mount -t tmpfs devshm /dev/shm export PATH=/opt/rustc/bin:$PATH export LD_LIBRARY_PATH=/opt/rustc/lib:$LD_LIBRARY_PATH @@ -28,12 +25,11 @@ prepare () { } build () { - mkdir build && - cd build && + mkdir build + cd build SHELL=/bin/bash PYTHON=/usr/bin/python3 \ ../js/src/configure --prefix=/usr \ - --with-clang-path=/usr/bin/clang \ --with-intl-api \ --with-libclang-path=/usr/lib \ --with-system-icu \ @@ -54,7 +50,13 @@ build () { make -j1 +} +check () { + dist/bin/jsapi-tests \ + --format=none \ + --exclude-random \ + basic } package () { diff --git a/repo/system/sqlite3.xibuild b/repo/system/sqlite3.xibuild new file mode 100644 index 0000000..12f7210 --- /dev/null +++ b/repo/system/sqlite3.xibuild @@ -0,0 +1,26 @@ +#!/bin/sh + +MAKEDEPS="make" +DEPS="libedit" + +PKG_VER=3370200 +SOURCE=https://sqlite.org/2022/sqlite-autoconf-$PKG_VER.tar.gz +DESC="Small suite of programs for UNIX, designed to allow process supervision" + +build () { + ./configure --prefix=/usr \ + --disable-static \ + --enable-fts5 \ + CPPFLAGS="-DSQLITE_ENABLE_FTS3=1 \ + -DSQLITE_ENABLE_FTS4=1 \ + -DSQLITE_ENABLE_COLUMN_METADATA=1 \ + -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \ + -DSQLITE_ENABLE_DBSTAT_VTAB=1 \ + -DSQLITE_SECURE_DELETE=1 \ + -DSQLITE_ENABLE_FTS3_TOKENIZER=1" && + make +} + +package () { + make DESTDIR=$PKG_DEST install +} -- cgit v1.2.1