Merge pull request 'feat: add more semios-assembly items' (#54) from sisungo/ports:more-assembly into main
Reviewed-on: semios/ports#54
This commit is contained in:
commit
a7527529ac
5 files changed
+28
-22
No files matched your search
+4
-16
@@ -5,14 +5,12 @@ import subprocess
|
||||
from . import packie
|
||||
|
||||
BASE_REQUIREMENTS = [
|
||||
# Basic packages for running shell scripts
|
||||
"mksh",
|
||||
"coreutils",
|
||||
"findutils",
|
||||
"diffutils",
|
||||
# Core system
|
||||
"SemiOS.Assembly.CoreRuntime",
|
||||
"SemiOS.Assembly.Networking",
|
||||
"libgcc-compat",
|
||||
# Packages for running `semios-packages` scripts
|
||||
"python",
|
||||
"packie",
|
||||
"zstd",
|
||||
"libarchive-tools",
|
||||
# Packages for building packages that require patching
|
||||
@@ -22,16 +20,6 @@ BASE_REQUIREMENTS = [
|
||||
"libz-ng",
|
||||
"liblzma",
|
||||
"libbzip2",
|
||||
# Basic libraries
|
||||
"sqlite",
|
||||
"libgcc-compat",
|
||||
"libcxx",
|
||||
"semi-libc",
|
||||
# Networking
|
||||
"ca-certificates",
|
||||
"certutil",
|
||||
"aws-lc-libssl",
|
||||
"aws-lc-tools",
|
||||
]
|
||||
|
||||
|
||||
|
||||
+7
-3
@@ -39,10 +39,14 @@ _builddep: list[str] = []
|
||||
_blocked_hooks: list[str] = []
|
||||
|
||||
|
||||
def current_target() -> str:
|
||||
return arch.get_target()
|
||||
|
||||
|
||||
def builddep(s: str):
|
||||
global _builddep
|
||||
if s == "shortcut/c":
|
||||
_builddep += ["semi-libc-dev", "clang", "llvm", "lld"]
|
||||
_builddep += ["semi-libc-dev", "clang", "SemiOS.Assembly.NativeDevTools"]
|
||||
elif s == "shortcut/c++":
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["libcxx-dev"]
|
||||
@@ -52,13 +56,13 @@ def builddep(s: str):
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["cargo", "rust"]
|
||||
elif s == "shortcut/go":
|
||||
_builddep += ["go", "llvm"]
|
||||
_builddep += ["go", "SemiOS.Assembly.NativeDevTools"]
|
||||
elif s == "shortcut/cmake":
|
||||
_builddep += ["cmake", "ninja", "pkgconf"]
|
||||
elif s == "shortcut/meson":
|
||||
_builddep += ["meson", "ninja", "pkgconf"]
|
||||
else:
|
||||
_builddep += [s.replace("@target", f"@{arch.get_target()}")]
|
||||
_builddep += [s.replace("@target", f"@{current_target()}")]
|
||||
|
||||
|
||||
def package(s: str):
|
||||
|
||||
@@ -44,3 +44,7 @@ def prefix_of(pkgident: str):
|
||||
capture_output=True,
|
||||
)
|
||||
return result.stdout.decode().strip()
|
||||
|
||||
|
||||
def select(file: str, pkg: str):
|
||||
subprocess.run([PACKIE_EXEC, "select", file, pkg], check=True)
|
||||
@@ -2,10 +2,10 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.4")
|
||||
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.4", "rust")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/packie#v0.1.0-alpha.5", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("libsqlite-dev @target")
|
||||
@@ -19,5 +19,6 @@ on_build(build)
|
||||
|
||||
package("packie")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("libsqlite @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -40,7 +40,16 @@ 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")
|
||||
dep("certutil @same-arch")
|
||||
dep("ca-certificates")
|
||||
deplinux("iproute2 @same-arch")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.Networking`..."))
|
||||
|
||||
package("SemiOS.Assembly.NativeDevTools")
|
||||
description("Assembly of essential SemiOS build tools for native code")
|
||||
dep("llvm @same-arch")
|
||||
dep("clang @same-arch")
|
||||
dep("lld @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
deplinux("linux-dev @same-arch")
|
||||
on_pack(lambda _: print("Packing virtual package `SemiOS.Assembly.NativeDevTools`..."))
|
||||
Reference in new issue
Block a user