Compare commits

...
14 Commits
Author SHA1 Message Date
sisungo fd5cde82bb feat: add package rust
Signed-off-by: sisungo <[email protected]>
2026-08-14 16:55:50 +08:00
sisungo 89744adb38 Merge pull request 'feat: add package htop' (#143) from sisungo/semios-packages:htop into master
Reviewed-on: semios/semios-packages#143
2026-08-10 11:38:10 +08:00
sisungo fc753703c4 feat: add package htop
Signed-off-by: sisungo <[email protected]>
2026-08-10 11:18:38 +08:00
sisungo 132ed2d8b3 Merge pull request 'feat: add package maintainers' (#142) from sisungo/semios-packages:maintainers into master
Reviewed-on: semios/semios-packages#142
2026-08-10 09:54:41 +08:00
sisungo 41d0b79083 feat: add package maintainers
Signed-off-by: sisungo <[email protected]>
2026-08-10 09:53:45 +08:00
sisungo 232aa0b690 Merge pull request 'feat: add package packie' (#54) from sisungo/semios-packages:packie into master
Reviewed-on: semios/semios-packages#54
2026-08-09 22:32:19 +08:00
sisungo 65dd900ea4 feat: add package packie
Signed-off-by: sisungo <[email protected]>
2026-08-09 21:23:01 +08:00
sisungo ea440a2465 Merge pull request 'fix: llvm build configuration has invalid fields' (#141) from sisungo/semios-packages:llvmfix into master
Reviewed-on: semios/semios-packages#141
2026-08-09 14:22:52 +08:00
sisungo e7d77b63b3 fix: llvm build configuration has invalid fields
Signed-off-by: sisungo <[email protected]>
2026-08-09 13:01:40 +08:00
sisungo 2f7053488b Merge pull request 'feat: add package bash' (#135) from sisungo/semios-packages:bash into master
Reviewed-on: semios/semios-packages#135
2026-08-08 10:26:41 +08:00
sisungo cb9842b371 Merge pull request 'feat: add description to packages' (#140) from sisungo/semios-packages:description into master
Reviewed-on: semios/semios-packages#140
2026-08-08 10:20:03 +08:00
sisungo 25525068bd Merge pull request 'fix: atombuild delayed copying resolv.conf' (#139) from sisungo/semios-packages:atomfix into master
Reviewed-on: semios/semios-packages#139
2026-08-08 10:19:48 +08:00
sisungo 2a7def094d feat: add package bash
Signed-off-by: sisungo <[email protected]>
2026-08-08 01:45:44 +08:00
sisungo 91b153d21b feat: add description to packages
Signed-off-by: sisungo <[email protected]>
2026-08-08 01:37:30 +08:00
74 changed files with 1122 additions and 24 deletions
+6
View File
@@ -7,6 +7,7 @@ from . import pkgcomposer, sources
_key_global = "@global"
_key_version = "version"
_key_description = "description"
_key_maintainers = "maintainers"
_key_on_pack = "on_pack"
_key_arch_any = "arch_any"
_key_links = "links"
@@ -19,6 +20,7 @@ _pkginfo: dict[str, dict[str, typing.Any]] = {
_key_global: {
_key_links: [],
_key_dependencies: [],
_key_maintainers: [],
_key_provides: [],
_key_recommendations: [],
},
@@ -69,6 +71,10 @@ def description(s: str):
_pkginfo[_current_pkgname][_key_description] = s
def maintainer(s: str):
_pkginfo[_current_pkgname][_key_maintainers] += [s]
def arch_any():
_pkginfo[_current_pkgname][_key_arch_any] = True
+2
View File
@@ -5,6 +5,8 @@ from lib import rust
from lib.make import *
version("0.10.9")
description("Modern, portable and fast implementation of service supervisor and the init daemon.")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/sisungo/airup/archive/refs/tags/v0.10.9.tar.gz")
builddep("shortcut/rust")
+2
View File
@@ -4,6 +4,8 @@ from lib.make import *
upstream_version = "1.2.16.1"
version(upstream_version)
description("audio and MIDI functionality for the Linux operating system")
maintainer("sisungo <[email protected]>")
source_url("https://www.alsa-project.org/files/pub/lib/alsa-lib-1.2.16.1.tar.bz2")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ from lib.make import *
from lib import cpp
version("1.2.16")
description("audio and MIDI functionality for the Linux operating system")
maintainer("sisungo <[email protected]>")
source_url("https://www.alsa-project.org/files/pub/utils/alsa-utils-1.2.16.tar.bz2")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("2026.4.26")
description("The One True Awk programming language")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/onetrueawk/awk/archive/refs/tags/20260426.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ import lib.cpp as cpp
from lib.make import *
version("5.1.0")
description("a general-purpose cryptographic library maintained by the AWS Cryptography team")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/aws/aws-lc/archive/refs/tags/v5.1.0.tar.gz")
builddep("shortcut/c")
+85
View File
@@ -0,0 +1,85 @@
import os
from lib.make import *
from lib import cpp
version("5.3")
description("the Bourne Again SHell")
maintainer("sisungo <[email protected]>")
source_url("https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz")
builddep("shortcut/c")
builddep("shortcut/autotools")
builddep(f"libncurses-dev @{arch.get_target()}")
def build():
cpp.configure([
f"--prefix={get_prefix('bash')}",
f"--datarootdir={get_prefix('bash-doc')}/share",
f"--localedir={get_prefix('bash')}/share/locale",
"--enable-alias",
"--enable-alt-array-implementation",
"--enable-arith-for-command",
"--enable-array-variables",
"--enable-bang-history",
"--enable-brace-expansion",
"--enable-casemod-attributes",
"--enable-casemod-expansions",
"--enable-command-timing",
"--enable-cond-command",
"--enable-cond-regexp",
"--enable-coprocesses",
"--enable-directory-stack",
"--enable-dparen-arithmetic",
"--enable-extended-glob",
"--enable-function-import",
"--enable-glob-asciiranges-default",
"--enable-help-builtin",
"--enable-history",
"--enable-job-control",
"--enable-multibyte",
"--enable-net-redirections",
"--enable-process-substitution",
"--enable-progcomp",
"--enable-prompt-string-decoding",
"--enable-readline",
"--enable-restricted",
"--enable-select",
"--enable-separate-helpfiles",
"--enable-single-help-strings",
"--enable-translatable-strings",
"--without-bash-malloc",
])
cpp.make()
cpp.make_install()
on_build(build)
def pack_bash(composer):
composer.add_dir("bin", "bin")
composer.makedir("lib")
composer.add_dir("lib/bash", "lib/bash")
os.remove(f"{composer.workdir}/bundle/lib/bash/loadables.h")
os.remove(f"{composer.workdir}/bundle/lib/bash/Makefile.inc")
os.remove(f"{composer.workdir}/bundle/lib/bash/Makefile.sample")
composer.makedir("share")
composer.add_dir("share/locale", "share/locale")
def pack_doc(composer):
composer.makedir("share")
composer.add_dir("share/bash", "share/bash")
composer.add_dir("share/doc", "share/doc")
composer.add_dir("share/info", "share/info")
composer.add_dir("share/man", "share/man")
package("bash")
dep("semi-libc @same-arch")
dep("libncurses @same-arch")
on_pack(pack_bash)
package("bash-dev")
dep("bash (same)")
cpp.use_auto_pack(["dev"])
package("bash-doc")
on_pack(pack_doc)
+2
View File
@@ -2,6 +2,8 @@ from lib import arch, cpp
from lib.make import *
version("7.0.3")
description("An implementation of the POSIX bc calculator with GNU extensions and dc")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/gavinhoward/bc/releases/download/7.0.3/bc-7.0.3.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp
from lib.make import *
version("3.7.91")
description("a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables")
maintainer("sisungo <[email protected]>")
source_url("https://alpha.gnu.org/gnu/bison/bison-3.7.91.tar.xz")
builddep("shortcut/c")
+2
View File
@@ -6,6 +6,8 @@ from lib.make import *
VERSION = "2026.6.19"
version(VERSION)
description("The BSD make utility ported to non-BSD systems")
maintainer("sisungo <[email protected]>")
source_url("https://www.crufty.net/ftp/pub/sjg/bmake-20260619.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("1.2.0")
description("Brotli compression format")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/google/brotli/archive/refs/tags/v1.2.0.tar.gz")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("2.0")
description("Berkeley yacc")
maintainer("sisungo <[email protected]>")
source_url("https://www.invisible-island.net/archives/byacc/byacc-2.0.tgz")
builddep("shortcut/c")
+2
View File
@@ -10,6 +10,8 @@ builddep("shortcut/c")
builddep("shortcut/autotools")
version(f"{upstream_version}")
description("a freely available, patent free, high-quality data compressor")
maintainer("sisungo <[email protected]>")
source_url(f"https://sourceware.org/pub/bzip2/bzip2-{upstream_version}.tar.gz")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp
from lib.make import *
version("1.34.6")
description("A C library for asynchronous DNS requests")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/c-ares/c-ares/releases/download/v1.34.6/c-ares-1.34.6.tar.gz"
)
+2
View File
@@ -3,6 +3,8 @@ import os
from lib.make import *
version("2026.7.4")
description("SemiOS system-level trusted CA database")
maintainer("sisungo <[email protected]>")
source_url(
"https://gitea.semilabs.org/semios/ca-certificates/releases/download/v2026.07.04/ca-certificates-2026.07.04.tar"
)
+2
View File
@@ -2,6 +2,8 @@ from lib import rust
from lib.make import *
version("0.1.0")
description("SemiOS certification utility")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/certutil/archive/v0.1.0.tar.gz")
builddep("shortcut/rust")
+6
View File
@@ -8,6 +8,8 @@ upstream_version = "4.3.4"
[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_url(
"https://github.com/Kitware/CMake/releases/download/v4.3.4/cmake-4.3.4.tar.gz"
)
@@ -60,4 +62,8 @@ package("cmake")
dep("semi-libc @same-arch")
dep("libcxx @same-arch")
dep("libcurl @same-arch")
dep("librhash @same-arch")
dep("libz @same-arch")
dep("libarchive @same-arch")
dep("libexpat @same-arch")
on_pack(pack_cmake)
+4 -2
View File
@@ -1,8 +1,10 @@
import lib.rust as rust
from lib.make import *
version("0.9.0")
source_url("https://github.com/uutils/coreutils/archive/refs/tags/0.9.0.tar.gz")
version("0.10.0")
description("system core utilities")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/uutils/coreutils/archive/refs/tags/0.10.0.tar.gz")
block_hook("autolink")
builddep("shortcut/rust")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp, arch
from lib.make import *
version("8.21.0")
description("command line tool and library for transferring data with URLs")
maintainer("sisungo <[email protected]>")
source_url("https://curl.se/download/curl-8.21.0.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib.make import *
from lib import cpp
version("1.16.2")
description("a message bus system, a simple way for applications to talk to one another")
maintainer("sisungo <[email protected]>")
source_url("https://dbus.freedesktop.org/releases/dbus/dbus-1.16.2.tar.xz")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ import lib.rust as rust
from lib.make import *
version("0.5.0")
description("utility to compute difference between text files")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/uutils/diffutils/archive/refs/tags/v0.5.0.tar.gz")
builddep("shortcut/rust")
+2
View File
@@ -4,6 +4,8 @@ import lib.cpp as cpp
from lib.make import *
version("2.8.1")
description("Fast streaming XML parser written in C99")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/libexpat/libexpat/releases/download/R_2_8_1/expat-2.8.1.tar.gz"
)
+2
View File
@@ -6,6 +6,8 @@ from lib.make import *
VERSION = "5.48"
version(VERSION)
description("utility to infer file type and information")
maintainer("sisungo <[email protected]>")
source_git("https://github.com/file/file.git", "FILE5_48")
builddep("shortcut/c")
+4 -2
View File
@@ -1,8 +1,10 @@
import lib.rust as rust
from lib.make import *
version("0.9.0")
source_url("https://github.com/uutils/findutils/archive/refs/tags/0.9.0.tar.gz")
version("0.10.0")
description("implementation of the UNIX findutils")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/uutils/findutils/archive/refs/tags/0.10.0.tar.gz")
builddep("shortcut/rust")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp
from lib.make import *
version("2.6.4")
description("The Fast Lexical Analyzer - scanner generator for lexing in C and C++")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/westes/flex/releases/download/v2.6.4/flex-2.6.4.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("0.3.3")
description("small implementation of gettext and libintl")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/sabotage-linux/gettext-tiny/releases/download/v0.3.3/gettext-tiny-0.3.3.tar.xz"
)
+2
View File
@@ -4,6 +4,8 @@ from lib import arch, cpp
from lib.make import *
version("2.55.0")
description("a free and open source distributed version control system")
maintainer("sisungo <[email protected]>")
source_url("https://www.kernel.org/pub/software/scm/git/git-2.55.0.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -7,6 +7,8 @@ from lib import cpp
upstream_version = "2.89.2"
version(upstream_version)
description("a general-purpose, portable utility library")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/glib/2.89/glib-2.89.2.tar.xz")
builddep("shortcut/c++")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp, arch
from lib.make import *
version("1.4.21")
description("an implementation of the traditional Unix macro processor")
maintainer("sisungo <[email protected]>")
source_url("https://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ import lib.cpp as cpp
from lib.make import *
version("4.4.1")
description("a tool which controls the generation of executables and other non-source files of a program from the program's source files")
maintainer("sisungo <[email protected]>")
source_url("https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("4.10")
description("a non-interactive command-line text editor")
maintainer("sisungo <[email protected]>")
source_url("https://ftp.gnu.org/gnu/sed/sed-4.10.tar.gz")
block_hook("autolink")
+2
View File
@@ -3,6 +3,8 @@ import subprocess
from lib.make import *
version("15.1.2")
description("SemiOS file pattern searcher")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/grep/archive/v15.1.2.tar.gz")
builddep("shortcut/c")
+30
View File
@@ -0,0 +1,30 @@
from lib.make import *
from lib import cpp
version("3.5.2")
description("an interactive process viewer")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/htop-dev/htop/releases/download/3.5.2/htop-3.5.2.tar.xz")
builddep("shortcut/autotools")
builddep("shortcut/c")
builddep(f"libncurses-dev @{arch.get_target()}")
builddep(f"linux-dev @{arch.get_target()}")
def build():
cpp.configure([
f"--prefix={get_prefix('htop')}",
"--enable-unicode",
])
cpp.make()
cpp.make_install()
on_build(build)
package("htop")
dep("libncurses @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin"])
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("2026.4.22")
description("code and data that represent the history of local time for many representative locations worldwide")
maintainer("sisungo <[email protected]>")
source_url("https://data.iana.org/time-zones/releases/tzdb-2026b.tar.lz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
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_url(
"https://github.com/unicode-org/icu/releases/download/release-78.3/icu4c-78.3-sources.tgz"
)
+2
View File
@@ -5,6 +5,8 @@ from lib import cpp
from lib.make import *
version("7.1.0")
description("a collection of userspace utilities for controlling and monitoring various aspects of networking in the Linux kernel")
maintainer("sisungo <[email protected]>")
source_git("https://git.kernel.org/pub/scm/network/iproute2/iproute2.git", "v7.1.0")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp, arch
from lib.make import *
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_url("https://github.com/kmod-project/kmod/archive/refs/tags/v34.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -6,6 +6,8 @@ builddep("shortcut/autotools")
builddep(f"libncurses-dev @{arch.get_target()}")
version("704")
description("a free, open-source file pager")
maintainer("sisungo <[email protected]>")
source_url("https://www.greenwoodsoftware.com/less/less-704.tar.gz")
+4 -2
View File
@@ -1,9 +1,11 @@
import lib.cpp as cpp
from lib.make import *
version("3.8.7")
version("3.8.9")
description("Multi-format archive and compression library")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/libarchive/libarchive/releases/download/v3.8.7/libarchive-3.8.7.tar.gz"
"https://github.com/libarchive/libarchive/releases/download/v3.8.9/libarchive-3.8.9.tar.gz"
)
builddep("shortcut/c")
+4 -2
View File
@@ -1,9 +1,11 @@
from lib import arch, cpp
from lib.make import *
version("3.6.0")
version("3.7.1")
description("A portable foreign-function interface library")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/libffi/libffi/releases/download/v3.6.0/libffi-3.6.0.tar.gz"
"https://github.com/libffi/libffi/releases/download/v3.7.1/libffi-3.7.1.tar.gz"
)
builddep("shortcut/c")
+2
View File
@@ -5,6 +5,8 @@ from lib import arch
from lib.make import *
version("0.2.0")
description("provides compatibility objects to gcc runtime libraries")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/libgcc-compat/archive/v0.2.0.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp
from lib.make import *
version("1.6.1")
description("a totally open, royalty-free, highly versatile audio codec")
maintainer("sisungo <[email protected]>")
source_url("https://downloads.xiph.org/releases/opus/opus-1.6.1.tar.gz")
builddep("shortcut/c")
+4 -2
View File
@@ -1,9 +1,11 @@
from lib import cpp, arch
from lib.make import *
version("0.22.0")
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.22.0/libpsl-0.22.0.tar.gz"
"https://github.com/rockdaboot/libpsl/releases/download/0.23.1/libpsl-0.23.1.tar.gz"
)
builddep("shortcut/c")
+2
View File
@@ -1,6 +1,8 @@
from lib.make import *
version("2.0")
description("A small self-contained alternative to readline and libedit")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/antirez/linenoise/archive/refs/tags/2.0.tar.gz")
on_build(lambda: None)
+3 -1
View File
@@ -5,9 +5,11 @@ import lib.arch as arch
import lib.cpp as cpp
from lib.make import *
upstream_version = "6.18.38"
upstream_version = "6.18.43"
version(f"{upstream_version}")
description("the Linux operating system kernel")
maintainer("sisungo <[email protected]>")
source_url(
f"https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-{upstream_version}.tar.xz"
)
+8 -2
View File
@@ -11,6 +11,8 @@ pkgver = "22.1.8"
[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_url(f"https://github.com/llvm/llvm-project/releases/download/llvmorg-{pkgver}/llvm-project-{pkgver}.src.tar.xz")
builddep("shortcut/c++")
@@ -130,6 +132,7 @@ def build_clang():
"-DCLANG_DEFAULT_CXX_STDLIB=libc++",
"-DCLANG_DEFAULT_RTLIB=compiler-rt",
"-DLLVM_INCLUDE_TESTS=OFF",
f"-DC_INCLUDE_DIRS=/lib/{arch.get_target()}/include",
]
cmake("clang", import_llvm() + options)
@@ -143,7 +146,7 @@ def build_polly():
cmake("polly", import_llvm())
def build_runtimes():
cflags = f"-isystem /lib/{arch.get_target()}/include -L/lib/{arch.get_target()} -B/lib/{arch.get_target()} -rtlib=compiler-rt"
os.makedirs("../_build_runtimes", exist_ok=True)
shutil.rmtree("../_build_runtimes")
options = [
# Configure runtimes
@@ -187,6 +190,7 @@ dep("semi-libc @same-arch")
dep("libunwind @same-arch")
dep("libcxx @same-arch")
dep("libcxxabi @same-arch")
dep("libffi @same-arch")
on_pack(lambda composer: auto_pack_glob(composer, ["lib/*.so*"]))
package("libllvm-dev")
@@ -249,7 +253,7 @@ def pack_clang(composer):
lrtlib = rtlib.replace(f"-{larch}", "")
composer.addfile(f"{linuxrtdir}/{rtlib}", f"{localrtdir}/{lrtlib}")
# Add symlink to system directories
# Add symlink to system directories, which is required for finding libc++
os.symlink(f"/lib/{arch.get_target()}/include", f"{composer.workdir}/bundle/include")
# Add configuration
@@ -263,6 +267,8 @@ def pack_clang(composer):
package("clang")
dep("libclang (same)")
on_pack(pack_clang)
link("bin/clang", "/bin/cc")
link("bin/clang++", "/bin/c++")
enter_install("lld")
+2
View File
@@ -5,6 +5,8 @@ from lib import arch, cpp
from lib.make import *
version("1.14.6")
description("a suite of tools compiling mdoc, the roff macro language, and man")
maintainer("sisungo <[email protected]>")
source_url("https://mandoc.bsd.lv/snapshots/mandoc-1.14.6.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -3,6 +3,8 @@ import subprocess
from lib.make import *
version("1.11.2")
description("The Meson Build System")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/mesonbuild/meson/releases/download/1.11.2/meson-1.11.2.tar.gz")
builddep("python")
+2
View File
@@ -3,6 +3,8 @@ import subprocess
from lib.make import *
version("1.59.2")
description("the MirBSD Korn Shell, a minimal and useful implementation of the POSIX shell with extensions")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/mirabilos/mksh-cvs2git/archive/refs/tags/mksh-R59c.tar.gz"
)
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("6.6")
description("the ncurses terminal library")
maintainer("sisungo <[email protected]>")
source_url("https://invisible-island.net/archives/ncurses/ncurses-6.6.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("19")
description("A vi/ex editor for editing UTF-8 text")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/aligrudi/neatvi/archive/refs/tags/19.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -5,6 +5,8 @@ from lib import cpp
from lib.make import *
version("5.3")
description("A small vi/ex terminal text editor (neatvi rewrite)")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/kyx0r/nextvi/archive/refs/tags/5.3.tar.gz")
builddep("shortcut/c")
+4 -4
View File
@@ -1,11 +1,11 @@
import os
from lib import cpp
from lib.make import *
version("1.69.0")
version("1.70.0")
description("nghttp2 - HTTP/2 C Library and tools")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/nghttp2/nghttp2/releases/download/v1.69.0/nghttp2-1.69.0.tar.gz"
"https://github.com/nghttp2/nghttp2/releases/download/v1.70.0/nghttp2-1.70.0.tar.gz"
)
+2
View File
@@ -3,6 +3,8 @@ import os
from lib.make import *
version("1.13.2")
description("a small build system with a focus on speed")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/ninja-build/ninja/archive/refs/tags/v1.13.2.tar.gz")
builddep("shortcut/c++")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp
from lib.make import *
version("10.3.1")
description("the premier connectivity tool for remote login with the SSH protocol")
maintainer("sisungo <[email protected]>")
source_url("https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.3p1.tar.gz")
builddep("shortcut/c")
+18
View File
@@ -0,0 +1,18 @@
from lib import rust
from lib.make import *
version("0.0.1-alpha.1")
description("SemiOS package manager")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/packie/archive/0.1.0.alpha-1.tar.gz")
def build():
rust.build(["--package", "packie-cli"])
on_build(build)
package("packie")
dep("semi-libc @same-arch")
rust.use_auto_pack(["bin"])
+2
View File
@@ -4,6 +4,8 @@ import subprocess
from lib.make import *
version("15.1.1")
description("the SemiOS fork of the UNIX patch utility")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/patch/archive/v15.1.1.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ from lib import cpp
from lib.make import *
version("10.47")
description("a set of C functions that implement regular expression pattern matching")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz"
)
+2
View File
@@ -7,6 +7,8 @@ from lib.make import *
upstream_version = "5.42.2"
version(upstream_version)
description("Perl is a highly capable, feature-rich programming language with over 37 years of development")
maintainer("sisungo <[email protected]>")
source_url("https://www.cpan.org/src/5.0/perl-5.42.2.tar.gz")
builddep("shortcut/c")
+1
View File
@@ -3,6 +3,7 @@ from lib import arch
from lib.make import *
version("2.5.1")
description("package compiler and linker metadata toolkit")
source_url("https://distfiles.ariadne.space/pkgconf/pkgconf-2.5.1.tar.gz")
builddep("shortcut/c")
+3 -1
View File
@@ -5,11 +5,13 @@ from lib import arch, cpp
from lib.make import *
VERSION_BASE = "3.14"
VERSION_APPEND = "6"
VERSION_APPEND = "7"
VERSION_FULL = f"{VERSION_BASE}.{VERSION_APPEND}"
version(VERSION_FULL)
description("the Python programming language")
maintainer("sisungo <[email protected]>")
source_url(
f"https://www.python.org/ftp/python/{VERSION_FULL}/Python-{VERSION_FULL}.tar.xz"
)
+2
View File
@@ -6,6 +6,8 @@ import os
upstream_version = "1.4.6"
version(upstream_version)
description("Great utility for computing hash sums")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/rhash/RHash/archive/refs/tags/v1.4.6.tar.gz")
builddep("shortcut/c")
+4 -2
View File
@@ -1,8 +1,10 @@
from lib import rust
from lib.make import *
version("15.1.0")
source_url("https://github.com/BurntSushi/ripgrep/archive/refs/tags/15.1.0.tar.gz")
version("15.2.0")
description("ripgrep recursively searches directories for a regex pattern while respecting your gitignore")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/BurntSushi/ripgrep/archive/refs/tags/15.2.0.tar.gz")
builddep("shortcut/rust")
+740
View File
@@ -0,0 +1,740 @@
# bootstrap.toml.in: Bootstrap Config Template
#
# Replacing Stubs:
# - %RUSTVERSION%: Version of rust
# - %CARGOPATH%: Absolute path of cargo
# - %RUSTCPATH%: Absolute path of rustc
# - %INSTALLPREFIX%: Install prefix
# =============================================================================
# Global Settings
# =============================================================================
# Use different pre-set defaults than the global defaults.
#
# See `src/bootstrap/defaults` for more information.
# Note that this has no default value (x.py uses the defaults in `bootstrap.example.toml`).
profile = "dist"
# =============================================================================
# Tweaking how LLVM is compiled
# =============================================================================
# Don't download Rust CI LLVM, instead, we compile it by our own.
llvm.download-ci-llvm = false
# Indicates whether the LLVM build is a Release or Debug build
llvm.optimize = true
# Indicates whether LLVM should be built with ThinLTO. Note that this will
# only succeed if you use clang, lld, llvm-ar, and llvm-ranlib in your C/C++
# toolchain (see the `cc`, `cxx`, `linker`, `ar`, and `ranlib` options below).
# More info at: https://clang.llvm.org/docs/ThinLTO.html#clang-bootstrap
llvm.thin-lto = true
# Indicates whether an LLVM Release build should include debug info
llvm.release-debuginfo = false
# Indicates whether the LLVM assertions are enabled or not
# NOTE: When assertions are disabled, bugs in the integration between rustc and LLVM can lead to
# unsoundness (segfaults, etc.) in the rustc process itself, not just in the generated code.
llvm.assertions = false
# Indicates whether the LLVM testsuite is enabled in the build or not. Does
# not execute the tests as part of the build as part of x.py build et al,
# just makes it possible to do `ninja check-llvm` in the staged LLVM build
# directory when doing LLVM development as part of Rust development.
llvm.tests = false
# Indicates whether the LLVM plugin is enabled or not
llvm.plugins = false
# Whether to build Enzyme as AutoDiff backend.
llvm.enzyme = false
# Whether to build LLVM with support for it's gpu offload runtime.
llvm.offload = false
# Absolute path to the directory containing ClangConfig.cmake
llvm.offload-clang-dir = ""
# When true, link libstdc++ statically into the rustc_llvm.
# This is useful if you don't want to use the dynamic version of that
# library provided by LLVM.
llvm.static-libstdcpp = false
# Enable LLVM to use zstd for compression.
llvm.libzstd = false
# Whether to use Ninja to build LLVM. This runs much faster than make.
llvm.ninja = true
# LLVM targets to build support for.
#llvm.targets = <default value>
# LLVM experimental targets to build support for.
#llvm.experimental-targets = <default value>
# Cap the number of parallel linker invocations when compiling LLVM.
#llvm.link-jobs = <default value>
# Whether to build LLVM as a dynamically linked library (as opposed to statically linked).
# Under the hood, this passes `--shared` to llvm-config.
# NOTE: To avoid performing LTO multiple times, we suggest setting this to `true` when `thin-lto` is enabled.
llvm.link-shared = true
# When building llvm, this configures what is being appended to the version.
llvm.version-suffix = "-rust-%RUSTVERSION%"
# Use libc++ when building LLVM instead of libstdc++. This is the default on
# platforms already use libc++ as the default C++ library, but this option
# allows you to use libc++ even on platforms when it's not. You need to ensure
# that your host compiler ships with libc++.
llvm.use-libcxx = true
# The value specified here will be passed as `-DLLVM_USE_LINKER` to CMake.
#llvm.use-linker = <none> (path)
# Whether or not to specify `-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=YES`
#llvm.allow-old-toolchain = false
# Whether to include the Polly optimizer.
llvm.polly = false
# Whether to build the clang compiler.
llvm.clang = false
# Whether to enable llvm compilation warnings.
llvm.enable-warnings = false
# Custom CMake defines to set when building LLVM.
llvm.build-config = {"LLVM_ENABLE_LIBCXX" = "ON"}
# =============================================================================
# General build configuration options
# =============================================================================
# The default stage to use for the `check` subcommand
#build.check-stage = 0
# The default stage to use for the `doc` subcommand
#build.doc-stage = 0
# The default stage to use for the `build` subcommand
#build.build-stage = 1
# The default stage to use for the `test` subcommand
#build.test-stage = 1
# The default stage to use for the `dist` subcommand
#build.dist-stage = 2
# The default stage to use for the `install` subcommand
#build.install-stage = 2
# The default stage to use for the `bench` subcommand
#build.bench-stage = 2
# A descriptive string to be appended to version output (e.g., `rustc --version`),
# which is also used in places like debuginfo `DW_AT_producer`. This may be useful for
# supplementary build information, like distro-specific package versions.
#
# IMPORTANT: Changing this value changes crate IDs and symbol name mangling, making
# compiled artifacts incompatible. PGO profiles cannot be reused across different
# descriptions, and incremental compilation caches are invalidated. Keep this value
# consistent when reusing build artifacts.
#
# The Rust compiler will differentiate between versions of itself, including
# based on this string, which means that if you wish to be compatible with
# upstream Rust you need to set this to "". However, note that if you set this to "" but
# are not actually compatible -- for example if you've backported patches that change
# behavior -- this may lead to miscompilations or other bugs.
#build.description = ""
# Build triple for the pre-compiled snapshot compiler. If `rustc` is set, this must match its host
# triple (see `rustc --version --verbose`; cross-compiling the rust build system itself is NOT
# supported). If `rustc` is unset, this must be a platform with pre-compiled host tools
# (https://doc.rust-lang.org/nightly/rustc/platform-support.html). The current platform must be
# able to run binaries of this build triple.
#
# If `rustc` is present in path, this defaults to the host it was compiled for.
# Otherwise, `x.py` will try to infer it from the output of `uname`.
# If `uname` is not found in PATH, we assume this is `x86_64-pc-windows-msvc`.
# This may be changed in the future.
#build.build = "x86_64-unknown-linux-gnu" (as an example)
# Which triples to produce a compiler toolchain for. Each of these triples will be bootstrapped from
# the build triple themselves. In other words, this is the list of triples for which to build a
# compiler that can RUN on that triple.
#
# Defaults to just the `build` triple.
#build.host = [build.build] (list of triples)
# Which triples to build libraries (core/alloc/std/test/proc_macro) for. Each of these triples will
# be bootstrapped from the build triple themselves. In other words, this is the list of triples for
# which to build a library that can CROSS-COMPILE to that triple.
#
# Defaults to `host`. If you set this explicitly, you likely want to add all
# host triples to this list as well in order for those host toolchains to be
# able to compile programs for their native target.
#build.target = build.host (list of triples)
# Use this directory to store build artifacts. Paths are relative to the current directory, not to
# the root of the repository.
#build.build-dir = "build"
# Instead of downloading the src/stage0 version of Cargo specified, use
# this Cargo binary instead to build all Rust code
# If you set this, you likely want to set `rustc` as well.
build.cargo = "%CARGOPATH%"
# Instead of downloading the src/stage0 version of the compiler
# specified, use this rustc binary instead as the stage0 snapshot compiler.
# If you set this, you likely want to set `cargo` as well.
build.rustc = "%RUSTCPATH%"
# Use this rustdoc binary as the stage0 snapshot rustdoc.
# If unspecified, then the binary "rustdoc" (with platform-specific extension, e.g. ".exe")
# in the same directory as "rustc" will be used.
#build.rustdoc = "/path/to/rustdoc"
# Instead of downloading the src/stage0 version of rustfmt specified,
# use this rustfmt binary instead as the stage0 snapshot rustfmt.
#build.rustfmt = "/path/to/rustfmt"
# Instead of downloading the src/stage0 version of cargo-clippy specified,
# use this cargo-clippy binary instead as the stage0 snapshot cargo-clippy.
#
# Note that this option should be used with the same toolchain as the `rustc` option above.
# Otherwise, clippy is likely to fail due to a toolchain conflict.
#build.cargo-clippy = "/path/to/cargo-clippy"
# Whether to build documentation by default. If false, rustdoc and
# friends will still be compiled but they will not be used to generate any
# documentation.
#
# You can still build documentation when this is disabled by explicitly passing paths,
# e.g. `x doc library`.
build.docs = true
# Flag to specify whether CSS, JavaScript, and HTML are minified when
# docs are generated. JSON is always minified, because it's enormous,
# and generated in already-minified form from the beginning.
build.docs-minification = true
# Flag to specify whether private items should be included in the library docs.
build.library-docs-private-items = false
# Indicate whether to build compiler documentation by default.
# You can still build documentation when this is disabled by explicitly passing a path: `x doc compiler`.
build.compiler-docs = false
# Indicate whether git submodules are managed and updated automatically.
build.submodules = false
# The path to (or name of) the GDB executable to use. This is only used for
# executing the debuginfo test suite.
#build.gdb = <not required>
# The path to (or name of) the LLDB executable to use. This is only used for
# executing the debuginfo test suite.
#build.lldb = <not required>
# The node.js executable to use. Note that this is only used for the emscripten
# target when running tests, otherwise this can be omitted.
#build.nodejs = <not required>
# The yarn executable to use. Note that this is used for rustdoc-gui tests and
# tidy js extra-checks, otherwise this can be omitted.
#
# Under Windows this should be `yarn.cmd` or path to it (verified on nodejs v18.06), or
# error will be emitted.
#build.yarn = <not required>
# Python interpreter to use for various tasks throughout the build, notably
# rustdoc tests, and some dist bits and pieces.
#
# Defaults to the Python interpreter used to execute x.py.
#build.python = <default>
# The path to the REUSE executable to use. Note that REUSE is not required in
# most cases, as our tooling relies on a cached (and shrunk) copy of the
# REUSE output present in the git repository and in our source tarballs.
#
# REUSE is only needed if your changes caused the overall licensing of the
# repository to change, and the cached copy has to be regenerated.
#
# Defaults to the "reuse" command in the system path.
#build.reuse = <not required>
# Force Cargo to check that Cargo.lock describes the precise dependency
# set that all the Cargo.toml files create, instead of updating it.
build.locked-deps = false
# Indicate whether the vendored sources are used for Rust dependencies or not.
#
# Vendoring requires additional setup. We recommend using the pre-generated source tarballs if you
# want to use vendoring. See https://forge.rust-lang.org/infra/other-installation-methods.html#source-code.
#build.vendor = <default>
# If you build the compiler more than twice (stage3+) or the standard library more than once
# (stage 2+), the third compiler and second library will get uplifted from stage2 and stage1,
# respectively. If you would like to disable this uplifting, and rather perform a full bootstrap,
# then you can set this option to true.
#
# This is only useful for verifying that rustc generates reproducible builds.
build.full-bootstrap = false
# Set the bootstrap/download cache path. It is useful when building rust
# repeatedly in a CI environment.
#build.bootstrap-cache-path = /path/to/shared/cache
# Enable a build of the extended Rust tool set which is not only the compiler
# but also tools such as Cargo. This will also produce "combined installers"
# which are used to install Rust and Cargo together.
# The `tools` (check `bootstrap.example.toml` to see its default value) option specifies
# which tools should be built if `extended = true`.
#
# This is disabled by default.
build.extended = false
# Set of tools to be included in the installation.
#
# If `extended = false`, the only one of these built by default is rustdoc.
#
# If `extended = true`, they are all included.
#
# If any enabled tool fails to build, the installation fails.
#build.tools = <default>
# Specify build configuration specific for some tool, such as enabled features.
# This option has no effect on which tools are enabled: refer to the `tools` option for that.
#
# For example, to build Miri with tracing support, use `tool.miri.features = ["tracing"]`
#
# The default value for the `features` array is `[]`. However, please note that other flags in
# `bootstrap.toml` might influence the features enabled for some tools. Also, enabling features
# in tools which are not part of the internal "extra-features" preset might not always work.
#build.tool.TOOL_NAME.features = [FEATURE1, FEATURE2]
# Verbosity level: 0 == not verbose, 1 == verbose, 2 == very verbose, 3 == print environment variables on each rustc invocation
#build.verbose = <default>
# Build the sanitizer runtimes
build.sanitizers = false
# Build the profiler runtime (required when compiling with options that depend
# on this runtime, such as `-C profile-generate` or `-C instrument-coverage`).
build.profiler = false
# Use the optimized LLVM C intrinsics for `compiler_builtins`, rather than Rust intrinsics.
# Choosing true requires the LLVM submodule to be managed by bootstrap (i.e. not external)
# so that `compiler-rt` sources are available.
#
# Setting this to a path removes the requirement for a C toolchain, but requires setting the
# path to an existing library containing the builtins library from LLVM's compiler-rt.
#
# Setting this to `false` generates slower code, but removes the requirement for a C toolchain in
# order to run `x check`.
build.optimized-compiler-builtins = true
# Indicates whether the native libraries linked into Cargo will be statically
# linked or not.
build.cargo-native-static = false
# Number of parallel jobs to be used for building and testing. If set to `0` or
# omitted, it will be automatically determined. This is the `-j`/`--jobs` flag
# passed to cargo invocations.
#build.jobs = <default>
# Default value for the `--extra-checks` flag of tidy.
#
# See `./x test tidy --help` for details.
#
# Note that if any value is manually given to bootstrap such as
# `./x test tidy --extra-checks=js`, this value is ignored.
# Use `--extra-checks=''` to temporarily disable all extra checks.
#
# Automatically enabled in the "tools" profile.
# Set to the empty string to force disable (recommended for hdd systems).
#build.tidy-extra-checks = ""
# Indicates whether ccache is used when building certain artifacts (e.g. LLVM).
# Set to `true` to use the first `ccache` in PATH, or set an absolute path to use
# a specific version.
build.ccache = false
# List of paths to exclude from the build and test processes.
# For example, exclude = ["tests/ui", "src/tools/tidy"].
#build.exclude = []
# =============================================================================
# General install configuration options
# =============================================================================
# Where to install the generated toolchain. Must be an absolute path.
install.prefix = "%INSTALLPREFIX%"
# Where to install system configuration files.
# If this is a relative path, it will get installed in `prefix` above
install.sysconfdir = "/var/config"
# Where to install documentation in `prefix` above
install.docdir = "share/doc/rust"
# Where to install binaries in `prefix` above
install.bindir = "bin"
# Where to install libraries in `prefix` above
install.libdir = "lib"
# Where to install man pages in `prefix` above
install.mandir = "share/man"
# Where to install data in `prefix` above
install.datadir = "share"
# =============================================================================
# Options for compiling Rust code itself
# =============================================================================
# Whether or not to optimize when compiling the compiler and standard library,
# and what level of optimization to use.
# WARNING: Building with optimize = false is NOT SUPPORTED. Due to bootstrapping,
# building without optimizations takes much longer than optimizing. Further, some platforms
# fail to build without this optimization (c.f. #65352).
# The valid options are:
# true - Enable optimizations (same as 3).
# false - Disable optimizations.
# 0 - Disable optimizations.
# 1 - Basic optimizations.
# 2 - Some optimizations.
# 3 - All optimizations.
# "s" - Optimize for binary size.
# "z" - Optimize for binary size, but also turn off loop vectorization.
#rust.optimize = true
# Indicates that the build should be configured for debugging Rust. A
# `debug`-enabled compiler and standard library will be somewhat
# slower (due to e.g. checking of debug assertions) but should remain
# usable.
#
# Note: If this value is set to `true`, it will affect a number of
# configuration options below as well, if they have been left
# unconfigured in this file.
#
# Note: changes to the `debug` setting do *not* affect `optimize`
# above. In theory, a "maximally debuggable" environment would
# set `optimize` to `false` above to assist the introspection
# facilities of debuggers like lldb and gdb. To recreate such an
# environment, explicitly set `optimize` to `false` and `debug`
# to `true`. In practice, everyone leaves `optimize` set to
# `true`, because an unoptimized rustc with debugging
# enabled becomes *unusably slow* (e.g. rust-lang/rust#24840
# reported a 25x slowdown) and bootstrapping the supposed
# "maximally debuggable" environment (notably libstd) takes
# hours to build.
#
rust.debug = false
# Whether to download the stage 1 and 2 compilers from CI. This is useful if you
# are working on tools, doc-comments, or library (you will be able to build the
# standard library without needing to build the compiler).
#
# Set this to "if-unchanged" if you are working on `src/tools`, `tests` or
# `library` (on CI, `library` changes triggers in-tree compiler build) to speed
# up the build process if you don't need to build a compiler from the latest
# commit from `master`.
#
# Set this to `true` to always download or `false` to always use the in-tree
# compiler.
rust.download-rustc = false
# Number of codegen units to use for each compiler invocation. A value of 0
# means "the number of cores on this machine", and 1+ is passed through to the
# compiler.
#
# Uses the rustc defaults: https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
rust.codegen-units = 1
# Sets the number of codegen units to build the standard library with,
# regardless of what the codegen-unit setting for the rest of the compiler is.
# NOTE: building with anything other than 1 is known to occasionally have bugs.
rust.codegen-units-std = 1
# Whether or not debug assertions are enabled for the compiler and standard library.
# These can help find bugs at the cost of a small runtime slowdown.
#
# Defaults to rust.debug value
rust.debug-assertions = false
# Whether or not debug assertions are enabled for the standard library.
# Overrides the `debug-assertions` option, if defined.
#
# Defaults to rust.debug-assertions value
rust.debug-assertions-std = false
# Whether or not debug assertions are enabled for the tools built by bootstrap.
# Overrides the `debug-assertions` option, if defined.
#
# Defaults to rust.debug-assertions value
rust.debug-assertions-tools = false
# Whether or not to leave debug! and trace! calls in the rust binary.
#
# Defaults to rust.debug-assertions value
#
# If you see a message from `tracing` saying "some trace filter directives would enable traces that
# are disabled statically" because `max_level_info` is enabled, set this value to `true`.
rust.debug-logging = false
# Whether or not to build rustc, tools and the libraries with randomized type layout
rust.randomize-layout = false
# Whether or not overflow checks are enabled for the compiler and standard
# library.
#
# Defaults to rust.debug value
rust.overflow-checks = false
# Whether or not overflow checks are enabled for the standard library.
# Overrides the `overflow-checks` option, if defined.
#
# Defaults to rust.overflow-checks value
rust.overflow-checks-std = false
# Debuginfo level for most of Rust code, corresponds to the `-C debuginfo=N` option of `rustc`.
# See https://doc.rust-lang.org/rustc/codegen-options/index.html#debuginfo for available options.
#
# Can be overridden for specific subsets of Rust code (rustc, std or tools).
# Debuginfo for tests run with compiletest is not controlled by this option
# and needs to be enabled separately with `debuginfo-level-tests`.
#
# Note that debuginfo-level = 2 generates several gigabytes of debuginfo
# and will slow down the linking process significantly.
rust.debuginfo-level = 0
# Debuginfo level for the compiler.
rust.debuginfo-level-rustc = 0
# Debuginfo level for the standard library.
rust.debuginfo-level-std = 0
# Debuginfo level for the tools.
rust.debuginfo-level-tools = 0
# Debuginfo level for the test suites run with compiletest.
# FIXME(#61117): Some tests fail when this option is enabled.
#rust.debuginfo-level-tests = 0 <omitted>
# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
rust.backtrace = true
# Whether to always use incremental compilation when building rustc
rust.incremental = false
# The default linker that will be hard-coded into the generated
# compiler for targets that don't specify a default linker explicitly
# in their target specifications. Note that this is not the linker
# used to link said compiler. It can also be set per-target (via the
# `[target.<triple>]` block), which may be useful in a cross-compilation
# setting.
#
# See https://doc.rust-lang.org/rustc/codegen-options/index.html#linker for more information.
#rust.default-linker = <default>
# The "channel" for the Rust build to produce. The stable/beta channels only
# allow using stable features, whereas the nightly and dev channels allow using
# nightly features.
#
# You can set the channel to "auto-detect" to load the channel name from `src/ci/channel`.
#
# If using tarball sources, default value is "auto-detect", otherwise, it's "dev".
rust.channel = "auto-detect"
# The root location of the musl installation directory. The library directory
# will also need to contain libunwind.a for an unwinding implementation. Note
# that this option only makes sense for musl targets that produce statically
# linked binaries.
#
# Defaults to /usr on musl hosts. Has no default otherwise.
#rust.musl-root = <not required>
# By default the `rustc` executable is built with `-Wl,-rpath` flags on Unix
# platforms to ensure that the compiler is usable by default from the build
# directory (as it links to a number of dynamic libraries). This may not be
# desired in distributions, for example.
rust.rpath = true
# Additional flags to pass to `rustc`.
# Takes precedence over bootstrap's own flags but not over per target rustflags nor env. vars. like RUSTFLAGS.
# Applies to all stages and targets.
#
#rust.rustflags = []
# Indicates whether symbols should be stripped using `-Cstrip=symbols`.
rust.strip = true
# Forces frame pointers to be used with `-Cforce-frame-pointers`.
# This can be helpful for profiling at a small performance cost.
rust.frame-pointers = false
# Indicates whether stack protectors should be used
# via the unstable option `-Zstack-protector`.
#
# Valid options are : `none`(default),`basic`,`strong`, or `all`.
# `strong` and `basic` options may be buggy and are not recommended, see rust-lang/rust#114903.
rust.stack-protector = "none"
# Prints each test name as it is executed, to help debug issues in the test harness itself.
rust.verbose-tests = false
# Flag indicating whether tests are compiled with optimizations (the -O flag).
rust.optimize-tests = true
# Flag indicating whether codegen tests will be run or not. If you get an error
# saying that the FileCheck executable is missing, you may want to disable this.
# Also see the target's llvm-filecheck option.
rust.codegen-tests = false
# Flag indicating whether git info will be retrieved from .git automatically.
# Having the git information can cause a lot of rebuilds during development.
rust.omit-git-hash = false
# Whether to create a source tarball by default when running `x dist`.
#
# You can still build a source tarball when this is disabled by explicitly passing `x dist rustc-src`.
rust.dist-src = false
# After building or testing an optional component (e.g. the nomicon or reference), append the
# result (broken, compiling, testing) into this JSON file.
#rust.save-toolstates = <none> (path)
# This array serves three distinct purposes:
# - Backends in this list will be automatically compiled and included in the sysroot of each
# rustc compiled by bootstrap.
# - The first backend in this list will be configured as the **default codegen backend** by each
# rustc compiled by bootstrap. In other words, if the first backend is e.g. cranelift, then when
# we build a stage 1 rustc, it will by default compile Rust programs using the Cranelift backend.
# This also means that stage 2 rustc would get built by the Cranelift backend.
# - Running `x dist` (without additional arguments, or with `--include-default-paths`) will produce
# a dist component/tarball for the Cranelift backend if it is included in this array.
#
# Note that the LLVM codegen backend is special and will always be built and distributed.
#
# Currently, the only standard options supported here are `"llvm"`, `"cranelift"` and `"gcc"`.
rust.codegen-backends = ["llvm"]
# Indicates whether LLD will be compiled and made available in the sysroot for rustc to execute,
rust.lld = false
# Indicates if we should override the linker used to link Rust crates during bootstrap to be LLD.
# If set to `true` or `"external"`, a global `lld` binary that has to be in $PATH
# will be used.
# If set to `"self-contained"`, rust-lld from the snapshot compiler will be used.
#
# On MSVC, LLD will not be used if we're cross linking.
#
# Explicitly setting the linker for a target will override this option when targeting MSVC.
rust.bootstrap-override-lld = false
# Indicates whether some LLVM tools, like llvm-objdump, will be made available in the
# sysroot.
rust.llvm-tools = false
# Indicates whether the `self-contained` llvm-bitcode-linker, will be made available
# in the sysroot. It is required for running nvptx tests.
rust.llvm-bitcode-linker = false
# Whether to deny warnings in crates. Set to `false` to avoid
# error: warnings are denied by `build.warnings` configuration
rust.deny-warnings = false
# Print backtrace on internal compiler errors during bootstrap
rust.backtrace-on-ice = false
# Whether to verify generated LLVM IR
rust.verify-llvm-ir = false
# Compile the compiler with a non-default ThinLTO import limit. This import
# limit controls the maximum size of functions imported by ThinLTO. Decreasing
# will make code compile faster at the expense of lower runtime performance.
#rust.thin-lto-import-instr-limit = <default>
# Map debuginfo paths to `/rust/$sha/...`.
# 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
rust.test-compare-mode = false
# Global default for llvm-libunwind for all targets. See the target-specific
# documentation for llvm-libunwind below. Note that the target-specific
# option will override this if set.
rust.llvm-libunwind = 'system'
# Enable symbol-mangling-version v0. This can be helpful when profiling rustc,
# as generics will be preserved in symbols (rather than erased into opaque T).
# When no setting is given, the new scheme will be used when compiling the
# compiler and its tools and the legacy scheme will be used when compiling the
# standard library.
# If an explicit setting is given, it will be used for all parts of the codebase.
rust.new-symbol-mangling = true
# Size limit in bytes for move/copy annotations (-Zannotate-moves). Only types
# at or above this size will be annotated. If not specified, uses the default
# limit (65 bytes).
#rust.annotate-moves-size-limit = <default>
# Select LTO mode that will be used for compiling rustc. By default, thin local LTO
# (LTO within a single crate) is used (like for any Rust crate). You can also select
# "thin" or "fat" to apply Thin/Fat LTO to the `rustc_driver` dylib, or "off" to disable
# LTO entirely.
rust.lto = "thin-local"
# Build compiler with the optimization enabled and -Zvalidate-mir, currently only for `std`
#rust.validate-mir-opts = 3
# Configure `std` features used during bootstrap.
#
# Default features will be expanded in the following cases:
# - If `rust.llvm-libunwind` or `target.llvm-libunwind` is enabled:
# - "llvm-libunwind" will be added for in-tree LLVM builds.
# - "system-llvm-libunwind" will be added for system LLVM builds.
# - If `rust.backtrace` is enabled, "backtrace" will be added.
# - If `rust.profiler` or `target.profiler` is enabled, "profiler" will be added.
# - If building for a zkvm target, "compiler-builtins-mem" will be added.
#
# Since libstd also builds libcore and liballoc as dependencies and all their features are mirrored
# as libstd features, this option can also be used to configure features such as optimize_for_size.
#rust.std-features = <default>
# Set the number of threads for the compiler frontend used during compilation of Rust code (passed to `-Zthreads`).
# The valid options are:
# 0 - Set the number of threads according to the detected number of threads of the host system
# 1 - Use a single thread for compilation of Rust code (the default)
# N - Number of threads used for compilation of Rust code
#
rust.parallel-frontend-threads = 1
[target.x86_64-unknown-linux-musl]
llvm-libunwind = "system"
crt-static = false
musl-libdir = "/lib/x86_64-semios-linux"
[target.aarch64-unknown-linux-musl]
llvm-libunwind = "system"
crt-static = false
musl-libdir = "/lib/aarch64-semios-linux"
[target.riscv64-unknown-linux-musl]
llvm-libunwind = "system"
crt-static = false
musl-libdir = "/lib/riscv64-semios-linux"
+77
View File
@@ -0,0 +1,77 @@
import os
import shutil
import subprocess
from lib.make import *
from lib import arch
upstream_version = "1.97.1"
version(upstream_version)
description("A language empowering everyone to build reliable and efficient software")
maintainer("sisungo <[email protected]>")
source_url(f"https://static.rust-lang.org/dist/rustc-{upstream_version}-src.tar.xz")
builddep("shortcut/cmake")
builddep("shortcut/c++")
builddep("python")
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")
def setup_musl_root():
os.makedirs("../musl_root/lib", exist_ok=True)
for i in ["libc.a", "crt1.o", "Scrt1.o", "rcrt1.o", "crti.o", "crtn.o", "libunwind.a"]:
shutil.copy2(f"/lib/{arch.get_target()}/{i}", f"../musl_root/lib/{i}")
def configure():
with open("../../bootstrap.toml.in") as file:
content = file.read()
content = content.replace("%RUSTVERSION%", upstream_version)
content = content.replace("%CARGOPATH%", shutil.which("cargo") or "cargo")
content = content.replace("%RUSTCPATH%", shutil.which("rustc") or "rustc")
content = content.replace("%INSTALLPREFIX%", get_prefix("rust"))
content = content.replace("%MUSLROOT%", os.getcwd() + "/../musl_root")
with open("bootstrap.toml", "wt+") as file:
file.write(content)
def run_build():
subprocess.run(["python3", "x.py", "build"], check=True)
def run_install():
os.environ["DESTDIR"] = os.getcwd() + "/../install_destdir"
subprocess.run(["python3", "x.py", "install"], check=True)
os.chdir(os.environ["DESTDIR"])
# FIXME: Rust seemed not to process our directory name correctly, it is installed to pkg/rust.
os.chdir("pkg/rust")
def build():
setup_musl_root()
configure()
run_build()
run_install()
on_build(build)
def pack_rust(composer):
composer.makedir("lib")
composer.makedir("bin")
for i in os.listdir("."):
if ".so" in i:
composer.addfile(i, f"lib/{i}")
elif i in ["rustc", "rust-gdb", "rust-gdbgui", "rust-lldb", "rustdoc"]:
composer.addfile(i, f"bin/{i}")
composer.add_dir("rustlib", "lib/rustlib")
package("rust")
dep("semi-libc @same-arch")
dep("libz @same-arch")
dep("libcxx @same-arch")
on_pack(pack_rust)
+2
View File
@@ -3,6 +3,8 @@ import subprocess
from lib.make import *
version("15.1.1")
description("SemiOS fork of the UNIX sed utility")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/sed/archive/v15.1.1.tar.gz")
builddep("shortcut/c")
+2
View File
@@ -2,6 +2,8 @@ from lib import arch, cpp
from lib.make import *
version("1.2.6+1")
description("the SemiOS fork of musl-libc, providing POSIX C standard library and system runtime")
maintainer("sisungo <[email protected]>")
source_url("https://gitea.semilabs.org/semios/semi-libc/archive/v1.2.6-1.tar.gz")
+4
View File
@@ -8,11 +8,13 @@ def deplinux(s):
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`..."))
package("SemiOS.Assembly.CoreRuntime")
description("Assembly of the core SemiOS runtime")
deplinux("semi-libc @same-arch")
deplinux("libgcc-compat @same-arch")
dep("libunwind @same-arch")
@@ -26,6 +28,7 @@ dep("iana-timezone-db")
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.CoreRuntime`..."))
package("SemiOS.Assembly.Cli")
description("Assembly of core SemiOS command-line experience")
dep("less @same-arch")
dep("ncurses-tools @same-arch")
dep("ncurses-terminfo")
@@ -34,6 +37,7 @@ dep("neatvi @same-arch")
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Cli`..."))
package("SemiOS.Assembly.Networking")
description("Assembly of SemiOS core networking experience")
dep("aws-lc-libssl @same-arch")
dep("aws-lc-tools @same-arch")
dep("ca-certificates")
+4 -2
View File
@@ -3,8 +3,10 @@ import os
import lib.cpp as cpp
from lib.make import *
version("3.53.2")
source_url("https://sqlite.org/2026/sqlite-autoconf-3530200.tar.gz")
version("3.53.4")
description("a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine")
maintainer("sisungo <[email protected]>")
source_url("https://sqlite.org/2026/sqlite-autoconf-3530400.tar.gz")
builddep("shortcut/autotools")
builddep("shortcut/c")
+2
View File
@@ -13,6 +13,8 @@ builddep(f"libz-ng-dev @{arch.get_target()}")
builddep(f"libncurses-dev @{arch.get_target()}")
version("2.42.2")
description("a random collection of Linux utilities")
maintainer("sisungo <[email protected]>")
source_url("https://www.kernel.org/pub/linux/utils/util-linux/v2.42/util-linux-2.42.2.tar.xz")
def build():
+3
View File
@@ -4,6 +4,8 @@ from lib.make import *
upstream_version = "9.2.782"
version(upstream_version)
description("vim, a greatly improved version of the good old UNIX editor Vi")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/vim/vim/archive/refs/tags/v9.2.0782.tar.gz")
builddep("shortcut/c")
@@ -45,3 +47,4 @@ dep("semi-libc @same-arch")
dep("libncurses @same-arch")
dep(f"vim-data (={upstream_version}) @any")
cpp.use_auto_pack(["bin"])
link("bin/vim", "/bin/vi")
+2
View File
@@ -4,6 +4,8 @@ from lib import cpp
from lib.make import *
version("5.8.3")
description("a general-purpose LZMA data-compression library plus command-line tools")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/tukaani-project/xz/releases/download/v5.8.3/xz-5.8.3.tar.gz"
)
+2
View File
@@ -4,6 +4,8 @@ import lib.cpp as cpp
from lib.make import *
version("2.3.3")
description("zlib replacement with optimizations for next generation systems")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/zlib-ng/zlib-ng/archive/refs/tags/2.3.3.tar.gz")
builddep("shortcut/c++")
+2 -2
View File
@@ -1,9 +1,9 @@
import os
import lib.cpp as cpp
from lib.make import *
version("1.5.7")
description("Zstandard - Fast real-time compression algorithm")
maintainer("sisungo <[email protected]>")
source_url(
"https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz"
)