2 Commits
Author SHA256 Message Date
sisungo 79a6853b83 fix: rust auto-pack incorrectly inserts dylib
Signed-off-by: sisungo <[email protected]>
2026-12-03 14:46:03 +00:00
sisungo 58ed58a087 feat: add package mold
Signed-off-by: sisungo <[email protected]>
2026-11-16 11:24:07 +00:00
50 changed files with 123 additions and 873 deletions

No files matched your search

+3 -1
View File
@@ -45,7 +45,9 @@ def _autopack_filter_lib(ent) -> bool:
def _autopack_filter_bin(ent) -> bool:
return os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
is_executable_file = os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False)
is_not_dylib = not (ent.path.endswith(".so") or ent.path.endswith(".dll") or ent.path.endswith(".dylib"))
return is_executable_file and is_not_dylib
def _auto_pack(profiles: list[str], pc: pkgcomposer.PkgComposer):
+2
View File
@@ -32,4 +32,6 @@ def pack(composer):
package("7z")
dep("semi-libc @same-arch")
dep("libcxx @same-arch")
dep("libcxxabi @same-arch")
dep("libunwind @same-arch")
on_pack(pack)
+1 -5
View File
@@ -17,13 +17,9 @@ weights = ["Bold", "Book", "Eight", "ExtraBold", "ExtraLight", "Four", "Hair", "
def find_file(width, style, weight):
modify = width
suffix = style
if width == "Normal":
modify = ""
if style == "Roman":
suffix = ""
w = weight if weight else "Regular"
filename = f"FiraSans{modify}-{weight}{suffix}.otf"
filename = f"FiraSans{modify}-{weight}{style}.otf"
if os.path.exists(f"{width}/{style}/{filename}"):
return filename
return None
@@ -9,8 +9,6 @@ description("AirBoot Linux initramfs generator.")
maintainer("sisungo <[email protected]>")
source_managed("gitea://gitea.semilabs.org/semios/airboot-linux-stage2#0.1.0-alpha.3")
block_hook("autostrip")
def build():
os.system("./arch-support/build.sh")
+10 -13
View File
@@ -1,9 +1,6 @@
import os
from lib import arch, cpp
from lib.make import *
upstream_version = "1.2.16.1"
version(upstream_version)
@@ -17,16 +14,16 @@ builddep(f"linux-dev @{arch.get_target()}")
def build():
os.environ["CFLAGS"] = os.environ.get("CFLAGS", "") + " -fno-lto"
os.environ["LDFLAGS"] = os.environ.get("LDFLAGS", "") + " -fno-lto"
cpp.configure([
"--prefix=/",
f"--libdir={get_prefix('alsa-lib')}/lib",
f"--includedir={get_prefix('alsa-lib-dev')}/include",
"--enable-symbolic-functions",
f"--with-configdir={get_prefix('alsa-lib')}/share/alsa",
f"--with-plugindir=/lib/{arch.get_target()}/alsa/plugins",
])
cpp.configure(
[
"--prefix=/",
f"--libdir={get_prefix('alsa-lib')}/lib",
f"--includedir={get_prefix('alsa-lib-dev')}/include",
"--enable-symbolic-functions",
f"--with-configdir={get_prefix('alsa-lib')}/share/alsa",
f"--with-plugindir=/lib/{arch.get_target()}/alsa/plugins",
]
)
cpp.make()
cpp.make_install()
+1 -1
View File
@@ -8,7 +8,7 @@ maintainer("sisungo <[email protected]>")
source_managed("github://lu-zero/cargo-c#v0.10.26", "rust")
builddep("shortcut/rust")
builddep("pkgconf @target")
builddep("pkgconf-dev @target")
builddep("aws-lc-dev @target")
builddep("rust-bindgen")
+2 -2
View File
@@ -4,13 +4,13 @@ from lib import cpp
from lib.make import *
upstream_version = "4.5.1"
upstream_version = "4.4.2"
[upstream_major, upstream_minor, upstream_rev] = upstream_version.split(".")
version(upstream_version)
description("a cross-platform, open-source build system generator")
maintainer("sisungo <[email protected]>")
source_managed("github://Kitware/CMake#v4.5.1")
source_managed("github://Kitware/CMake#v4.4.2")
builddep("shortcut/c++")
builddep("shortcut/autotools")
+2 -3
View File
@@ -2,10 +2,10 @@ import lib.rust as rust
from lib.make import *
version("0.13.0")
version("0.12.0")
description("system core utilities")
maintainer("sisungo <[email protected]>")
source_managed("github://uutils/coreutils#0.13.0", "rust")
source_managed("github://uutils/coreutils#0.12.0", "rust")
block_hook("autolink")
@@ -133,4 +133,3 @@ for func in functions:
link(f"bin/coreutils", f"/bin/{func}")
rust.use_auto_pack(["bin"])
dep("semi-libc @same-arch")
dep("libunwind @same-arch")
+2 -3
View File
@@ -23,11 +23,10 @@ builddep("libgraphene-dev @target")
builddep("cups-dev @target")
builddep("libvulkan-dev @target")
builddep("vulkan-headers @target")
builddep("libdrm-dev @target")
#builddep("libgstreamer-dev @target")
builddep("libgstreamer-dev @target")
#builddep("libgstgl-dev @target")
#builddep("libgstplay-dev @target")
#builddep("libgstallocators-dev @target")
builddep("libgstallocators-dev @target")
builddep("shaderc")
builddep("linux-dev @target")
+4 -6
View File
@@ -6,9 +6,7 @@ from lib.make import *
from lib import cpp
icu_version = "~79"
version("14.3.1+2")
version("14.3.1+1")
description("HarfBuzz text shaping engine")
maintainer("sisungo <[email protected]>")
source_managed("github://harfbuzz/harfbuzz#14.3.1")
@@ -16,7 +14,7 @@ source_managed("github://harfbuzz/harfbuzz#14.3.1")
builddep("shortcut/meson")
builddep("shortcut/c++")
builddep("glib-dev @target")
builddep(f"libicu4c-dev ({icu_version}) @target")
builddep("libicu4c-dev @target")
builddep("libcairo-dev @target")
builddep("gobject-introspection @target")
builddep("glib-tools")
@@ -48,7 +46,7 @@ on_build(build)
package("libharfbuzz")
dep("libfreetype @same-arch")
dep("libcairo @same-arch")
dep(f"libicu4c ({icu_version}) @same-arch")
dep("libicu4c @same-arch")
dep("libpng @same-arch")
dep("libglib @same-arch")
dep("libgobject @same-arch")
@@ -64,7 +62,7 @@ package("libharfbuzz-dev")
dep("libharfbuzz (same)")
dep("libfreetype-dev @same-arch")
dep("libcairo-dev @same-arch")
dep(f"libicu4c-dev ({icu_version}) @same-arch")
dep("libicu4c-dev @same-arch")
dep("libpng-dev @same-arch")
dep("libz-dev @same-arch")
dep("glib-dev @same-arch")
-9
View File
@@ -1,9 +0,0 @@
#!/bin/sh
prefix=$(dirname $0)/../../
[ -e "/var/config/network/named.toml" ] && exit 0
echo "Copying the default named.toml to /var/config/network/ since it does not exist..."
mkdir -m 755 -p /var/config/network
cp "$prefix/share/hickory-dns/named.toml" "/var/config/network/named.toml"
-14
View File
@@ -1,14 +0,0 @@
[service]
display-name = "Hickory DNS"
description = "Stand-alone Hickory DNS service."
[exec]
pre-start = "%PREFIX%/share/hickory-dns/ensure-config"
start = "%PREFIX%/bin/hickory-dns --config /var/config/network/named.toml"
[env]
working_dir = "/var/empty"
clear_vars = true
[env.vars]
PATH = "/bin"
-7
View File
@@ -1,7 +0,0 @@
listen_addrs_ipv4 = ["0.0.0.0"]
listen_port = 53
[[zones]]
zone = "."
zone_type = "External"
stores = { type = "forward", name_servers = [{ ip = "1.1.1.1", connections = [{protocol = { type = "udp" }}] }] }
-44
View File
@@ -1,44 +0,0 @@
import os
from lib import rust
from lib.make import *
version("0.26.3")
description("A cross-platform, high-performance and asynchronous web server for static files-serving.")
maintainer("sisungo <[email protected]>")
source_managed("github://hickory-dns/hickory-dns#v0.26.3", "rust")
builddep("shortcut/rust")
def build():
rust.build()
on_build(build)
pkgdir = os.getcwd()
def service_file():
with open(f"{pkgdir}/hickory-dns.airs") as fd:
s = fd.read()
s = s.replace("%PREFIX%", get_prefix("hickory-dns"))
with open("hickory-dns.airs", "wt+") as fd:
fd.write(s)
return "hickory-dns.airs"
def pack(composer):
composer.makedir("bin")
for i in ["dns", "hickory-dns", "recurse", "resolve"]:
composer.add(rust.artifacts_dir() + "/" + i, "bin/" + i)
composer.makedir("share")
composer.makedir("share/services")
composer.add(service_file(), "share/services/hickory-dns.airs")
composer.makedir("share/hickory-dns")
composer.add(f"{pkgdir}/named.toml", "share/hickory-dns/named.toml")
composer.add(f"{pkgdir}/ensure-config", "share/hickory-dns/ensure-config")
package("hickory-dns")
dep("semi-libc @same-arch")
dep("libunwind @same-arch")
on_pack(pack)
+16 -13
View File
@@ -3,31 +3,34 @@ import os
from lib import cpp
from lib.make import *
version("79.1")
version("78.3")
description("a mature, widely used set of C/C++ libraries providing Unicode and Globalization support for software applications")
maintainer("sisungo <[email protected]>")
source_managed("github://unicode-org/icu#release-79.1")
source_url(
"https://github.com/unicode-org/icu/releases/download/release-78.3/icu4c-78.3-sources.tgz"
)
builddep("shortcut/c++")
builddep("shortcut/autotools")
def build():
os.chdir("icu4c/source")
cpp.configure([
"--enable-plugins",
"--prefix=/",
f"--bindir={get_prefix('icu4c')}/bin",
f"--sbindir={get_prefix('icu4c')}/sbin",
f"--libdir={get_prefix('libicu4c')}/lib",
f"--includedir={get_prefix('libicu4c-dev')}/include",
])
os.chdir("source")
cpp.configure(
[
"--enable-plugins",
"--prefix=/",
f"--bindir={get_prefix('icu4c')}/bin",
f"--sbindir={get_prefix('icu4c')}/sbin",
f"--libdir={get_prefix('libicu4c')}/lib",
f"--includedir={get_prefix('libicu4c-dev')}/include",
]
)
cpp.make()
cpp.make_install()
on_build(build)
on_build(build)
package("libicu4c")
cpp.use_auto_pack(["lib"])
@@ -2,8 +2,4 @@
[ "${ACTION}" = "remove" ] && exit
if [ -e "/share/milestones/default.airm" ]; then
exit 0
fi
"${PREFIX}/bin/airup-select-default-milestone" "normal-boot"
+3 -3
View File
@@ -5,16 +5,16 @@ import lib
from lib.make import *
version("0.1.0-alpha.3")
version("0.1.0-alpha.2")
description("SemiOS init scripts")
maintainer("sisungo <[email protected]>")
source_managed("gitea://gitea.semilabs.org/semios/init-scripts#v0.1.0-alpha.3")
source_managed("gitea://gitea.semilabs.org/semios/init-scripts#v0.1.0-alpha.2")
builddep("gnu-sed")
def build():
subprocess.run(["./install.sh", f"PREFIX={get_prefix('init-scripts')}"], check=True)
subprocess.run(["env", f"PREFIX={get_prefix('init-scripts')}", "sh", "install.sh"], check=True)
os.chdir("./target")
on_build(build)
+2 -2
View File
@@ -1,7 +1,7 @@
from lib import cpp, arch
from lib.make import *
version("1.34+1")
version("1.34")
description("a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases")
maintainer("sisungo <[email protected]>")
source_managed("github://kmod-project/kmod#v34")
@@ -23,7 +23,7 @@ def build():
f"-Dincludedir={get_prefix('libkmod-dev')}/include",
f"-Dbindir={get_prefix('kmod')}/bin",
f"-Ddistconfdir={get_prefix('libkmod')}/share",
"-Dmoduledir=/lib/modules",
"-Dmoduledir=/lib/lkm",
"-Dtools=true",
"-Ddlopen=all",
"-Dmanpages=false",
-56
View File
@@ -1,56 +0,0 @@
from lib import cpp
from lib.make import *
version("1.10.0")
description("Building blocks for modern GNOME applications")
maintainer("sisungo <[email protected]>")
source_managed("gitlab://gitlab.gnome.org/GNOME/libadwaita#1.10.0")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("libgtk-dev (~4) @target")
builddep("glib-tools")
builddep("gobject-introspection @target")
builddep("libministream-dev @target")
builddep("libintl-dev @target")
builddep("sassc")
builddep("gettext")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libadwaita')}/lib",
f"--includedir={get_prefix('libadwaita-dev')}/include",
"-Dintrospection=enabled",
"-Dvapi=false",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libadwaita")
dep("libglib @same-arch")
dep("libfribidi @same-arch")
dep("libgio @same-arch")
dep("libgobject @same-arch")
dep("libgtk (~4) @same-arch")
dep("libpango @same-arch")
dep("libgraphene @same-arch")
dep("libministream @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libadwaita-dev")
dep("libadwaita (same)")
dep("glib-dev @same-arch")
dep("libfribidi-dev @same-arch")
dep("libgtk-dev (~4) @same-arch")
dep("libpango-dev @same-arch")
dep("libgraphene-dev @same-arch")
dep("libministream-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+4 -8
View File
@@ -2,16 +2,14 @@ from lib import cpp, arch
from lib.make import *
icu_version = "~79"
version("0.23.3")
version("0.23.1")
description("C library for the Public Suffix List")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/rockdaboot/libpsl/releases/download/0.23.3/libpsl-0.23.3.tar.gz")
source_url("https://github.com/rockdaboot/libpsl/releases/download/0.23.1/libpsl-0.23.1.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep(f"libicu4c-dev ({icu_version}) @target")
builddep("libicu4c-dev @target")
builddep("pkgconf")
@@ -31,7 +29,7 @@ on_build(build)
package("libpsl")
dep("semi-libc @same-arch")
dep(f"libicu4c ({icu_version}) @same-arch")
dep("libicu4c @same-arch")
cpp.use_auto_pack(["lib"])
package("libpsl-tools")
@@ -40,6 +38,4 @@ cpp.use_auto_pack(["bin"])
package("libpsl-dev")
dep("libpsl (same)")
dep("semi-libc-dev @same-arch")
dep(f"libicu4c-dev ({icu_version}) @same-arch")
cpp.use_auto_pack(["dev"])
-35
View File
@@ -1,35 +0,0 @@
import os
from lib import cpp
from lib.make import *
version("3.6.6")
description("A C/C++ implementation of a Sass compiler")
maintainer("sisungo <[email protected]>")
source_managed("github://sass/libsass#3.6.6")
builddep("shortcut/c++")
builddep("shortcut/autotools")
def build():
os.environ["PREFIX"] = "/"
os.environ["DESTDIR"] = os.getcwd() + "/../cpp_install"
cpp.make(["install-shared"])
cpp.make(["install-static"])
os.chdir("../cpp_install")
on_build(build)
package("libsass")
dep("libcxx @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libsass-dev")
dep("libsass (same)")
dep("libcxx-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
-44
View File
@@ -1,44 +0,0 @@
import os
from lib import cpp
from lib.make import *
version("1.9.1")
description("Library for parsing Linux raw trace events")
maintainer("sisungo <[email protected]>")
source_url("https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/libtraceevent-1.9.1.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
def build():
cpp.make()
cpp.make_install([
"prefix=/",
f"libdir={get_prefix('libtraceevent')}/lib",
f"includedir={get_prefix('libtraceevent-dev')}/include/traceevent",
"DESTDIR=../cpp_install"
])
os.makedirs("lib/pkgconfig", exist_ok=True)
with open(f"lib/{current_target()}/pkgconfig/libtraceevent.pc") as fd:
pc = fd.read()
pc = pc.replace("prefix=/usr/local", "/")
pc = pc.replace("libdir=${prefix}/lib64", f"libdir={get_prefix('libtraceevent')}/lib")
pc = pc.replace("includedir=${prefix}/include", f"includedir={get_prefix('libtraceevent-dev')}/include")
with open("lib/pkgconfig/libtraceevent.pc", "wt+") as fd:
fd.write(pc)
on_build(build)
package("libtraceevent")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libtraceevent-dev")
dep("libtraceevent (same)")
dep("semi-libc-dev @same-arch")
dep("linux-dev @same-arch")
cpp.use_auto_pack(["dev"])
@@ -1,45 +0,0 @@
--- a/scripts/sign-file.c 2026-10-30 12:09:52.000000000 +0000
+++ b/scripts/sign-file.c 2026-11-16 12:19:52.001911278 +0000
@@ -201,9 +201,9 @@
X509 *x509;
BIO *bd, *bm;
int opt, n;
- OpenSSL_add_all_algorithms();
- ERR_load_crypto_strings();
- ERR_clear_error();
+ //OpenSSL_add_all_algorithms();
+ //ERR_load_crypto_strings();
+ //ERR_clear_error();
key_pass = getenv("KBUILD_SIGN_PIN");
--- a/scripts/sign-file.c 2026-11-16 12:21:08.614514667 +0000
+++ b/scripts/sign-file.c 2026-11-16 12:21:45.134000624 +0000
@@ -254,7 +254,7 @@
x509 = read_x509(x509_name);
/* Digest the module data. */
- OpenSSL_add_all_digests();
+ //OpenSSL_add_all_digests();
drain_openssl_errors(__LINE__, 0);
digest_algo = EVP_get_digestbyname(hash_algo);
ERR(!digest_algo, "EVP_get_digestbyname");
--- a/certs/extract-cert.c 2026-11-16 12:39:29.726151104 +0000
+++ b/certs/extract-cert.c 2026-11-16 12:50:19.821752865 +0000
@@ -127,9 +127,9 @@
char *cert_src;
char *verbose_env;
- OpenSSL_add_all_algorithms();
- ERR_load_crypto_strings();
- ERR_clear_error();
+ //OpenSSL_add_all_algorithms();
+ //ERR_load_crypto_strings();
+ //ERR_clear_error();
verbose_env = getenv("KBUILD_VERBOSE");
if (verbose_env && strchr(verbose_env, '1'))
+10 -57
View File
@@ -6,7 +6,7 @@ from lib import cpp, arch, packie
from lib.make import *
upstream_version = "7.3.5"
upstream_version = "7.2.12"
version(f"{upstream_version}")
description("the Linux operating system kernel")
@@ -16,38 +16,24 @@ source_url(f"https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-{upstream_versio
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libncurses-dev")
builddep("libexpat")
builddep("openssl-dev")
builddep("openssl-tools")
builddep("aws-lc-dev @target")
builddep("aws-lc-tools")
builddep("airboot-linux-stage2-mkinitramfs")
builddep("airboot-linux-stage2-arch @target")
builddep("flex")
builddep("bison")
builddep("bc")
builddep("gzip")
builddep("zstd")
builddep("bash")
builddep("util-linux-text")
builddep("rsync (=3.5.2)")
builddep("kmod")
builddep("perl")
builddep("airboot-linux-stage2-mkinitramfs")
builddep("airboot-linux-stage2-arch @target")
builddep("libgelf-dev @target")
builddep("libtraceevent-dev @target")
def get_arch():
return arch.get_target().split("-")[0].replace("riscv64", "riscv").replace("aarch64", "arm64")
return arch.get_target().split("-")[0].replace("aarch64", "arm64")
def get_variant():
return os.environ.get("LINUX_VARIANT")
def prepare_atomenv():
if in_atomic():
packie.select("/bin/openssl", "openssl-tools")
# FIXME: Currently, `bash` do not provide link `/bin/sh`
os.system("ln -sf /bin/bash /bin/sh")
def prepare_config():
config_name = get_arch()
if get_variant():
@@ -57,13 +43,7 @@ def prepare_config():
shutil.copy2(config_file, ".config")
def make_install_everything():
makeopts = [
f"ARCH={get_arch()}",
"LLVM=1",
f"CC={packie.prefix_of('clang')}/bin/clang",
f"HOSTCC={os.environ.get('HOSTCC', 'cc')}",
f"KCFLAGS=-isystem {packie.prefix_of('clang')}/lib/clang/23/include",
]
makeopts = [f"ARCH={get_arch()}", "LLVM=1", f"HOSTCC={os.environ.get('HOSTCC', 'cc')}"]
cpp.make(makeopts + ["olddefconfig"])
cpp.make(makeopts)
@@ -74,23 +54,10 @@ def make_install_everything():
)
os.remove(f"../kmod_install/lib/modules/{upstream_version}/build")
def make_perf():
oldpwd = os.getcwd()
os.chdir("tools/perf")
cpp.make([
f"ARCH={get_arch()}",
"LLVM=1",
"NO_LIBDW=1",
"NO_LIBELF=0",
"NO_JEVENTS=1",
"EXTRA_CFLAGS=-Wno-error=unused-but-set-global -Wno-error=initializer-overrides",
])
os.chdir(oldpwd)
def create_initramfs():
asp_prefix = packie.prefix_of(f"airboot-linux-stage2-arch @{arch.get_target()}")
subprocess.run([
f"{packie.prefix_of('airboot-linux-stage2-mkinitramfs')}/bin/mkinitramfs",
"mkinitramfs",
"-a", f"{asp_prefix}/data",
"-o", f"{os.getcwd()}/../initramfs.img",
"-m", f"{os.getcwd()}/../kmod_install",
@@ -102,17 +69,15 @@ def generate_info():
info += f"KERNEL_INFO_UPSTREAM_VERSION={upstream_version}\n"
info += f"KERNEL_INFO_VARIANT={get_variant() or ''}\n"
info += f"KERNEL_INFO_ARCHITECTURE={get_arch()}\n"
with open("../KernelInfo.txt", "wt+") as fd:
with open(f"../KernelInfo.txt", "wt+") as fd:
fd.write(info)
def build():
prepare_atomenv()
prepare_config()
make_install_everything()
create_initramfs()
generate_info()
make_perf()
on_build(build)
@@ -139,28 +104,16 @@ def pack_linux(composer):
composer.addfile(initramfs_origin, "initramfs.img")
composer.addfile("../KernelInfo.txt", "KernelInfo.txt")
def pack_perf(composer):
composer.makedir("bin")
composer.add("tools/perf/perf", "bin/perf")
base_name = "linux"
if os.environ.get("LINUX_VARIANT"):
base_name += "-" + os.environ["LINUX_VARIANT"]
package(f"{base_name}")
configure_script("configure/kernel-install")
configure_script("configure/kernel-remove")
link("modules", f"/lib/modules/{upstream_version}")
on_pack(pack_linux)
package(f"{base_name}-dev")
description("the Linux operating system kernel -- development files (e.g. headers)")
on_pack(pack_linux_dev)
if base_name == "linux":
package("perf")
description("the Linux operating system kernel -- performance counter tool")
dep("semi-libc @same-arch")
dep("libgelf @same-arch")
dep("libtraceevent @same-arch")
on_pack(pack_perf)
@@ -1,3 +1,3 @@
$-Wl,-L/lib/aarch64-semios-linux
-L/lib/aarch64-semios-linux
-B/lib/aarch64-semios-linux
-rtlib=compiler-rt
@@ -1,3 +1,3 @@
$-Wl,-L/lib/riscv64-semios-linux
-L/lib/riscv64-semios-linux
-B/lib/riscv64-semios-linux
-rtlib=compiler-rt
@@ -1,3 +1,3 @@
$-Wl,-L/lib/wasm32-semios-wasip3
-L/lib/wasm32-semios-wasip3
-B/lib/wasm32-semios-wasip3
-rtlib=compiler-rt
@@ -1,3 +1,3 @@
$-Wl,-L/lib/x86_64-semios-linux
-L/lib/x86_64-semios-linux
-B/lib/x86_64-semios-linux
-rtlib=compiler-rt
+5 -4
View File
@@ -4,23 +4,24 @@ import shutil
import glob
import lib
from lib import cpp, packie
from lib import arch, cpp, packie
from lib.make import *
pkgver = "23.1.5"
pkgver = "23.1.4"
[pkgver_major, pkgver_minor, pkgver_rev] = pkgver.split(".")
version(pkgver)
description("a collection of modular and reusable compiler and toolchain technologies")
maintainer("sisungo <[email protected]>")
source_managed("github://llvm/llvm-project#llvmorg-23.1.5")
source_managed("github://llvm/llvm-project#llvmorg-23.1.4")
builddep("shortcut/c++")
builddep("shortcut/cmake")
builddep("linux-dev @target")
builddep("libffi-dev @target")
builddep("libz-ng-dev @target")
builddep("aws-lc-dev @target")
builddep("libunwind-dev @target")
@@ -28,7 +29,7 @@ srcdir = None
packname = None
def llvm_host_triple():
return current_target().replace("-semios-linux", "-unknown-linux-musl")
return arch.get_target().replace("-semios-linux", "-unknown-linux-musl")
def cmake(sourcedir, args):
builddir = os.getcwd() + f"/../_build_{sourcedir}"
+2 -2
View File
@@ -4,10 +4,10 @@ from lib import rust
from lib.make import *
version("0.1.0-alpha.6")
version("0.1.0-alpha.5")
description("Linux device userspace daemon.")
maintainer("sisungo <[email protected]>")
source_managed("gitea://gitea.semilabs.org/semios/lxdeviced#v0.1.0-alpha.6", "rust")
source_managed("gitea://gitea.semilabs.org/semios/lxdeviced#0.1.0-alpha.5", "rust")
builddep("shortcut/rust")
-41
View File
@@ -1,41 +0,0 @@
from lib import cpp
from lib.make import *
version("0.99.1")
description("a small subset of libappstream, intended to be used by libadwaita")
maintainer("sisungo <[email protected]>")
source_managed("gitlab://gitlab.gnome.org/GNOME/ministream#0.99.1")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("glib-tools")
builddep("gobject-introspection @target")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libministream')}/lib",
f"--includedir={get_prefix('libministream-dev')}/include",
"-Dintrospection=enabled",
"-Das-compare=disabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libministream")
dep("libglib @same-arch")
dep("libgobject @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libministream-dev")
dep("libministream (same)")
dep("glib-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+22
View File
@@ -0,0 +1,22 @@
from lib import rust
from lib.make import *
version("3.0.0")
description("A Modern Linker in Rust")
maintainer("sisungo <[email protected]>")
source_managed("github://rui314/mold#v3.0.0", "rust")
builddep("shortcut/rust")
def build():
rust.build()
on_build(build)
package("mold")
dep("semi-libc @same-arch")
dep("libunwind @same-arch")
rust.use_auto_pack(["bin"])
-28
View File
@@ -1,28 +0,0 @@
from lib.make import *
from lib import cpp
version("3.2")
description("The Netwide Assembler")
maintainer("sisungo <[email protected]>")
source_url("https://www.nasm.us/pub/nasm/releasebuilds/3.02/nasm-3.02.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libz-dev @target")
def build():
cpp.configure([
f"--prefix={get_prefix('nasm')}",
])
cpp.make()
cpp.make_install()
on_build(build)
package("nasm")
dep("semi-libc @same-arch")
dep("libz @same-arch")
cpp.use_auto_pack(["bin"])
@@ -1,10 +0,0 @@
--- a/deps/LIEF/third-party/frozen/include/frozen/map.h 2026-11-11 00:20:13.000000000 +0000
+++ b/deps/LIEF/third-party/frozen/include/frozen/map.h 2026-11-22 04:46:13.860461200 +0000
@@ -23,6 +23,7 @@
#ifndef FROZEN_LETITGO_MAP_H
#define FROZEN_LETITGO_MAP_H
+#include <functional>
#include "frozen/bits/algorithms.h"
#include "frozen/bits/basic_types.h"
#include "frozen/bits/exceptions.h"
-90
View File
@@ -1,90 +0,0 @@
from lib.make import *
from lib import cpp
version("26.13.1")
description("A free, open-source and cross-platform JavaScript runtime environment.")
maintainer("sisungo <[email protected]>")
source_url("https://nodejs.org/dist/v26.13.1/node-v26.13.1.tar.gz")
builddep("shortcut/c++")
builddep("pkgconf @target")
builddep("ninja @target")
builddep("libsqlite-dev @target")
builddep("libuv-dev @target")
builddep("libnghttp2-dev @target")
builddep("libz-dev @target")
builddep("libbrotli-dev @target")
builddep("libcares-dev @target")
builddep("libzstd-dev @target")
builddep("libicu4c-dev (~78) @target")
builddep("libngtcp2-dev @target")
builddep("libnghttp3-dev @target")
builddep("python (>=3.14.0, <=3.14.9999) @target")
builddep("linux-dev @target")
builddep("gnu-make")
builddep("gnu-sed")
builddep("grep")
def build():
if in_atomic():
with open(f"/lib/{current_target()}/libatomic.a", "wt+"):
pass
cpp.configure([
f"--prefix={get_prefix('node')}",
"--use_clang",
"--enable-lto",
"--openssl-use-def-ca-store",
"--openssl-system-ca-path", "/var/config/ssl/ca-certificates.crt",
"--shared-libuv",
"--shared-nghttp2",
"--shared-zlib",
"--shared-brotli",
"--shared-cares",
#"--shared-sqlite",
"--shared-zstd",
"--shared-ngtcp2",
"--shared-nghttp3",
#"--shared-openssl",
"--with-intl", "system-icu",
])
cpp.make()
cpp.make_install()
on_build(build)
def pack(composer):
composer.makedir("bin")
composer.add("bin/node")
def pack_npm(composer):
composer.add("lib")
composer.makedir("bin")
for i in ["npm", "npx"]:
with open(f"bin/{i}") as fd:
file = fd.read()
file = file.replace("#!/usr/bin/env node", "#!/bin/node")
with open(f"bin/{i}", "wt") as fd:
fd.write(file)
composer.add(f"bin/{i}")
package("node")
dep("semi-libc @same-arch")
dep("libcxx @same-arch")
dep("libz @same-arch")
dep("libuv @same-arch")
dep("libbrotli @same-arch")
dep("libcares @same-arch")
dep("libnghttp2 @same-arch")
dep("libnghttp3 @same-arch")
dep("libngtcp2 @same-arch")
dep("libzstd @same-arch")
dep("libicu4c (~78) @same-arch")
on_pack(pack)
package("npm")
dep("node")
arch_any()
on_pack(pack_npm)
+3 -11
View File
@@ -6,10 +6,10 @@ from lib import cpp, packie
from lib.make import *
version("27.0.1.1+0004")
version("27.0.0")
description("JDK implementation of the OpenJDK project.")
maintainer("sisungo <[email protected]>")
source_managed("github://openjdk/jdk27u#jdk-27.0.1.1+4-manual")
source_managed("github://openjdk/jdk#v27ga")
builddep("shortcut/c++")
builddep("shortcut/autotools")
@@ -26,17 +26,13 @@ builddep("linux-dev @target")
builddep("bash")
builddep("file")
builddep("zip")
builddep("gzip")
builddep("openjdk")
block_hook("autolink")
builddep("openjdk @target")
def build():
os.environ["CC"] = "clang"
os.environ["CXX"] = "clang++"
cpp.configure([
f"--prefix={get_prefix('openjdk')}",
"--enable-headless-only",
"--enable-jvm-feature-cds",
"--enable-jvm-feature-compiler1",
@@ -88,11 +84,7 @@ def pack(composer):
composer.add("legal")
composer.add("lib")
composer.add("release")
for i in os.listdir("bin"):
link(f"bin/{i}", f"/bin/{i}")
package("openjdk")
dep("semi-libc @same-arch")
dep("libcxx @same-arch")
dep("libz @same-arch")
on_pack(pack)
-105
View File
@@ -1,105 +0,0 @@
import subprocess
import os
from lib import cpp, arch
from lib.make import *
version("4.1.0")
description("General purpose TLS and crypto library")
maintainer("sisungo <[email protected]>")
source_managed("github://openssl/openssl#openssl-4.1.0")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libz-dev @target")
builddep("libzstd-dev @target")
builddep("libbrotli-dev @target")
builddep("linux-dev @target")
builddep("perl")
def build():
subprocess.run(
[
"./Configure",
"enable-brotli-dynamic",
"no-deprecated",
"no-dtls1",
"no-dtls1-method",
"no-legacy",
"no-nextprotoneg",
"no-rc2",
"no-rc4",
"no-tls1",
"no-tls1-method",
"no-tls1_1",
"no-tls1_1-method",
"enable-zlib-dynamic",
"enable-zstd-dynamic",
"--prefix=/",
"--openssldir=/var/config/ssl",
],
check=True,
)
cpp.make()
cpp.make_install()
on_build(build)
def fix_pc(path, pkgname):
with open(path) as fd:
pc = fd.read()
pc = pc.replace("libdir=${exec_prefix}/lib", f"libdir={get_prefix(pkgname)}/lib")
pc = pc.replace("includedir=${prefix}/include", f"includedir={get_prefix('openssl-dev')}/include")
with open(path, "wt+") as fd:
fd.write(pc)
def pack_libcrypto(composer):
composer.makedir("lib")
composer.add("lib/libcrypto.so")
composer.add("lib/libcrypto.so.4")
def pack_libssl(composer):
composer.makedir("lib")
composer.add("lib/libssl.so")
composer.add("lib/libssl.so.4")
def pack_dev(composer):
fix_pc("lib/pkgconfig/libcrypto.pc", "openssl-libcrypto")
fix_pc("lib/pkgconfig/libssl.pc", "openssl-libssl")
composer.makedir("lib")
composer.add("lib/cmake")
composer.add("lib/pkgconfig")
composer.add("lib/libcrypto.a")
composer.add("lib/libssl.a")
composer.add("include")
def pack_docs(composer):
composer.add("share")
package("openssl-libcrypto")
dep("semi-libc @same-arch")
on_pack(pack_libcrypto)
package("openssl-libssl")
dep("openssl-libcrypto (same)")
dep("semi-libc @same-arch")
on_pack(pack_libssl)
package("openssl-tools")
dep("openssl-libcrypto (same)")
dep("openssl-libssl (same)")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin"])
package("openssl-dev")
dep("openssl-libcrypto (same)")
dep("openssl-libssl (same)")
dep("semi-libc-dev @same-arch")
on_pack(pack_dev)
package("openssl-docs")
arch_any()
on_pack(pack_docs)
+2 -2
View File
@@ -2,10 +2,10 @@ from lib import rust
from lib.make import *
version("0.1.0-alpha.6")
version("0.1.0-alpha.5")
description("SemiOS package manager")
maintainer("sisungo <[email protected]>")
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.6", "rust")
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.5", "rust")
builddep("shortcut/rust")
builddep("libsqlite-dev @target")
-38
View File
@@ -1,38 +0,0 @@
from lib import cpp
from lib.make import *
version("1.6.11")
description("")
maintainer("")
source_managed("gitlab://gitlab.freedesktop.org/pipewire/pipewire#1.6.11")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("glib-tools")
builddep("alsa-lib-dev @target")
builddep("linux-dev @target")
def build():
cpp.meson_setup([
"-Dgstreamer=disabled",
"-Dgstreamer-device-provider=disabled",
"-Dlibsystemd=disabled",
"-Dlogind=disabled",
"-Dselinux=disabled",
"-Dpipewire-alsa=enabled",
"-Dpipewire-jack=disabled",
"-Dpipewire-v4l2=disabled",
"-Djack-devel=false",
"-Dspa-plugins=enabled",
"-Dudev=disabled",
"-Dsdl2=disabled",
"-Ddbus=disabled",
"-Dsession-managers="
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
+3 -5
View File
@@ -29,7 +29,7 @@ builddep("pkgconf")
def build():
configure_args = [
cpp.configure([
"--prefix=/",
f"--libdir={get_prefix('libpython')}/lib",
f"--bindir={get_prefix('python')}/bin",
@@ -45,12 +45,10 @@ def build():
"--with-system-expat",
"--with-system-libmpdec",
"--with-readline=editline",
"--with-tail-call-interp",
"--without-ensurepip",
"--with-ssl-default-suites=openssl",
]
if arch.get_target() in ["x86_64-semios-linux", "aarch64-semios-linux"]:
configure_args += ["--with-tail-call-interp"]
cpp.configure(configure_args)
])
cpp.make()
cpp.make_install()
os.rename(
+5 -6
View File
@@ -376,12 +376,6 @@ build.ccache = false
# For example, exclude = ["tests/ui", "src/tools/tidy"].
#build.exclude = []
# Link the compiler and LLVM against the specified allocator instead of the default libc allocator.
# This option is only tested on Linux and OSX. It can also be configured per-target in the
# [target.<tuple>] section.
# Possible options: "jemalloc"
#build.allocator = <default>
# =============================================================================
# General install configuration options
# =============================================================================
@@ -686,6 +680,11 @@ rust.verify-llvm-ir = false
# Useful for reproducible builds. Generally only set for releases
rust.remap-debuginfo = true
# Link the compiler and LLVM against `jemalloc` instead of the default libc allocator.
# This option is only tested on Linux and OSX. It can also be configured per-target in the
# [target.<tuple>] section.
rust.jemalloc = false
# Run tests in various test suites with the "nll compare mode" in addition to
# running the tests in normal mode. Largely only used on CI and during local
# development of NLL
+4 -4
View File
@@ -6,7 +6,7 @@ from lib.make import *
from lib import arch
upstream_version = "1.100.0"
upstream_version = "1.99.1"
version(upstream_version)
description("A language empowering everyone to build reliable and efficient software")
@@ -16,9 +16,9 @@ source_url(f"https://static.rust-lang.org/dist/rustc-{upstream_version}-src.tar.
builddep("shortcut/cmake")
builddep("shortcut/c++")
builddep("python")
builddep("libz-ng-dev @target")
builddep("linux-dev @target")
builddep("libunwind-dev @target")
builddep(f"libz-ng-dev @{arch.get_target()}")
builddep(f"linux-dev @{arch.get_target()}")
builddep(f"libunwind-dev @{arch.get_target()}")
builddep("curl")
builddep("grep")
builddep("sed")
-27
View File
@@ -1,27 +0,0 @@
from lib import cpp
from lib.make import *
version("3.6.2")
description("libsass command line driver")
maintainer("sisungo <[email protected]>")
source_managed("github://sass/sassc#3.6.2", "autotools")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep("libsass-dev @target")
def build():
cpp.configure()
cpp.make()
cpp.make_install()
on_build(build)
package("sassc")
dep("libsass @same-arch")
dep("libcxx @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin"])
+5 -3
View File
@@ -1,11 +1,10 @@
from lib import arch, cpp
from lib.make import *
version("1.2.6.4")
version("1.2.6.3")
description("the SemiOS fork of musl-libc, providing POSIX C standard library and system runtime")
maintainer("sisungo <[email protected]>")
source_managed("gitea://gitea.semilabs.org/semios/semi-libc#v1.2.6.4")
source_managed("gitea://gitea.semilabs.org/semios/semi-libc#v1.2.6.3")
builddep("shortcut/c")
builddep("shortcut/autotools")
@@ -13,18 +12,21 @@ builddep("bash")
def build():
# FIXME: Building the package requires `/bin/sh` to be bash.
if in_atomic():
os.system("ln -sf /bin/bash /bin/sh")
cpp.configure(["--prefix=/"])
cpp.make()
cpp.make_install()
on_build(build)
def musl_target():
return arch.get_target().split("-")[0]
package("semi-libc")
cpp.use_auto_pack(["lib"])
link("lib/libc.so", f"/lib/ld-musl-{musl_target()}.so.1")
+4 -34
View File
@@ -1,24 +1,20 @@
import os
from lib.make import *
from lib import arch
def deplinux(s):
if "linux" in arch.get_target():
dep(s)
version("1.0.0")
maintainer("sisungo <[email protected]>")
source_url(f"file://{os.getcwd()}/empty.tar")
on_build(lambda: print("Building virtual package `semios-assembly`..."))
def deplinux(s):
if "linux" in current_target():
dep(s)
package("SemiOS.Assembly.CoreRuntime")
description("Assembly of the core SemiOS runtime")
dep("SemiOS.BaseFiles")
deplinux("semi-libc @same-arch")
deplinux("libgcc-compat @same-arch")
dep("libunwind @same-arch")
@@ -29,8 +25,6 @@ dep("diffutils @same-arch")
dep("grep @same-arch")
dep("packie @same-arch")
dep("iana-timezone-db")
deplinux("util-linux-mount @same-arch")
deplinux("procps-ng @same-arch")
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.CoreRuntime`..."))
package("SemiOS.Assembly.Cli")
@@ -40,7 +34,6 @@ dep("ncurses-tools @same-arch")
dep("ncurses-terminfo")
dep("mandoc @same-arch")
dep("neatvi @same-arch")
deplinux("util-linux-term @same-arch")
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Cli`..."))
package("SemiOS.Assembly.Networking")
@@ -50,31 +43,8 @@ dep("aws-lc-tools @same-arch")
dep("certutil @same-arch")
dep("ca-certificates")
deplinux("iproute2 @same-arch")
deplinux("iputils @same-arch")
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Networking`..."))
package("SemiOS.Assembly.Bootable")
description("Assembly of packages that are necessary for a bootable system")
dep("SemiOS.Assembly.CoreRuntime @same-arch")
dep("SemiOS.Assembly.Cli @same-arch")
dep("SemiOS.Assembly.Networking @same-arch")
dep("airup @same-arch")
dep("init-scripts")
dep("lxdeviced @same-arch")
dep("account @same-arch")
dep("sudo @same-arch")
deplinux("util-linux-fs @same-arch")
deplinux("util-linux-swap @same-arch")
deplinux("util-linux-mkfs @same-arch")
deplinux("util-linux-fsck @same-arch")
deplinux("util-linux-proc @same-arch")
deplinux("util-linux-arch @same-arch")
deplinux("util-linux-hardware @same-arch")
deplinux("util-linux-security @same-arch")
deplinux("util-linux-ipc @same-arch")
deplinux("kmod @same-arch")
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Bootable`..."))
package("SemiOS.Assembly.NativeDevTools")
description("Assembly of essential SemiOS build tools for native code")
dep("llvm @same-arch")
@@ -1,29 +0,0 @@
#!/bin/sh
[ "$ACTION" == "remove" ] && exit 0
# When this script is run: we already have some directories, but their permissions might be incorrect.
# Let us correct them.
mkdir -p /pkg && chmod 00755 /pkg
mkdir -p /var && chmod 00755 /var
mkdir -p /bin && chmod 00755 /bin
mkdir -p /lib && chmod 00755 /lib
mkdir -p /share && chmod 00755 /share
mkdir -p /home && chmod 00755 /home
mkdir -p /home/root && chmod 02700 /home/root
mkdir -p /tmp && chmod 01777 /tmp
mkdir -p /run && chmod 00755 /run
# Create directory `/var/empty`
# It should never be written, but can be chdir'ed. So 555 for its permission.
mkdir -p /var/empty && chmod 00555 /var/empty
# Create directory `/var/log`
# It has subdirectories for different providers, which may be accessed from different users, so we use 755 here
mkdir -p /var/log && chmod 00755 /var/log
# Alias: `/var/run -> /run`, using relative path to better view out of the container
ln -s ../run /var/run
# Global "long-lived" temp file directory, globally-accessible but with sticky bit
mkdir -p /var/tmp && chmod 01777 /var/tmp
Binary file not shown.
-19
View File
@@ -1,19 +0,0 @@
import os
from lib.make import *
version("1.0.0")
description("Base SemiOS files that are not created by links.")
maintainer("sisungo <[email protected]>")
source_url(f"file://{os.getcwd()}/empty.tar")
on_build(lambda: print("Building virtual package `base-files`..."))
package("SemiOS.BaseFiles")
arch_any()
dep("mksh")
dep("coreutils")
configure_script("configure/create-base-files")
on_pack(lambda _: print("Packing virtual package `base-files`..."))
-32
View File
@@ -1,32 +0,0 @@
from lib import cpp
from lib.make import *
version("1.6.11")
description("")
maintainer("")
source_managed("gitlab://gitlab.freedesktop.org/pipewire/wireplumber#0.5.19")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("glib-tools")
builddep("gobject-introspection @target")
def build():
cpp.meson_setup([
"-Dintrospection=enabled",
"-Dmodules=true",
"-Ddaemon=true",
"-Dtools=true",
"-Dsystem-lua=false",
"-Delogind=disabled",
"-Dsystemd=disabled",
"-Dsystemd-system-service=false",
"-Dsystemd-user-service=false",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
+2 -2
View File
@@ -4,10 +4,10 @@ from lib import cpp
from lib.make import *
version("1.6.0")
version("1.5.7")
description("Zstandard - Fast real-time compression algorithm")
maintainer("sisungo <[email protected]>")
source_managed("github://facebook/zstd#v1.6.0")
source_managed("github://facebook/zstd#v1.5.7")
builddep("shortcut/c")
builddep("shortcut/autotools")