summaryrefslogtreecommitdiff
path: root/repo/system
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system')
-rw-r--r--repo/system/execline.xibuild24
-rw-r--r--repo/system/js78.xibuild64
-rw-r--r--repo/system/libtirpc.xibuild11
-rw-r--r--repo/system/polkit.xibuild5
-rw-r--r--repo/system/python-mako.xibuild22
-rw-r--r--repo/system/python-markupsafe.xibuild16
-rw-r--r--repo/system/python-requests.xibuild12
-rw-r--r--repo/system/python-six.xibuild16
-rw-r--r--repo/system/python.xibuild37
-rw-r--r--repo/system/queue-standalone.xibuild15
-rw-r--r--repo/system/s6.xibuild2
11 files changed, 114 insertions, 110 deletions
diff --git a/repo/system/execline.xibuild b/repo/system/execline.xibuild
new file mode 100644
index 0000000..61d3e57
--- /dev/null
+++ b/repo/system/execline.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+MAKEDEPS="make"
+DEPS="skalibs"
+
+PKG_VER=2.8.2.0
+SOURCE=https://skarnet.org/software/execline/execline-$PKG_VER.tar.gz
+DESC="A non-interactive shell-like scripting language"
+
+build () {
+ ./configure --enable-shared \
+ --enable-static \
+ --enable-allstatic \
+ --enable-static-libc \
+ --libdir=/usr/lib \
+ --with-dynlib=/usr/lib \
+ --enable-pedantic-posix
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
diff --git a/repo/system/js78.xibuild b/repo/system/js78.xibuild
new file mode 100644
index 0000000..39eb45c
--- /dev/null
+++ b/repo/system/js78.xibuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+MAKEDEPS="gcc autoconf2-13 icu rustc zlib which zip clang llvm patch make"
+DEPS="readline nspr bash zlib"
+
+PKG_VER=78.15.0
+SOURCE=https://archive.mozilla.org/pub/firefox/releases/${PKG_VER}esr/source/firefox-${PKG_VER}esr.source.tar.xz
+ADDITIONAL="
+ patches/js78/disable-jslint.patch
+ patches/js78/fd6847c9416f9eebde636e21d794d25d1be8791d.patch
+ patches/js78/fix-musl-build.patch
+ patches/js78/fix-python3.10-compilation.patch
+ "
+
+DESC="JavaScript interpreter and libraries - Version 78"
+
+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
+ export RUST_TARGET="x86_64"
+}
+
+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 \
+ --with-system-nspr \
+ --with-system-zlib \
+ --enable-ctypes \
+ --enable-hardening \
+ --enable-optimize="$CFLAGS -O2" \
+ --enable-readline \
+ --enable-release \
+ --enable-shared-js \
+ --enable-system-ffi \
+ --enable-tests \
+ --disable-debug \
+ --disable-debug-symbols \
+ --disable-jemalloc \
+ --disable-strip
+
+
+ make -j1
+
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ [ -f $PKG_DEST/usr/lib/libjs_static.ajs ] && rm $PKG_DEST/usr/lib/libjs_static.ajs
+ sed -i '/@NSPR_CFLAGS@/d' $PKG_DEST/usr/bin/js78-config
+}
diff --git a/repo/system/libtirpc.xibuild b/repo/system/libtirpc.xibuild
index 9a80dbd..ec4f3b9 100644
--- a/repo/system/libtirpc.xibuild
+++ b/repo/system/libtirpc.xibuild
@@ -1,12 +1,21 @@
#!/bin/sh
-MAKEDEPS="make "
+MAKEDEPS="make queue-standalone"
DEPS="krb5"
PKG_VER=1.3.2
SOURCE=https://downloads.sourceforge.net/libtirpc/libtirpc-$PKG_VER.tar.bz2
DESC="Transport Independent RPC library (SunRPC replacement)"
+ADDITIONAL="
+https://git.alpinelinux.org/aports/plain/main/libtirpc/soname-suffix.patch
+"
+
+prepare () {
+ apply_patches
+ autoreconf -fi
+}
+
build () {
./configure --prefix=/usr \
--sysconfdir=/etc \
diff --git a/repo/system/polkit.xibuild b/repo/system/polkit.xibuild
index 3f48cd0..567e316 100644
--- a/repo/system/polkit.xibuild
+++ b/repo/system/polkit.xibuild
@@ -5,9 +5,6 @@ DEPS="expat glib js78 pam"
PKG_VER=0.120
SOURCE=https://www.freedesktop.org/software/polkit/releases/polkit-$PKG_VER.tar.gz
-ADDITIONAL="
- https://www.linuxfromscratch.org/patches/blfs/svn/polkit-$PKG_VER-security_fix-1.patch
- "
DESC="Application development toolkit for controlling system-wide privileges"
@@ -16,8 +13,6 @@ prepare () {
sed '/policy,/d' -i actions/meson.build \
-i src/examples/meson.build
- patch -Np1 -i polkit-$PKG_VER-security_fix-1.patch
-
}
build () {
diff --git a/repo/system/python-mako.xibuild b/repo/system/python-mako.xibuild
deleted file mode 100644
index be10b64..0000000
--- a/repo/system/python-mako.xibuild
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-MAKEDEPS="python "
-DEPS="python-markupsafe python-beaker python-setuptools"
-
-PKG_VER=1.1.6
-SOURCE=https://files.pythonhosted.org/packages/source/M/Mako/Mako-$PKG_VER.tar.gz
-DESC="A super-fast templating language that borrows the best ideas from the existing templating languages"
-
-prepare() {
- sed -e '/\[tool:pytest\]/a filterwarnings =\n error\n ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' \
- -e 's/-W error//' \
- -i setup.cfg
-}
-
-build() {
- python setup.py build
-}
-
-package () {
- python3 setup.py install --root="$PKG_DEST" --optimize=1
-}
diff --git a/repo/system/python-markupsafe.xibuild b/repo/system/python-markupsafe.xibuild
deleted file mode 100644
index b8327e6..0000000
--- a/repo/system/python-markupsafe.xibuild
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-MAKEDEPS="python"
-DEPS="python"
-
-PKG_VER=2.0.1
-SOURCE=https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-$PKG_VER.tar.gz
-DESC="Implements a XML/HTML/XHTML Markup safe string for Python"
-
-build() {
- python setup.py build
-}
-
-package () {
- python3 setup.py install --root="$PKG_DEST" --optimize=1
-}
diff --git a/repo/system/python-requests.xibuild b/repo/system/python-requests.xibuild
deleted file mode 100644
index 50a0d2f..0000000
--- a/repo/system/python-requests.xibuild
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-MAKEDEPS="python "
-DEPS="python cacerts"
-
-SOURCE=git://github.com/psf/requests.git
-DESC="the requests module for python"
-
-package () {
- mkdir -p $PKG_DEST/usr/lib/python3.10/site-packages/
- pip install -t $PKG_DEST/usr/lib/python3.10/site-packages/ .
-}
diff --git a/repo/system/python-six.xibuild b/repo/system/python-six.xibuild
deleted file mode 100644
index 022f497..0000000
--- a/repo/system/python-six.xibuild
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-MAKEDEPS="python "
-DEPS=""
-
-PKG_VER=1.16.0
-SOURCE=https://github.com/benjaminp/six/archive/refs/tags/$PKG_VER.tar.gz
-DESC="A python 2 and 3 compatibility library"
-
-build() {
- python setup.py build
-}
-
-package () {
- python3 setup.py install --root="$PKG_DEST" --optimize=1
-}
diff --git a/repo/system/python.xibuild b/repo/system/python.xibuild
deleted file mode 100644
index 7198649..0000000
--- a/repo/system/python.xibuild
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-
-MAKEDEPS="make autoconf automake autoconf-archive"
-DEPS="bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib grep"
-
-PKG_VER=3.10.2
-SOURCE=https://www.python.org/ftp/python/$PKG_VER/Python-$PKG_VER.tgz
-DESC="The Python development environment"
-
-prepare () {
- rm -r Modules/expat
- rm -r Modules/_ctypes/darwin*
- rm -r Modules/_ctypes/libffi*
-}
-
-build () {
- CFLAGS="-flto"
- autoreconf -i
- GREP="/usr/bin/ggrep" ./configure --prefix=/usr \
- --enable-shared \
- --with-system-expat \
- --with-system-ffi \
- --with-ensurepip=yes \
- --with-pip=yes \
- --with-openssl="/usr" \
- --enable-ipv6 \
- --enable-loadable-sqlite-extensions \
- --with-computed-gotos
- make
-}
-
-package () {
- make DESTDIR=$PKG_DEST install
- ln -s /usr/bin/python3 $PKG_DEST/usr/bin/python
- ln -s /usr/bin/pip3 $PKG_DEST/usr/bin/pip
-}
diff --git a/repo/system/queue-standalone.xibuild b/repo/system/queue-standalone.xibuild
new file mode 100644
index 0000000..c58dec8
--- /dev/null
+++ b/repo/system/queue-standalone.xibuild
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+MAKEDEPS="make"
+DEPS=""
+
+DESC="The queue.h header from glibc"
+
+ADDITIONAL="
+ https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/queue-standalone/files/queue.h
+"
+
+package () {
+ install -d $PKG_DEST/usr/include/sys/
+ install -m644 queue.h $PKG_DEST/usr/include/sys/
+}
diff --git a/repo/system/s6.xibuild b/repo/system/s6.xibuild
index 66598dc..7f429a5 100644
--- a/repo/system/s6.xibuild
+++ b/repo/system/s6.xibuild
@@ -1,7 +1,7 @@
#!/bin/sh
MAKEDEPS="make"
-DEPS="skalibs"
+DEPS="skalibs execline"
PKG_VER=2.11.0.1
SOURCE=https://skarnet.org/software/s6/s6-$PKG_VER.tar.gz