Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
1a2055b6fe | ||
|
|
3891f33a7e | ||
|
|
b3f7fe6e13 | ||
|
|
60b05c9edb | ||
|
|
46e4b7ebcf | ||
|
|
e12946e232 | ||
|
|
5866a25931 | ||
|
|
ecf7ecd45c | ||
|
|
96da73c15f | ||
|
|
c5aeaa5f5d | ||
|
|
6a81e61bcd | ||
|
|
70a38d6b9d | ||
|
|
ba53b9db82 | ||
|
|
4d40823523 | ||
|
|
42cf5abc9c | ||
|
|
826ddd684e | ||
|
|
c96702d282 | ||
|
|
0da7bcbabc | ||
|
|
183872ee02 | ||
|
|
48d274535d | ||
|
|
99b631b57f | ||
|
|
b2a01bbe22 | ||
|
|
714947d019 | ||
|
|
0876c0d497 | ||
|
|
e5a3aff10d | ||
|
|
7c22973e81 | ||
|
|
b8371c7041 | ||
|
|
676e38c321 | ||
|
|
e724681edc | ||
|
|
13c7e6420b | ||
|
|
f8e4d604fd | ||
|
|
78de289631 | ||
|
|
1bcc00a752 | ||
|
|
482d59423c | ||
|
|
7c7aff2e75 | ||
|
|
094d28e120 | ||
|
|
6843e89c55 | ||
|
|
e33b2d3865 | ||
|
|
614fcad71b | ||
|
|
38f0a51535 | ||
|
|
1ba9775745 | ||
|
|
970322fd08 | ||
|
|
40bb77f549 | ||
|
|
a822fbd874 | ||
|
|
711862b75e | ||
|
|
a7527529ac | ||
|
|
1294b44c63 | ||
|
|
17cdaf9af8 | ||
|
|
6c6d7cf178 | ||
|
|
205a171e83 | ||
|
|
ff54f757c8 | ||
|
|
fe16277c83 | ||
|
|
1f18aeb5ce | ||
|
|
0a2ed6185d | ||
|
|
1cefa4b667 | ||
|
|
2bc64bf1ce | ||
|
|
cc51ad259b | ||
|
|
8b31b5ae79 | ||
|
|
a98b479df8 | ||
|
|
c14e7c9def | ||
|
|
5b36a2a6c8 | ||
|
|
73c90e3076 | ||
|
|
fe2e19f34f | ||
|
|
4a0b23f4a5 | ||
|
|
b6e8afd7af | ||
|
|
a989da8a09 | ||
|
|
41979537e0 | ||
|
|
616878224f | ||
|
|
371bcf96cc | ||
|
|
dfc2e163a0 | ||
|
|
b12ab4c511 | ||
|
|
568a39157e | ||
|
|
dfd27ca052 | ||
|
|
abd0524d04 | ||
|
|
58e4282e1e | ||
|
|
0ca500fd6d |
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)
|
||||
+4
-2
@@ -4,8 +4,10 @@ import subprocess
|
||||
from . import arch, make, pkgcomposer, logging
|
||||
|
||||
|
||||
def _rust_triple(semios: str) -> str:
|
||||
return semios.replace("-semios-linux", "-unknown-linux-musl")
|
||||
def _rust_triple(s: str) -> str:
|
||||
s = s.replace("-semios-linux", "-unknown-linux-musl")
|
||||
s = s.replace("riscv64", "riscv64gc")
|
||||
return s
|
||||
|
||||
|
||||
def build(rem: list[str] = []):
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("26.6")
|
||||
description("7-Zip is a file archiver with a high compression ratio.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://ip7z/7zip#26.06")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
os.chdir("CPP/7zip/Bundles/Alone2")
|
||||
sharedflags = "-D_GNU_SOURCE -Wno-error=cast-qual -Wno-error=disabled-macro-expansion -lc++ -lc++abi -Wno-error=unused-command-line-argument"
|
||||
cpp.make([
|
||||
"-f", "../../cmpl_clang.mak",
|
||||
f"CC={os.environ.get('CC', 'clang')} {os.environ.get('CFLAGS', '')} {sharedflags}",
|
||||
f"CXX={os.environ.get('CC', 'clang++')} {os.environ.get('CXXFLAGS', '')} {sharedflags}",
|
||||
"DISABLE_RAR=1",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("b/c/7zz", "bin/7zz")
|
||||
|
||||
package("7z")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -17,9 +17,13 @@ weights = ["Bold", "Book", "Eight", "ExtraBold", "ExtraLight", "Four", "Hair", "
|
||||
|
||||
def find_file(width, style, weight):
|
||||
modify = width
|
||||
suffix = style
|
||||
if width == "Normal":
|
||||
modify = ""
|
||||
filename = f"FiraSans{modify}-{weight}{style}.otf"
|
||||
if style == "Roman":
|
||||
suffix = ""
|
||||
w = weight if weight else "Regular"
|
||||
filename = f"FiraSans{modify}-{weight}{suffix}.otf"
|
||||
if os.path.exists(f"{width}/{style}/{filename}"):
|
||||
return filename
|
||||
return None
|
||||
@@ -35,6 +39,7 @@ def on_pack_by(width, style, weight):
|
||||
on_pack(pack)
|
||||
|
||||
|
||||
pkgdir = os.getcwd()
|
||||
def build():
|
||||
filename_version = upstream_version.replace('.', '')
|
||||
os.chdir(f"Download_Folder_FiraSans_{filename_version}/Fonts/Fira_Sans_OTF_{filename_version}")
|
||||
@@ -47,7 +52,7 @@ def build():
|
||||
if filename:
|
||||
pkgname = filename.replace(".otf", "")
|
||||
package(pkgname)
|
||||
configure_script("configure/fontconfig")
|
||||
configure_script(pkgdir + "/configure/fontconfig")
|
||||
arch_any()
|
||||
on_pack_by(width, style, weight)
|
||||
packages += [pkgname]
|
||||
|
||||
@@ -9,6 +9,8 @@ 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")
|
||||
|
||||
@@ -4,10 +4,10 @@ import shutil
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
version("0.10.9")
|
||||
version("0.10.10")
|
||||
description("Modern, portable and fast implementation of service supervisor and the init daemon.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://sisungo/airup#v0.10.9", "rust")
|
||||
source_managed("github://sisungo/airup#v0.10.10", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
@@ -44,8 +44,15 @@ def pack_airup(composer):
|
||||
composer.addfile("airupd", "bin/airupd")
|
||||
composer.addfile("airup-fallback-logger", "libexec/airup-fallback-logger")
|
||||
|
||||
def pack_libairup_sdk(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add("libairup_sdk.so", "lib/libairup_sdk.so")
|
||||
|
||||
package("airup")
|
||||
on_pack(pack_airup)
|
||||
dep("semi-libc @same-arch")
|
||||
link("bin/airupd", "/bin/init")
|
||||
|
||||
package("libairup_sdk")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack_libairup_sdk)
|
||||
@@ -1,6 +1,9 @@
|
||||
import os
|
||||
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
upstream_version = "1.2.16.1"
|
||||
|
||||
version(upstream_version)
|
||||
@@ -14,16 +17,16 @@ builddep(f"linux-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
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",
|
||||
]
|
||||
)
|
||||
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.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
from lib.make import *
|
||||
from lib import rust
|
||||
|
||||
|
||||
version("0.10.26")
|
||||
description("build and install C-compatible libraries")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://lu-zero/cargo-c#v0.10.26", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("pkgconf @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("rust-bindgen")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("cargo-c")
|
||||
dep("semi-libc @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -16,6 +16,7 @@ builddep("libz-ng-dev @target")
|
||||
builddep("libcurl-dev @target")
|
||||
builddep("libgit2-dev @target")
|
||||
builddep("libssh2-dev @target")
|
||||
builddep("rust-bindgen")
|
||||
|
||||
|
||||
def build():
|
||||
|
||||
@@ -4,13 +4,13 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
upstream_version = "4.4.2"
|
||||
upstream_version = "4.5.1"
|
||||
[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.4.2")
|
||||
source_managed("github://Kitware/CMake#v4.5.1")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
@@ -2,10 +2,10 @@ import lib.rust as rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.12.0")
|
||||
version("0.13.0")
|
||||
description("system core utilities")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://uutils/coreutils#0.12.0", "rust")
|
||||
source_managed("github://uutils/coreutils#0.13.0", "rust")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
@@ -133,3 +133,4 @@ 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")
|
||||
@@ -0,0 +1,32 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.193")
|
||||
description("libelf library extracted from elfutils")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://arachsys/libelf#v0.193")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libz-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libgelf")
|
||||
provide("libelf")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libgelf-dev")
|
||||
provide("libelf-dev")
|
||||
dep("libgelf (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,17 +0,0 @@
|
||||
ac_add_options --disable-bootstrap
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --disable-debug-symbols
|
||||
ac_add_options --disable-jemalloc
|
||||
ac_add_options --disable-tests
|
||||
ac_add_options --disable-updater
|
||||
|
||||
ac_add_options --enable-audio-backends=alsa
|
||||
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland-only
|
||||
ac_add_options --with-distribution-id=org.semilabs.os
|
||||
ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot
|
||||
|
||||
ac_add_options --disable-elf-hack
|
||||
ac_add_options --enable-packed-relative-relocs
|
||||
|
||||
ac_add_options --with-system-zlib
|
||||
ac_add_options --with-system-pixman
|
||||
@@ -1,429 +0,0 @@
|
||||
diff --git a/.cargo/config.toml.in b/.cargo/config.toml.in
|
||||
--- a/.cargo/config.toml.in
|
||||
+++ b/.cargo/config.toml.in
|
||||
@@ -63,13 +63,13 @@
|
||||
[source."git+https://github.com/martinthomson/ohttp?rev=600931b5a1e947776cbaad931ed78f1e89005352"]
|
||||
git = "https://github.com/martinthomson/ohttp"
|
||||
rev = "600931b5a1e947776cbaad931ed78f1e89005352"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
-[source."git+https://github.com/mozilla/audioipc?rev=d3c9825"]
|
||||
+[source."git+https://github.com/mozilla/audioipc?rev=ef46a7bd05032d1577208ff048d444cc7412c7b8"]
|
||||
git = "https://github.com/mozilla/audioipc"
|
||||
-rev = "d3c9825"
|
||||
+rev = "ef46a7bd05032d1577208ff048d444cc7412c7b8"
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source."git+https://github.com/mozilla/authenticator-rs?tag=v0.6.0"]
|
||||
git = "https://github.com/mozilla/authenticator-rs"
|
||||
tag = "v0.6.0"
|
||||
diff --git a/Cargo.lock b/Cargo.lock
|
||||
--- a/Cargo.lock
|
||||
+++ b/Cargo.lock
|
||||
@@ -334,13 +334,13 @@
|
||||
"bitflags 1.999.999",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "audio_thread_priority"
|
||||
-version = "0.37.0"
|
||||
+version = "0.38.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
-checksum = "e58c7a923538aa84eef9947d81924fb9f34d7db6004e179218ab57a7bb7700b6"
|
||||
+checksum = "e0b30b2f3d2da482d0faeaafd8f88a38fbc62abb58d3b402cfa195793f4c92ab"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"dbus",
|
||||
"libc",
|
||||
"log",
|
||||
@@ -349,11 +349,11 @@
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "audioipc2"
|
||||
version = "0.6.0"
|
||||
-source = "git+https://github.com/mozilla/audioipc?rev=d3c9825#d3c9825a876a5fc7b54101bd40d685acfc542917"
|
||||
+source = "git+https://github.com/mozilla/audioipc?rev=ef46a7bd05032d1577208ff048d444cc7412c7b8#ef46a7bd05032d1577208ff048d444cc7412c7b8"
|
||||
dependencies = [
|
||||
"arrayvec",
|
||||
"ashmem",
|
||||
"audio_thread_priority",
|
||||
"bincode",
|
||||
@@ -375,22 +375,22 @@
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "audioipc2-client"
|
||||
version = "0.6.0"
|
||||
-source = "git+https://github.com/mozilla/audioipc?rev=d3c9825#d3c9825a876a5fc7b54101bd40d685acfc542917"
|
||||
+source = "git+https://github.com/mozilla/audioipc?rev=ef46a7bd05032d1577208ff048d444cc7412c7b8#ef46a7bd05032d1577208ff048d444cc7412c7b8"
|
||||
dependencies = [
|
||||
"audio_thread_priority",
|
||||
"audioipc2",
|
||||
"cubeb-backend",
|
||||
"log",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "audioipc2-server"
|
||||
version = "0.6.0"
|
||||
-source = "git+https://github.com/mozilla/audioipc?rev=d3c9825#d3c9825a876a5fc7b54101bd40d685acfc542917"
|
||||
+source = "git+https://github.com/mozilla/audioipc?rev=ef46a7bd05032d1577208ff048d444cc7412c7b8#ef46a7bd05032d1577208ff048d444cc7412c7b8"
|
||||
dependencies = [
|
||||
"audio_thread_priority",
|
||||
"audioipc2",
|
||||
"cubeb-core",
|
||||
"log",
|
||||
diff --git a/supply-chain/imports.lock b/supply-chain/imports.lock
|
||||
--- a/supply-chain/imports.lock
|
||||
+++ b/supply-chain/imports.lock
|
||||
@@ -28,12 +28,12 @@
|
||||
user-id = 2915
|
||||
user-login = "Amanieu"
|
||||
user-name = "Amanieu d'Antras"
|
||||
|
||||
[[publisher.audio_thread_priority]]
|
||||
-version = "0.37.0"
|
||||
-when = "2026-08-10"
|
||||
+version = "0.38.0"
|
||||
+when = "2026-09-17"
|
||||
user-id = 1258
|
||||
user-login = "padenot"
|
||||
user-name = "Paul Adenot"
|
||||
|
||||
[[publisher.bhttp]]
|
||||
diff --git a/third_party/rust/audio_thread_priority/.cargo-checksum.json b/third_party/rust/audio_thread_priority/.cargo-checksum.json
|
||||
--- a/third_party/rust/audio_thread_priority/.cargo-checksum.json
|
||||
+++ b/third_party/rust/audio_thread_priority/.cargo-checksum.json
|
||||
@@ -1 +1 @@
|
||||
-{"files":{".cargo_vcs_info.json":"13629c1e0aabfcffbae3bddf6a472231b10f973817c0bd549f5e2782036184dd",".github/workflows/rust.yml":"f1ff0376f6d30c204620d50af9c60c4374b7e5001ad290e3bf3595925923f8f2","Cargo.lock":"fff166a1e4746a81e6b2b060692ed73790e8472e7c0526f60f2870baf5edb480","Cargo.toml":"ada29a3c844b5aaa099cea6854b1ca73cf98795ab52b8085c196c2931d08688d","Cargo.toml.orig":"6bdedb288e992ab55fb7d728a7941b1c85fb430c75c72fae685126b87c5f9372","LICENSE":"32ee9dbf6196874fc9d406c54a888a6c4cbb9aa4a7f35b46befeaff43a78fe85","Makefile":"0f9a771cfb30c7c4b9961d82fdca4e9e229a955bb2e636474a4101389e18e938","README.md":"c123692b3b50dd621b896a8269814d609cbf1e532b461bf4a77854ddd607eb7a","atp_test.cpp":"8075a040941a65fb9e3f7cbf0535853ca6661c3ac442ec35569b42b24bbec797","audio_thread_priority.h":"c32ac62eaa6b9482e5a56c407a47ec470ccadcdc8c95b06d38bd593987975a74","generate_osx_bindings.sh":"06e4e03450f788ced18d31fff5660919e6f6ec1119ddace363ffeb82f0518a71","src/lib.rs":"6e384fb8103be42882a162f22f5f7350a427ef797d895f662f54953dd9aea59b","src/rt_android.rs":"2e54e3ac527bef0c11790013c9399e1f388752a952af667c85da0f6f53eeb7c9","src/rt_linux.rs":"53204f6aa158b270a22b4099cde58558ec5ff96292ac8955581b4bcfbf3443d3","src/rt_linux_native.rs":"283ba4e200a1de707a4c336cae5d7f2fec9fc9c7a5a0794c286b4228bfe926b4","src/rt_mach.rs":"723e29ee7392b10c30f803b90a23ec6cd7a8aaaf6e81fe711e86cb6588a13ff0","src/rt_win.rs":"1743f579aea1b29940fee2f0652e23f76e08153ec7cbca621e5720d526e25b96"},"package":"e58c7a923538aa84eef9947d81924fb9f34d7db6004e179218ab57a7bb7700b6"}
|
||||
\ No newline at end of file
|
||||
+{"files":{".cargo_vcs_info.json":"941d7dd364a5ca6de04e5a1129197df302d661f809bab3d5ba6d63eb63e364e6",".github/workflows/rust.yml":"0b36b48d6f1976ae3a089596945ef398e02cfcb584a8dd04cb1fc2f16d2fd45f","Cargo.lock":"338d7d500e7cd330949216e3e9e7242cf91439b3eec90a5a75812df7f1fa4108","Cargo.toml":"8f76e327c4ac3c0e333491e7d35c52053574c7ec403b0cc4344893459eaadef8","Cargo.toml.orig":"0f774ee30569ad64f6de4affb15469b240f91086ef2e02320d60e248c853938f","LICENSE":"32ee9dbf6196874fc9d406c54a888a6c4cbb9aa4a7f35b46befeaff43a78fe85","Makefile":"0f9a771cfb30c7c4b9961d82fdca4e9e229a955bb2e636474a4101389e18e938","README.md":"c123692b3b50dd621b896a8269814d609cbf1e532b461bf4a77854ddd607eb7a","atp_test.cpp":"8075a040941a65fb9e3f7cbf0535853ca6661c3ac442ec35569b42b24bbec797","audio_thread_priority.h":"c32ac62eaa6b9482e5a56c407a47ec470ccadcdc8c95b06d38bd593987975a74","generate_osx_bindings.sh":"06e4e03450f788ced18d31fff5660919e6f6ec1119ddace363ffeb82f0518a71","src/lib.rs":"6e384fb8103be42882a162f22f5f7350a427ef797d895f662f54953dd9aea59b","src/rt_android.rs":"2e54e3ac527bef0c11790013c9399e1f388752a952af667c85da0f6f53eeb7c9","src/rt_linux.rs":"6bfb616de5a089279aaa306ca408433c873fe66812b144750f77f9d975cc166d","src/rt_linux_native.rs":"0634c3bc9ad4f4cf86f30735b3234fbd1d544ce28009305fede08ca27e745538","src/rt_mach.rs":"723e29ee7392b10c30f803b90a23ec6cd7a8aaaf6e81fe711e86cb6588a13ff0","src/rt_win.rs":"1743f579aea1b29940fee2f0652e23f76e08153ec7cbca621e5720d526e25b96"},"package":"e0b30b2f3d2da482d0faeaafd8f88a38fbc62abb58d3b402cfa195793f4c92ab"}
|
||||
\ No newline at end of file
|
||||
diff --git a/third_party/rust/audio_thread_priority/.cargo_vcs_info.json b/third_party/rust/audio_thread_priority/.cargo_vcs_info.json
|
||||
--- a/third_party/rust/audio_thread_priority/.cargo_vcs_info.json
|
||||
+++ b/third_party/rust/audio_thread_priority/.cargo_vcs_info.json
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"git": {
|
||||
- "sha1": "0aa1ecd7719b582b54f7648eec1f76e9f18cdd3c"
|
||||
+ "sha1": "f7823feae23ac705d09156eaa84a4deea75fa55e"
|
||||
},
|
||||
"path_in_vcs": ""
|
||||
}
|
||||
\ No newline at end of file
|
||||
diff --git a/third_party/rust/audio_thread_priority/.github/workflows/rust.yml b/third_party/rust/audio_thread_priority/.github/workflows/rust.yml
|
||||
--- a/third_party/rust/audio_thread_priority/.github/workflows/rust.yml
|
||||
+++ b/third_party/rust/audio_thread_priority/.github/workflows/rust.yml
|
||||
@@ -89,5 +89,41 @@
|
||||
# inherit it. This mirrors a real deployment rather than running the tests as root.
|
||||
run: |
|
||||
sudo prlimit --pid $$ --rtprio=10:10
|
||||
echo "RLIMIT_RTPRIO soft=$(ulimit -Sr) hard=$(ulimit -Hr)"
|
||||
rustup run ${{ matrix.rust }} cargo test --no-default-features
|
||||
+
|
||||
+ # musl defines pthread_t as a pointer instead of an integer, unlike glibc.
|
||||
+ build-musl:
|
||||
+ runs-on: ubuntu-24.04
|
||||
+ strategy:
|
||||
+ matrix:
|
||||
+ rust: [stable, nightly]
|
||||
+
|
||||
+ steps:
|
||||
+ - uses: actions/checkout@v2
|
||||
+
|
||||
+ - name: Install Rust (musl target)
|
||||
+ run: |
|
||||
+ rustup toolchain install ${{ matrix.rust }} --profile minimal
|
||||
+ rustup target add x86_64-unknown-linux-musl --toolchain ${{ matrix.rust }}
|
||||
+
|
||||
+ - name: Install Dependencies
|
||||
+ run: sudo apt-get update && sudo apt-get install libdbus-1-dev
|
||||
+
|
||||
+ - name: Build (musl, with dbus)
|
||||
+ shell: bash
|
||||
+ # The crate is a staticlib/rlib, so this doesn't link, and hence needs no musl libdbus: only
|
||||
+ # the headers, which pkg-config finds for the host.
|
||||
+ run: PKG_CONFIG_ALLOW_CROSS=1 rustup run ${{ matrix.rust }} cargo build --target x86_64-unknown-linux-musl --features dbus
|
||||
+
|
||||
+ - name: Build (musl, without dbus)
|
||||
+ shell: bash
|
||||
+ run: rustup run ${{ matrix.rust }} cargo build --target x86_64-unknown-linux-musl --no-default-features
|
||||
+
|
||||
+ - name: Test (musl, without dbus)
|
||||
+ shell: bash
|
||||
+ # Statically linked musl test binaries run fine on the glibc runner. As in the fallback job,
|
||||
+ # the native promotion path needs permission to request real-time scheduling.
|
||||
+ run: |
|
||||
+ sudo prlimit --pid $$ --rtprio=10:10
|
||||
+ rustup run ${{ matrix.rust }} cargo test --target x86_64-unknown-linux-musl --no-default-features -- --nocapture
|
||||
diff --git a/third_party/rust/audio_thread_priority/Cargo.lock b/third_party/rust/audio_thread_priority/Cargo.lock
|
||||
--- a/third_party/rust/audio_thread_priority/Cargo.lock
|
||||
+++ b/third_party/rust/audio_thread_priority/Cargo.lock
|
||||
@@ -2,11 +2,11 @@
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "audio_thread_priority"
|
||||
-version = "0.37.0"
|
||||
+version = "0.38.0"
|
||||
dependencies = [
|
||||
"cfg-if",
|
||||
"dbus",
|
||||
"libc",
|
||||
"log 0.4.33",
|
||||
diff --git a/third_party/rust/audio_thread_priority/Cargo.toml b/third_party/rust/audio_thread_priority/Cargo.toml
|
||||
--- a/third_party/rust/audio_thread_priority/Cargo.toml
|
||||
+++ b/third_party/rust/audio_thread_priority/Cargo.toml
|
||||
@@ -10,11 +10,11 @@
|
||||
# See Cargo.toml.orig for the original contents.
|
||||
|
||||
[package]
|
||||
edition = "2018"
|
||||
name = "audio_thread_priority"
|
||||
-version = "0.37.0"
|
||||
+version = "0.38.0"
|
||||
authors = ["Paul Adenot <[email protected]>"]
|
||||
build = false
|
||||
autolib = false
|
||||
autobins = false
|
||||
autoexamples = false
|
||||
diff --git a/third_party/rust/audio_thread_priority/Cargo.toml.orig b/third_party/rust/audio_thread_priority/Cargo.toml.orig
|
||||
--- a/third_party/rust/audio_thread_priority/Cargo.toml.orig
|
||||
+++ b/third_party/rust/audio_thread_priority/Cargo.toml.orig
|
||||
@@ -1,8 +1,8 @@
|
||||
[package]
|
||||
name = "audio_thread_priority"
|
||||
-version = "0.37.0"
|
||||
+version = "0.38.0"
|
||||
authors = ["Paul Adenot <[email protected]>"]
|
||||
description = "Bump a thread to real-time priority, for audio work, on Linux, Android, Windows and macOS"
|
||||
license = "MPL-2.0"
|
||||
repository = "https://github.com/mozilla/audio_thread_priority"
|
||||
edition = "2018"
|
||||
diff --git a/third_party/rust/audio_thread_priority/src/rt_linux.rs b/third_party/rust/audio_thread_priority/src/rt_linux.rs
|
||||
--- a/third_party/rust/audio_thread_priority/src/rt_linux.rs
|
||||
+++ b/third_party/rust/audio_thread_priority/src/rt_linux.rs
|
||||
@@ -60,11 +60,13 @@
|
||||
impl RtPriorityThreadInfoInternal {
|
||||
/// Serialize to a byte buffer. The fields are packed explicitly rather than transmuting the
|
||||
/// struct, so no uninitialized padding bytes are ever read. Any trailing padding stays zero.
|
||||
pub fn serialize(&self) -> [u8; std::mem::size_of::<Self>()] {
|
||||
let thread_id = self.thread_id.to_ne_bytes();
|
||||
- let pthread_id = self.pthread_id.to_ne_bytes();
|
||||
+ // `pthread_t` is an integer with glibc but a pointer with musl: go through `usize`, which
|
||||
+ // is as wide as both.
|
||||
+ let pthread_id = (self.pthread_id as usize).to_ne_bytes();
|
||||
let pid = self.pid.to_ne_bytes();
|
||||
let policy = self.policy.to_ne_bytes();
|
||||
let priority = self.priority.to_ne_bytes();
|
||||
|
||||
let mut bytes = [0u8; std::mem::size_of::<Self>()];
|
||||
@@ -89,11 +91,11 @@
|
||||
chunk
|
||||
}
|
||||
let mut src = bytes.iter().copied();
|
||||
RtPriorityThreadInfoInternal {
|
||||
thread_id: kernel_pid_t::from_ne_bytes(take(&mut src)),
|
||||
- pthread_id: libc::pthread_t::from_ne_bytes(take(&mut src)),
|
||||
+ pthread_id: usize::from_ne_bytes(take(&mut src)) as libc::pthread_t,
|
||||
pid: libc::pid_t::from_ne_bytes(take(&mut src)),
|
||||
policy: libc::c_int::from_ne_bytes(take(&mut src)),
|
||||
priority: libc::c_int::from_ne_bytes(take(&mut src)),
|
||||
}
|
||||
}
|
||||
diff --git a/third_party/rust/audio_thread_priority/src/rt_linux_native.rs b/third_party/rust/audio_thread_priority/src/rt_linux_native.rs
|
||||
--- a/third_party/rust/audio_thread_priority/src/rt_linux_native.rs
|
||||
+++ b/third_party/rust/audio_thread_priority/src/rt_linux_native.rs
|
||||
@@ -76,11 +76,13 @@
|
||||
impl RtPriorityThreadInfoInternal {
|
||||
/// Serialize to a byte buffer. The fields are packed explicitly rather than transmuting the
|
||||
/// struct, so no uninitialized padding bytes are ever read. Any trailing padding stays zero.
|
||||
pub fn serialize(&self) -> [u8; std::mem::size_of::<Self>()] {
|
||||
let thread_id = self.thread_id.to_ne_bytes();
|
||||
- let pthread_id = self.pthread_id.to_ne_bytes();
|
||||
+ // `pthread_t` is an integer with glibc but a pointer with musl: go through `usize`, which
|
||||
+ // is as wide as both.
|
||||
+ let pthread_id = (self.pthread_id as usize).to_ne_bytes();
|
||||
let pid = self.pid.to_ne_bytes();
|
||||
let policy = self.policy.to_ne_bytes();
|
||||
let priority = self.priority.to_ne_bytes();
|
||||
|
||||
let mut bytes = [0u8; std::mem::size_of::<Self>()];
|
||||
@@ -105,11 +107,11 @@
|
||||
chunk
|
||||
}
|
||||
let mut src = bytes.iter().copied();
|
||||
RtPriorityThreadInfoInternal {
|
||||
thread_id: kernel_pid_t::from_ne_bytes(take(&mut src)),
|
||||
- pthread_id: libc::pthread_t::from_ne_bytes(take(&mut src)),
|
||||
+ pthread_id: usize::from_ne_bytes(take(&mut src)) as libc::pthread_t,
|
||||
pid: libc::pid_t::from_ne_bytes(take(&mut src)),
|
||||
policy: libc::c_int::from_ne_bytes(take(&mut src)),
|
||||
priority: libc::c_int::from_ne_bytes(take(&mut src)),
|
||||
}
|
||||
}
|
||||
@@ -138,10 +140,30 @@
|
||||
/// The `sched_*` functions are thin syscall wrappers: they return -1 and set `errno`.
|
||||
fn sched_error(context: &str) -> AudioThreadPriorityError {
|
||||
AudioThreadPriorityError::new(&format!("{}: {}", context, OSError::last_os_error()))
|
||||
}
|
||||
|
||||
+/// Set the scheduling policy and priority of the thread with tid `tid`.
|
||||
+///
|
||||
+/// This goes through the syscall directly because musl's `sched_setscheduler` is a stub that always
|
||||
+/// fails with `ENOSYS`: POSIX specifies it as process-scoped, which Linux does not provide. The
|
||||
+/// syscall is per-thread, which is what is needed here.
|
||||
+fn sched_setscheduler(
|
||||
+ tid: libc::pid_t,
|
||||
+ policy: libc::c_int,
|
||||
+ param: &libc::sched_param,
|
||||
+) -> libc::c_long {
|
||||
+ unsafe {
|
||||
+ libc::syscall(
|
||||
+ libc::SYS_sched_setscheduler,
|
||||
+ tid,
|
||||
+ policy,
|
||||
+ param as *const libc::sched_param,
|
||||
+ )
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
/// A thread's system-wide tid narrowed to `pid_t` for the scheduler syscalls. A tid always fits in
|
||||
/// `pid_t` (it is a pid), but convert defensively rather than truncating.
|
||||
fn scheduler_tid(thread_id: kernel_pid_t) -> Result<libc::pid_t, AudioThreadPriorityError> {
|
||||
libc::pid_t::try_from(thread_id)
|
||||
.map_err(|_| AudioThreadPriorityError::new("thread id does not fit in pid_t"))
|
||||
@@ -234,12 +256,11 @@
|
||||
let tid = scheduler_tid(thread_info.thread_id)?;
|
||||
|
||||
let mut param = unsafe { std::mem::zeroed::<libc::sched_param>() };
|
||||
param.sched_priority = requested_priority();
|
||||
|
||||
- let rc =
|
||||
- unsafe { libc::sched_setscheduler(tid, libc::SCHED_FIFO | SCHED_RESET_ON_FORK, ¶m) };
|
||||
+ let rc = sched_setscheduler(tid, libc::SCHED_FIFO | SCHED_RESET_ON_FORK, ¶m);
|
||||
if rc < 0 {
|
||||
return Err(sched_error("could not promote thread"));
|
||||
}
|
||||
|
||||
Ok(RtPriorityHandleInternal { thread_info })
|
||||
@@ -252,12 +273,11 @@
|
||||
// Keep SCHED_RESET_ON_FORK set (see demote_current_thread_from_real_time_internal): clearing it
|
||||
// as an unprivileged thread would fail with EPERM.
|
||||
let tid = scheduler_tid(thread_info.thread_id)?;
|
||||
let mut param = unsafe { std::mem::zeroed::<libc::sched_param>() };
|
||||
param.sched_priority = thread_info.priority;
|
||||
- let rc =
|
||||
- unsafe { libc::sched_setscheduler(tid, thread_info.policy | SCHED_RESET_ON_FORK, ¶m) };
|
||||
+ let rc = sched_setscheduler(tid, thread_info.policy | SCHED_RESET_ON_FORK, ¶m);
|
||||
if rc < 0 {
|
||||
return Err(sched_error("could not demote thread"));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
diff --git a/third_party/rust/audioipc2-client/.cargo-checksum.json b/third_party/rust/audioipc2-client/.cargo-checksum.json
|
||||
--- a/third_party/rust/audioipc2-client/.cargo-checksum.json
|
||||
+++ b/third_party/rust/audioipc2-client/.cargo-checksum.json
|
||||
@@ -1 +1 @@
|
||||
-{"files":{"Cargo.toml":"e16f57291b3e7be5e035f2b1793b5864ae091d573df060ff032d484ca608c6a8","cbindgen.toml":"fb6abe1671497f432a06e40b1db7ed7cd2cceecbd9a2382193ad7534e8855e34","src/context.rs":"c351b782e9bb83a1fbc5127e07a4d06c59978256bb0dc265df256eb948a6cf4e","src/lib.rs":"0322bba9529c81c891bc2c033d402590058014da0df0730dbf9532380c2dabe8","src/send_recv.rs":"cd396a704f205d4ef680f484461a065aa29f624603d5031f9973779826fb3c19","src/stream.rs":"d7d4967c8ef760a58592aff23157357646528c1c83c9de394e1f9c8043f72a81"},"package":null}
|
||||
\ No newline at end of file
|
||||
+{"files":{"Cargo.toml":"b74876a8e35719161990b55d3b83127d883efcdddce79c866044ba59ab17e849","cbindgen.toml":"fb6abe1671497f432a06e40b1db7ed7cd2cceecbd9a2382193ad7534e8855e34","src/context.rs":"c351b782e9bb83a1fbc5127e07a4d06c59978256bb0dc265df256eb948a6cf4e","src/lib.rs":"0322bba9529c81c891bc2c033d402590058014da0df0730dbf9532380c2dabe8","src/send_recv.rs":"cd396a704f205d4ef680f484461a065aa29f624603d5031f9973779826fb3c19","src/stream.rs":"d7d4967c8ef760a58592aff23157357646528c1c83c9de394e1f9c8043f72a81"},"package":null}
|
||||
\ No newline at end of file
|
||||
diff --git a/third_party/rust/audioipc2-client/Cargo.toml b/third_party/rust/audioipc2-client/Cargo.toml
|
||||
--- a/third_party/rust/audioipc2-client/Cargo.toml
|
||||
+++ b/third_party/rust/audioipc2-client/Cargo.toml
|
||||
@@ -34,11 +34,11 @@
|
||||
[dependencies]
|
||||
cubeb-backend = "0.34"
|
||||
log = "0.4"
|
||||
|
||||
[dependencies.audio_thread_priority]
|
||||
-version = "0.37"
|
||||
+version = "0.38"
|
||||
default-features = false
|
||||
|
||||
[dependencies.audioipc]
|
||||
path = "../audioipc"
|
||||
package = "audioipc2"
|
||||
diff --git a/third_party/rust/audioipc2-server/.cargo-checksum.json b/third_party/rust/audioipc2-server/.cargo-checksum.json
|
||||
--- a/third_party/rust/audioipc2-server/.cargo-checksum.json
|
||||
+++ b/third_party/rust/audioipc2-server/.cargo-checksum.json
|
||||
@@ -1 +1 @@
|
||||
-{"files":{"Cargo.toml":"80d2db99b52346498fbdfd082fa294bf962d2442eefaaeb001ef04b009e5100b","cbindgen.toml":"fb6abe1671497f432a06e40b1db7ed7cd2cceecbd9a2382193ad7534e8855e34","src/lib.rs":"a19c1bad94e16a0cfcd1e93c25b97bf58cc00e9666b5c31652d8a2242decb36c","src/server.rs":"28d494e2d4a6ad673f77912578179eb7b1b8b927d7fd63048d099284d03aeda7"},"package":null}
|
||||
\ No newline at end of file
|
||||
+{"files":{"Cargo.toml":"7169f1242e389376f935ea01e29d17d7ebe52fcac3631c332357e1272fab1ba0","cbindgen.toml":"fb6abe1671497f432a06e40b1db7ed7cd2cceecbd9a2382193ad7534e8855e34","src/lib.rs":"a19c1bad94e16a0cfcd1e93c25b97bf58cc00e9666b5c31652d8a2242decb36c","src/server.rs":"28d494e2d4a6ad673f77912578179eb7b1b8b927d7fd63048d099284d03aeda7"},"package":null}
|
||||
\ No newline at end of file
|
||||
diff --git a/third_party/rust/audioipc2-server/Cargo.toml b/third_party/rust/audioipc2-server/Cargo.toml
|
||||
--- a/third_party/rust/audioipc2-server/Cargo.toml
|
||||
+++ b/third_party/rust/audioipc2-server/Cargo.toml
|
||||
@@ -36,11 +36,11 @@
|
||||
log = "0.4"
|
||||
once_cell = "1.2.0"
|
||||
slab = "0.4"
|
||||
|
||||
[dependencies.audio_thread_priority]
|
||||
-version = "0.37"
|
||||
+version = "0.38"
|
||||
default-features = false
|
||||
|
||||
[dependencies.audioipc]
|
||||
path = "../audioipc"
|
||||
package = "audioipc2"
|
||||
diff --git a/third_party/rust/audioipc2/.cargo-checksum.json b/third_party/rust/audioipc2/.cargo-checksum.json
|
||||
--- a/third_party/rust/audioipc2/.cargo-checksum.json
|
||||
+++ b/third_party/rust/audioipc2/.cargo-checksum.json
|
||||
@@ -1 +1 @@
|
||||
-{"files":{"Cargo.toml":"e5f446c16280d1294e630015be9bda06c489f20dde65c6d3c3b974325e676fdc","benches/serialization.rs":"495e9128fb7892c3460bf55c6dc56a3d9e8853331f566d43231e30fad2c00ff4","src/codec.rs":"49120cd77f09e4acace1629936157fc9afa0a846c9018ad2dd021b5f0e6577fd","src/errors.rs":"36fe5299aee55761366ddc5dcf2f6fb5d81d8a718c59394b6baeb4075fdfc1a7","src/ipccore.rs":"a06cf09aa600df1280538e7946223ab979f088848213fc9c1a394af312f81fbd","src/lib.rs":"98ba1fe514326d2ef374c9ccc3a7125836cdcc3abe62abcf9a4af0084205538a","src/messages.rs":"d294f24ce018603d2e141af3a06a983421a8da191275937bd2cfa8523064def1","src/rpccore.rs":"058477df2304b4d8c5d1a347663301bcdea3f772762f806963e63a0c8df9ea73","src/shm.rs":"61c9f5d158914cb0ed34d7ce898d1ab24d1a892c68ee0406ff03d01e5c172d32","src/sys/mod.rs":"e6fa1d260abf093e1f7b50185195e2d3aee0eb8c9774c6f253953b5896d838f3","src/sys/unix/cmsg.rs":"e7b7154d55ce57e16ba93d4982630077bf6c70fa56e572956f14ae15aa43cb4c","src/sys/unix/mod.rs":"de0cd5c7a44cfd7c1f5b8cd0260089dc7245373ff9baa0ce44acfdc2d407a9d1","src/sys/unix/msg.rs":"25244de3eba920fa42e032f8fa4ea4913a9fdeb5124ade61e707f6cc6dd946b0","src/sys/windows/mod.rs":"7eaabb76e62c6962b636320e2bbf79a78fce61659c799a798f7dd6d56b0be8a1"},"package":null}
|
||||
\ No newline at end of file
|
||||
+{"files":{"Cargo.toml":"4381ef3bff9eb36cfb1f0ef7793f09204229d3f7260144a2501ae83ca40b70c1","benches/serialization.rs":"495e9128fb7892c3460bf55c6dc56a3d9e8853331f566d43231e30fad2c00ff4","src/codec.rs":"49120cd77f09e4acace1629936157fc9afa0a846c9018ad2dd021b5f0e6577fd","src/errors.rs":"36fe5299aee55761366ddc5dcf2f6fb5d81d8a718c59394b6baeb4075fdfc1a7","src/ipccore.rs":"a06cf09aa600df1280538e7946223ab979f088848213fc9c1a394af312f81fbd","src/lib.rs":"98ba1fe514326d2ef374c9ccc3a7125836cdcc3abe62abcf9a4af0084205538a","src/messages.rs":"d294f24ce018603d2e141af3a06a983421a8da191275937bd2cfa8523064def1","src/rpccore.rs":"058477df2304b4d8c5d1a347663301bcdea3f772762f806963e63a0c8df9ea73","src/shm.rs":"61c9f5d158914cb0ed34d7ce898d1ab24d1a892c68ee0406ff03d01e5c172d32","src/sys/mod.rs":"e6fa1d260abf093e1f7b50185195e2d3aee0eb8c9774c6f253953b5896d838f3","src/sys/unix/cmsg.rs":"e7b7154d55ce57e16ba93d4982630077bf6c70fa56e572956f14ae15aa43cb4c","src/sys/unix/mod.rs":"de0cd5c7a44cfd7c1f5b8cd0260089dc7245373ff9baa0ce44acfdc2d407a9d1","src/sys/unix/msg.rs":"25244de3eba920fa42e032f8fa4ea4913a9fdeb5124ade61e707f6cc6dd946b0","src/sys/windows/mod.rs":"7eaabb76e62c6962b636320e2bbf79a78fce61659c799a798f7dd6d56b0be8a1"},"package":null}
|
||||
\ No newline at end of file
|
||||
diff --git a/third_party/rust/audioipc2/Cargo.toml b/third_party/rust/audioipc2/Cargo.toml
|
||||
--- a/third_party/rust/audioipc2/Cargo.toml
|
||||
+++ b/third_party/rust/audioipc2/Cargo.toml
|
||||
@@ -66,11 +66,11 @@
|
||||
|
||||
[target.'cfg(target_os = "android")'.dependencies]
|
||||
ashmem = "0.1.2"
|
||||
|
||||
[target.'cfg(target_os = "linux")'.dependencies.audio_thread_priority]
|
||||
-version = "0.37"
|
||||
+version = "0.38"
|
||||
default-features = false
|
||||
|
||||
[target."cfg(unix)".dependencies]
|
||||
arrayvec = "0.7"
|
||||
iovec = "0.1"
|
||||
diff --git a/toolkit/library/rust/shared/Cargo.toml b/toolkit/library/rust/shared/Cargo.toml
|
||||
--- a/toolkit/library/rust/shared/Cargo.toml
|
||||
+++ b/toolkit/library/rust/shared/Cargo.toml
|
||||
@@ -25,12 +25,12 @@
|
||||
harfbuzz_glue = { path = "../../../../gfx/harfbuzz_glue" }
|
||||
webrender_bindings = { path = "../../../../gfx/webrender_bindings" }
|
||||
cubeb-coreaudio = { git = "https://github.com/mozilla/cubeb-coreaudio-rs", rev = "840f69c1b3f95accd582555e10abcef8ee67514b", optional = true }
|
||||
cubeb-pulse = { git = "https://github.com/mozilla/cubeb-pulse-rs", rev="88194f91c8778fa608a19af7b91306094525595d", optional = true, features=["pulse-dlopen"] }
|
||||
cubeb-sys = { version = "0.34", optional = true, features=["gecko-in-tree"] }
|
||||
-audioipc2-client = { git = "https://github.com/mozilla/audioipc", rev = "d3c9825", optional = true }
|
||||
-audioipc2-server = { git = "https://github.com/mozilla/audioipc", rev = "d3c9825", optional = true }
|
||||
+audioipc2-client = { git = "https://github.com/mozilla/audioipc", rev = "ef46a7bd05032d1577208ff048d444cc7412c7b8", optional = true }
|
||||
+audioipc2-server = { git = "https://github.com/mozilla/audioipc", rev = "ef46a7bd05032d1577208ff048d444cc7412c7b8", optional = true }
|
||||
encoding_glue = { path = "../../../../intl/encoding_glue" }
|
||||
locale_service_glue = { path = "../../../../intl/locale/rust/locale_service_glue" }
|
||||
app_collator_glue = { path = "../../../../intl/app_collator_glue" }
|
||||
authrs_bridge = { path = "../../../../dom/webauthn/authrs_bridge" }
|
||||
gkrust_utils = { path = "../../../../xpcom/rust/gkrust_utils" }
|
||||
@@ -46,11 +46,11 @@
|
||||
bitsdownload = { path = "../../../components/bitsdownload", optional = true }
|
||||
storage = { path = "../../../../storage/rust" }
|
||||
bookmark_sync = { path = "../../../components/places/bookmark_sync", optional = true }
|
||||
buildid_reader_ffi = { path = "../../buildid_reader/ffi" }
|
||||
chardetng_c = "1.0.0"
|
||||
-audio_thread_priority = { version = "0.37", default-features = false }
|
||||
+audio_thread_priority = { version = "0.38.0", default-features = false }
|
||||
mdns_service = { path="../../../../dom/media/webrtc/transport/mdns_service", features = ["profiler"], optional = true }
|
||||
neqo_glue = { path = "../../../../netwerk/socket/neqo_glue" }
|
||||
wgpu_bindings = { path = "../../../../gfx/wgpu_bindings" }
|
||||
fontations_glue = { path = "../../../../gfx/fontations_glue", optional = true }
|
||||
mapped_hyph = { git = "https://github.com/jfkthame/mapped_hyph.git", rev = "eff105f6ad7ec9b79816cfc1985a28e5340ad14b" }
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
--- a/third_party/libwebrtc/modules/desktop_capture/desktop_capturer.h
|
||||
+++ b/third_party/libwebrtc/modules/desktop_capture/desktop_capturer.h
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
+#include <sys/types.h>
|
||||
|
||||
// TODO(alcooper): Update include usage in downstream consumers and then change
|
||||
// this to a forward declaration.
|
||||
@@ -1,20 +0,0 @@
|
||||
see https://www.openwall.com/lists/musl/2025/06/12/11
|
||||
|
||||
/usr/include/sys/prctl.h:88:8: error: redefinition of 'prctl_mm_map'
|
||||
88 | struct prctl_mm_map {
|
||||
| ^
|
||||
/usr/include/linux/prctl.h:134:8: note: previous definition is here
|
||||
134 | struct prctl_mm_map {
|
||||
| ^
|
||||
|
||||
--- a/third_party/libwebrtc/rtc_base/platform_thread_types.cc
|
||||
+++ b/third_party/libwebrtc/rtc_base/platform_thread_types.cc
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
// IWYU pragma: begin_keep
|
||||
#if defined(WEBRTC_LINUX)
|
||||
-#include <linux/prctl.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
--- a/build/moz.configure/toolchain.configure
|
||||
+++ b/build/moz.configure/toolchain.configure
|
||||
@@ -2385,13 +2385,7 @@
|
||||
@depends(target, build_environment)
|
||||
def visibility_flags(target, env):
|
||||
if target.os != "WINNT":
|
||||
- if target.kernel in ("Darwin", "FreeBSD", "OpenBSD"):
|
||||
- return ("-fvisibility=hidden", "-fvisibility-inlines-hidden")
|
||||
- return (
|
||||
- "-I%s/system_wrappers" % os.path.join(env.dist),
|
||||
- "-include",
|
||||
- "%s/config/gcc_hidden.h" % env.topsrcdir,
|
||||
- )
|
||||
+ return ("-fvisibility=hidden", "-fvisibility-inlines-hidden")
|
||||
|
||||
|
||||
@depends(target, visibility_flags)
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("149.0")
|
||||
description("the Mozilla Firefox web browser")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ftp.mozilla.org/pub/firefox/releases/149.0/source/firefox-149.0.source.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/rust")
|
||||
builddep("alsa-lib-dev @target")
|
||||
builddep("libgtk-dev (~3.0.0) @target")
|
||||
builddep("cups-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("libpixman-dev @target")
|
||||
|
||||
|
||||
def apply_environ():
|
||||
os.environ["CC"] = "clang"
|
||||
os.environ["CXX"] = "clang++"
|
||||
os.environ["LDFLAGS"] = f"-Wl,-rpath,{get_prefix('firefox')}"
|
||||
|
||||
def write_mozconfig():
|
||||
with open(".mozconfig", "wt+") as fd:
|
||||
fd.write(f"ac_add_options --disable-bootstrap\n")
|
||||
fd.write(f"ac_add_options --disable-debug\n")
|
||||
fd.write(f"ac_add_options --disable-debug-symbols\n")
|
||||
fd.write(f"ac_add_options --disable-jemalloc\n")
|
||||
fd.write(f"ac_add_options --disable-tests\n")
|
||||
fd.write(f"ac_add_options --disable-updater\n")
|
||||
fd.write(f"ac_add_options --enable-audio-backends=alsa\n")
|
||||
fd.write(f"ac_add_options --enable-default-toolchain=cairo-gtk3-wayland-only\n")
|
||||
fd.write(f"ac_add_options --with-distribution-id=org.semilabs.os\n")
|
||||
fd.write(f"ac_add_options --enable-packed-relative-relocs\n")
|
||||
fd.write(f"ac_add_options --disable-elf-hack\n")
|
||||
fd.write(f"ac_add_options --with-system-zlib\n")
|
||||
fd.write(f"ac_add_options --with-system-pixman\n")
|
||||
|
||||
def build():
|
||||
apply_environ()
|
||||
write_mozconfig()
|
||||
subprocess.run(["python3", "mach", "build"])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
pass
|
||||
|
||||
package("firefox")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,28 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.18.0")
|
||||
description("GoogleTest - Google Testing and Mocking Framework")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://google/googletest#v1.18.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('googletest-dev')}",
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("googletest-dev")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libcxx-dev @same-arch")
|
||||
cpp.use_auto_pack(["lib", "dev"])
|
||||
@@ -0,0 +1,61 @@
|
||||
import glob
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("1.10.8")
|
||||
description("A thin layer of graphic data types")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/ebassi/graphene/archive/refs/tags/1.10.8.tar.gz")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
builddep("glib-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
builddep("libexpat")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libgraphene')}/lib",
|
||||
f"--includedir={get_prefix('libgraphene-dev')}/include",
|
||||
"-Dgobject_types=true",
|
||||
"-Dintrospection=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("lib")
|
||||
for i in glob.glob("lib/*.so*"):
|
||||
composer.add(i)
|
||||
composer.add("lib/girepository-1.0")
|
||||
composer.link_external(f"{get_prefix('libgraphene-dev')}/lib/graphene-1.0", "lib/graphene-1.0")
|
||||
|
||||
package("libgraphene")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack)
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.add("include")
|
||||
composer.makedir("include/gir")
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/graphene-1.0")
|
||||
composer.add("lib/pkgconfig")
|
||||
composer.add("share/gir-1.0", "include/gir/gir-1.0")
|
||||
|
||||
package("libgraphene-dev")
|
||||
dep("libgraphene (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
@@ -0,0 +1,118 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("4.23.3")
|
||||
description("The main GTK4 library.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/gtk/4.23/gtk-4.23.3.tar.xz")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
builddep("glib-dev @target")
|
||||
builddep("gdk-pixbuf-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libpango-dev @target")
|
||||
builddep("libcairo-gobject-dev @target")
|
||||
builddep("libepoxy-dev @target")
|
||||
builddep("libxkbcommon-dev @target")
|
||||
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("libgstgl-dev @target")
|
||||
#builddep("libgstplay-dev @target")
|
||||
#builddep("libgstallocators-dev @target")
|
||||
builddep("shaderc")
|
||||
builddep("linux-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libgtk')}/lib",
|
||||
f"--datadir={get_prefix('gtk-common')}/share",
|
||||
f"--includedir={get_prefix('libgtk-dev')}/include",
|
||||
"-Dx11-backend=false",
|
||||
"-Dwayland-backend=true",
|
||||
"-Dmedia-gstreamer=disabled",
|
||||
"-Dprint-cups=enabled",
|
||||
"-Dvulkan=enabled",
|
||||
"-Dintrospection=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_common(composer):
|
||||
composer.makedir("share")
|
||||
composer.add("share/mime")
|
||||
composer.add("share/gtk-4.0")
|
||||
|
||||
def pack_bin(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("bin/gtk4-image-tool")
|
||||
composer.add("bin/gtk4-launch")
|
||||
composer.add("bin/gtk4-query-settings")
|
||||
composer.add("bin/gtk4-update-icon-cache")
|
||||
|
||||
package("gtk-common")
|
||||
arch_any()
|
||||
on_pack(pack_common)
|
||||
|
||||
package("libgtk")
|
||||
dep("gtk-common (same-version) @any")
|
||||
dep("libgmodule @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libpango @same-arch")
|
||||
dep("libcairo @same-arch")
|
||||
dep("libharfbuzz @same-arch")
|
||||
dep("libfribidi @same-arch")
|
||||
dep("libcairo-gobject @same-arch")
|
||||
dep("gdk-pixbuf @same-arch")
|
||||
dep("libepoxy @same-arch")
|
||||
dep("libgraphene @same-arch")
|
||||
dep("libfontconfig @same-arch")
|
||||
dep("libvulkan @same-arch")
|
||||
dep("libpng @same-arch")
|
||||
dep("libtiff @same-arch")
|
||||
dep("libjpeg @same-arch")
|
||||
dep("libxkbcommon @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libcups @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("gtk-bin")
|
||||
dep("libgtk (same)")
|
||||
on_pack(pack_bin)
|
||||
|
||||
package("libgtk-dev")
|
||||
dep("libgtk (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
dep("libpango-dev @same-arch")
|
||||
dep("libcairo-dev @same-arch")
|
||||
dep("libharfbuzz-dev @same-arch")
|
||||
dep("libfribidi-dev @same-arch")
|
||||
dep("libcairo-gobject-dev @same-arch")
|
||||
dep("gdk-pixbuf-dev @same-arch")
|
||||
dep("libepoxy-dev @same-arch")
|
||||
dep("libgraphene-dev @same-arch")
|
||||
dep("libfontconfig-dev @same-arch")
|
||||
dep("libvulkan-dev @same-arch")
|
||||
dep("libpng-dev @same-arch")
|
||||
dep("libtiff-dev @same-arch")
|
||||
dep("libjpeg-dev @same-arch")
|
||||
dep("libxkbcommon-dev @same-arch")
|
||||
dep("libwayland-dev @same-arch")
|
||||
dep("cups-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -6,7 +6,9 @@ from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("14.3.1")
|
||||
icu_version = "~79"
|
||||
|
||||
version("14.3.1+2")
|
||||
description("HarfBuzz text shaping engine")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://harfbuzz/harfbuzz#14.3.1")
|
||||
@@ -14,32 +16,20 @@ source_managed("github://harfbuzz/harfbuzz#14.3.1")
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
builddep("glib-dev @target")
|
||||
builddep("libicu4c-dev @target")
|
||||
builddep(f"libicu4c-dev ({icu_version}) @target")
|
||||
builddep("libcairo-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("glib-tools")
|
||||
|
||||
|
||||
def fix_pc(newpkgname):
|
||||
path = f"lib/pkgconfig/harfbuzz-{newpkgname}.pc"
|
||||
with open(path, 'r') as file:
|
||||
content = file.read()
|
||||
content = content.replace(
|
||||
"-I${includedir}/harfbuzz",
|
||||
f"-I${{includedir}}/harfbuzz -I{get_prefix(f'libharfbuzz-{newpkgname}-dev')}/include/harfbuzz"
|
||||
)
|
||||
content = content.replace("-L${libdir}", f"-L${{libdir}} -L{get_prefix(f'libharfbuzz-{newpkgname}')}/lib")
|
||||
with open(path, 'wt+') as file:
|
||||
file.write(content)
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libharfbuzz')}/lib",
|
||||
f"--bindir={get_prefix('harfbuzz-tools')}/bin",
|
||||
f"--includedir={get_prefix('libharfbuzz-dev')}/include",
|
||||
f"-Dcmakepackagedir={get_prefix('libharfbuzz-dev')}/lib/cmake",
|
||||
"-Dglib=disabled",
|
||||
"-Dglib=enabled",
|
||||
"-Dgobject=enabled",
|
||||
"-Dcairo=enabled",
|
||||
"-Dicu=enabled",
|
||||
@@ -51,50 +41,32 @@ def build():
|
||||
if os.path.exists("../cpp_install"):
|
||||
shutil.rmtree("../cpp_install")
|
||||
cpp.meson_install()
|
||||
os.mkdir("include/gir")
|
||||
os.rename("share/gir-1.0", "include/gir/gir-1.0")
|
||||
fix_pc("gobject")
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_glob(composer, globs, excluded_kw=[]):
|
||||
for iglob in globs:
|
||||
for i in glob.glob(iglob):
|
||||
if any(excluded_pattern in i for excluded_pattern in excluded_kw):
|
||||
continue
|
||||
composer.makedirs(os.path.dirname(i))
|
||||
if os.path.islink(i) or os.path.isfile(i):
|
||||
composer.addfile(i)
|
||||
else:
|
||||
composer.add_dir(i)
|
||||
|
||||
|
||||
package("libharfbuzz")
|
||||
dep("libfreetype @same-arch")
|
||||
dep("libcairo @same-arch")
|
||||
dep("libicu4c @same-arch")
|
||||
dep(f"libicu4c ({icu_version}) @same-arch")
|
||||
dep("libpng @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/*.so*"], ["gobject"]))
|
||||
provide("libharfbuzz-gobject @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("harfbuzz-tools")
|
||||
dep("libharfbuzz (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libharfbuzz-dev")
|
||||
dep("libharfbuzz (same)")
|
||||
dep("libfreetype-dev @same-arch")
|
||||
dep("libcairo-dev @same-arch")
|
||||
dep("libicu4c-dev @same-arch")
|
||||
dep(f"libicu4c-dev ({icu_version}) @same-arch")
|
||||
dep("libpng-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/cmake", "lib/pkgconfig/*", "include/harfbuzz/*"], ["gobject"]))
|
||||
|
||||
package("libharfbuzz-gobject")
|
||||
dep("libharfbuzz (same)")
|
||||
dep("libglib @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/*gobject*", "lib/girepository-1.0"]))
|
||||
|
||||
package("libharfbuzz-gobject-dev")
|
||||
dep("libharfbuzz-gobject (same)")
|
||||
dep("libharfbuzz-dev (same)")
|
||||
dep("glib-dev @same-arch")
|
||||
on_pack(lambda c: pack_glob(c, ["lib/pkgconfig/*gobject*", "include/harfbuzz/*gobject*", "include/gir"]))
|
||||
provide("libharfbuzz-gobject-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/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"
|
||||
@@ -0,0 +1,14 @@
|
||||
[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"
|
||||
@@ -0,0 +1,7 @@
|
||||
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" }}] }] }
|
||||
@@ -0,0 +1,44 @@
|
||||
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)
|
||||
+13
-16
@@ -3,35 +3,32 @@ import os
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("78.3")
|
||||
|
||||
version("79.1")
|
||||
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"
|
||||
)
|
||||
source_managed("github://unicode-org/icu#release-79.1")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
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",
|
||||
]
|
||||
)
|
||||
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",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libicu4c")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
@@ -2,4 +2,8 @@
|
||||
|
||||
[ "${ACTION}" = "remove" ] && exit
|
||||
|
||||
if [ -e "/share/milestones/default.airm" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
"${PREFIX}/bin/airup-select-default-milestone" "normal-boot"
|
||||
@@ -5,16 +5,16 @@ import lib
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.2")
|
||||
version("0.1.0-alpha.3")
|
||||
description("SemiOS init scripts")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/init-scripts#v0.1.0-alpha.2")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/init-scripts#v0.1.0-alpha.3")
|
||||
|
||||
builddep("gnu-sed")
|
||||
|
||||
|
||||
def build():
|
||||
subprocess.run(["env", f"PREFIX={get_prefix('init-scripts')}", "sh", "install.sh"], check=True)
|
||||
subprocess.run(["./install.sh", f"PREFIX={get_prefix('init-scripts')}"], check=True)
|
||||
os.chdir("./target")
|
||||
|
||||
on_build(build)
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.2025.6.5")
|
||||
description("The iputils package is set of small old utilities for Linux networking.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://iputils/iputils#20250605")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libcap-dev @target")
|
||||
builddep("libintl-dev @target")
|
||||
builddep("gettext")
|
||||
builddep("libxslt-tools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
f"--prefix={get_prefix('iputils')}",
|
||||
"-DUSE_CAP=true",
|
||||
"-DUSE_IDN=false",
|
||||
"-DUSE_GETTEXT=true",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("iputils")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcap @same-arch")
|
||||
provide("ping")
|
||||
provide("arping")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -1,7 +1,7 @@
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
version("1.34")
|
||||
version("1.34+1")
|
||||
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/lkm",
|
||||
"-Dmoduledir=/lib/modules",
|
||||
"-Dtools=true",
|
||||
"-Ddlopen=all",
|
||||
"-Dmanpages=false",
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
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"])
|
||||
@@ -2,10 +2,10 @@ import lib.cpp as cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.8.9")
|
||||
version("3.8.11")
|
||||
description("Multi-format archive and compression library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libarchive/libarchive#v3.8.9")
|
||||
source_managed("github://libarchive/libarchive#v3.8.11")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
@@ -30,16 +30,15 @@ on_build(build)
|
||||
|
||||
|
||||
package("libarchive")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("libcrypto@same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("liblzma @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libarchive-tools")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("libarchive (same)")
|
||||
provide("tar")
|
||||
provide("cpio")
|
||||
@@ -47,8 +46,9 @@ provide("unzip")
|
||||
link("bin/bsdtar", "/bin/tar")
|
||||
link("bin/bsdcpio", "/bin/cpio")
|
||||
link("bin/bsdunzip", "/bin/unzip")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libarchive-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libarchive (same)")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -2,14 +2,16 @@ from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.23.1")
|
||||
icu_version = "~79"
|
||||
|
||||
version("0.23.3")
|
||||
description("C library for the Public Suffix List")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/rockdaboot/libpsl/releases/download/0.23.1/libpsl-0.23.1.tar.gz")
|
||||
source_url("https://github.com/rockdaboot/libpsl/releases/download/0.23.3/libpsl-0.23.3.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libicu4c-dev @target")
|
||||
builddep(f"libicu4c-dev ({icu_version}) @target")
|
||||
builddep("pkgconf")
|
||||
|
||||
|
||||
@@ -29,7 +31,7 @@ on_build(build)
|
||||
|
||||
package("libpsl")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libicu4c @same-arch")
|
||||
dep(f"libicu4c ({icu_version}) @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libpsl-tools")
|
||||
@@ -38,4 +40,6 @@ 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"])
|
||||
@@ -0,0 +1,35 @@
|
||||
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"])
|
||||
@@ -0,0 +1,44 @@
|
||||
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"])
|
||||
@@ -0,0 +1,45 @@
|
||||
--- 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'))
|
||||
|
||||
+57
-10
@@ -6,7 +6,7 @@ from lib import cpp, arch, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
upstream_version = "7.2.12"
|
||||
upstream_version = "7.3.5"
|
||||
|
||||
version(f"{upstream_version}")
|
||||
description("the Linux operating system kernel")
|
||||
@@ -16,24 +16,38 @@ 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("aws-lc-dev @target")
|
||||
builddep("aws-lc-tools")
|
||||
builddep("airboot-linux-stage2-mkinitramfs")
|
||||
builddep("airboot-linux-stage2-arch @target")
|
||||
builddep("libexpat")
|
||||
builddep("openssl-dev")
|
||||
builddep("openssl-tools")
|
||||
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("aarch64", "arm64")
|
||||
return arch.get_target().split("-")[0].replace("riscv64", "riscv").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():
|
||||
@@ -43,7 +57,13 @@ def prepare_config():
|
||||
shutil.copy2(config_file, ".config")
|
||||
|
||||
def make_install_everything():
|
||||
makeopts = [f"ARCH={get_arch()}", "LLVM=1", f"HOSTCC={os.environ.get('HOSTCC', 'cc')}"]
|
||||
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",
|
||||
]
|
||||
|
||||
cpp.make(makeopts + ["olddefconfig"])
|
||||
cpp.make(makeopts)
|
||||
@@ -54,10 +74,23 @@ 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([
|
||||
"mkinitramfs",
|
||||
f"{packie.prefix_of('airboot-linux-stage2-mkinitramfs')}/bin/mkinitramfs",
|
||||
"-a", f"{asp_prefix}/data",
|
||||
"-o", f"{os.getcwd()}/../initramfs.img",
|
||||
"-m", f"{os.getcwd()}/../kmod_install",
|
||||
@@ -69,15 +102,17 @@ 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(f"../KernelInfo.txt", "wt+") as fd:
|
||||
with open("../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)
|
||||
|
||||
@@ -104,16 +139,28 @@ 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 @@
|
||||
-L/lib/aarch64-semios-linux
|
||||
$-Wl,-L/lib/aarch64-semios-linux
|
||||
-B/lib/aarch64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/riscv64-semios-linux
|
||||
$-Wl,-L/lib/riscv64-semios-linux
|
||||
-B/lib/riscv64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/wasm32-semios-wasip3
|
||||
$-Wl,-L/lib/wasm32-semios-wasip3
|
||||
-B/lib/wasm32-semios-wasip3
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +1,3 @@
|
||||
-L/lib/x86_64-semios-linux
|
||||
$-Wl,-L/lib/x86_64-semios-linux
|
||||
-B/lib/x86_64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -4,24 +4,23 @@ import shutil
|
||||
import glob
|
||||
|
||||
import lib
|
||||
from lib import arch, cpp, packie
|
||||
from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
pkgver = "23.1.4"
|
||||
pkgver = "23.1.5"
|
||||
[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.4")
|
||||
source_managed("github://llvm/llvm-project#llvmorg-23.1.5")
|
||||
|
||||
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")
|
||||
|
||||
|
||||
@@ -29,7 +28,7 @@ srcdir = None
|
||||
packname = None
|
||||
|
||||
def llvm_host_triple():
|
||||
return arch.get_target().replace("-semios-linux", "-unknown-linux-musl")
|
||||
return current_target().replace("-semios-linux", "-unknown-linux-musl")
|
||||
|
||||
def cmake(sourcedir, args):
|
||||
builddir = os.getcwd() + f"/../_build_{sourcedir}"
|
||||
|
||||
@@ -4,10 +4,10 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.5")
|
||||
version("0.1.0-alpha.6")
|
||||
description("Linux device userspace daemon.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/lxdeviced#0.1.0-alpha.5", "rust")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/lxdeviced#v0.1.0-alpha.6", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.11.0")
|
||||
description("Extremely Fast Compression algorithm")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://lz4/lz4#v1.11.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.make()
|
||||
cpp.make_install([
|
||||
"prefix=/",
|
||||
f"libdir={get_prefix('liblz4')}/lib",
|
||||
f"includedir={get_prefix('liblz4-dev')}/include",
|
||||
f"bindir={get_prefix('lz4')}/bin",
|
||||
f"DESTDIR={os.getcwd()}/../cpp_install",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("liblz4")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
package("lz4")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("liblz4 (same)")
|
||||
|
||||
package("liblz4-dev")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("liblz4 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/meson.build 2026-10-28 15:17:44.000000000 +0000
|
||||
+++ b/meson.build 2026-11-09 10:34:43.222722774 +0000
|
||||
@@ -2104,7 +2104,7 @@
|
||||
if with_clc
|
||||
llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')
|
||||
|
||||
- dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
|
||||
+ dep_clang = cpp.find_library('clang-cpp', required : false)
|
||||
|
||||
if not dep_clang.found() or not _shared_llvm
|
||||
clang_modules = [
|
||||
+72
-60
@@ -1,14 +1,15 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("26.2.0")
|
||||
llvm_version = "~23.0.0"
|
||||
|
||||
version("26.2.6")
|
||||
description("Open source implementations of OpenGL, OpenGL ES, Vulkan, OpenCL, and more")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://archive.mesa3d.org/mesa-26.2.0.tar.xz")
|
||||
source_url("https://archive.mesa3d.org/mesa-26.2.6.tar.xz")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
@@ -17,8 +18,8 @@ builddep("wayland-protocols @target")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("libexpat-dev @target")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libllvm-dev @target")
|
||||
builddep("libclang-dev @target")
|
||||
builddep(f"libllvm-dev ({llvm_version}) @target")
|
||||
builddep(f"libclang-dev ({llvm_version}) @target")
|
||||
builddep("libunwind-dev @target")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
@@ -28,7 +29,7 @@ builddep("libopengl-dev @target")
|
||||
builddep("libglesv2-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
builddep("libllvmspirv-dev @target")
|
||||
builddep(f"libllvmspirv-dev ({llvm_version}) @target")
|
||||
builddep("spirv-tools-dev @target")
|
||||
builddep("libpng-dev @target")
|
||||
builddep("libarchive-dev @target")
|
||||
@@ -45,13 +46,7 @@ builddep("glslang")
|
||||
|
||||
archspec = {
|
||||
"aarch64-semios-linux": {
|
||||
"vulkan_drivers": [
|
||||
"mesa-vulkan-asahi",
|
||||
"mesa-vulkan-freedreno",
|
||||
"mesa-vulkan-intel",
|
||||
"mesa-vulkan-lvp",
|
||||
"mesa-vulkan-panfrost",
|
||||
],
|
||||
"gallium_drivers": "asahi,panfrost,v3d,vc4,llvmpipe,svga,zink,virgl",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,7 +65,7 @@ def build():
|
||||
# Generic directories
|
||||
f"--libdir=/lib/{arch.get_target()}",
|
||||
f"--includedir=/lib/{arch.get_target()}/include",
|
||||
f"--datadir=/share",
|
||||
"--datadir=/share",
|
||||
|
||||
# Platform selection
|
||||
"-Dplatforms=wayland",
|
||||
@@ -80,12 +75,12 @@ def build():
|
||||
"-Dxmlconfig=enabled",
|
||||
|
||||
# Gallium
|
||||
"-Dgallium-drivers=auto",
|
||||
f"-Dgallium-drivers={archspec[arch.get_target()]['gallium_drivers']}",
|
||||
"-Dgallium-va=enabled",
|
||||
f"-Dva-libs-path=/lib/{arch.get_target()}/dri",
|
||||
|
||||
# Vulkan
|
||||
"-Dvulkan-drivers=auto",
|
||||
"-Dvulkan-drivers=amd,broadcom,intel,intel_hasvk,panfrost,asahi,imagination,swrast",
|
||||
"-Dvulkan-layers=device-select,overlay,screenshot,anti-lag,vram-report-limit",
|
||||
f"-Dvulkan-icd-dir=/lib/{arch.get_target()}/vulkan/icd.d",
|
||||
"-Dvulkan-manifest-per-architecture=false",
|
||||
@@ -180,9 +175,6 @@ def pack_vulkan(composer, name):
|
||||
composer.makedirs("lib/vulkan/icd.d")
|
||||
composer.addfile(f"{libdir}/vulkan/icd.d/{name}_icd.json", f"lib/vulkan/icd.d/{name}_icd.json")
|
||||
|
||||
def hasvulkan(name):
|
||||
return name in archspec[arch.get_target()]["vulkan_drivers"]
|
||||
|
||||
|
||||
package("libgbm")
|
||||
dep("libdrm @same-arch")
|
||||
@@ -196,7 +188,7 @@ on_pack(lambda composer: pack_dev_simple(composer, "gbm"))
|
||||
|
||||
package("libgallium")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libllvm @same-arch")
|
||||
dep(f"libllvm ({llvm_version}) @same-arch")
|
||||
dep("libexpat @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
@@ -213,6 +205,7 @@ dep("libexpat @same-arch")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
on_pack(pack_libegl)
|
||||
link("share/glvnd/egl_vendor.d/50_mesa.json", "/share/glvnd/egl_vendor.d/50_mesa.json")
|
||||
|
||||
package("libegl-mesa-dev")
|
||||
dep("libgbm-dev (same)")
|
||||
@@ -222,47 +215,66 @@ dep("libwayland-dev @same-arch")
|
||||
dep("libegl-mesa (same)")
|
||||
on_pack(lambda composer: pack_dev_simple(composer, "EGL"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-asahi"):
|
||||
package("mesa-vulkan-asahi")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "asahi"))
|
||||
package("mesa-vulkan-asahi")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "asahi"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-freedreno"):
|
||||
package("mesa-vulkan-freedreno")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "freedreno"))
|
||||
package("mesa-vulkan-intel")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "intel"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-intel"):
|
||||
package("mesa-vulkan-intel")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "intel"))
|
||||
package("mesa-vulkan-lvp")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "lvp"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-lvp"):
|
||||
package("mesa-vulkan-lvp")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "lvp"))
|
||||
package("mesa-vulkan-powervr")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "powervr_mesa"))
|
||||
|
||||
if hasvulkan("mesa-vulkan-panfrost"):
|
||||
package("mesa-vulkan-panfrost")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "panfrost"))
|
||||
package("mesa-vulkan-broadcom")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "broadcom"))
|
||||
|
||||
package("mesa-vulkan-intel-hasvk")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "intel_hasvk"))
|
||||
|
||||
package("mesa-vulkan-panfrost")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "panfrost"))
|
||||
|
||||
package("mesa-vulkan-radeon")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
on_pack(lambda composer: pack_vulkan(composer, "radeon"))
|
||||
@@ -0,0 +1,41 @@
|
||||
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"])
|
||||
@@ -0,0 +1,28 @@
|
||||
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"])
|
||||
@@ -0,0 +1,10 @@
|
||||
--- 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"
|
||||
@@ -0,0 +1,90 @@
|
||||
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)
|
||||
@@ -6,10 +6,10 @@ from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("27.0.0")
|
||||
version("27.0.1.1+0004")
|
||||
description("JDK implementation of the OpenJDK project.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://openjdk/jdk#v27ga")
|
||||
source_managed("github://openjdk/jdk27u#jdk-27.0.1.1+4-manual")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -26,13 +26,17 @@ builddep("linux-dev @target")
|
||||
builddep("bash")
|
||||
builddep("file")
|
||||
builddep("zip")
|
||||
builddep("openjdk @target")
|
||||
builddep("gzip")
|
||||
builddep("openjdk")
|
||||
|
||||
block_hook("autolink")
|
||||
|
||||
|
||||
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",
|
||||
@@ -84,7 +88,11 @@ 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)
|
||||
@@ -0,0 +1,105 @@
|
||||
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,10 +2,10 @@ from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.1.0-alpha.4")
|
||||
version("0.1.0-alpha.6")
|
||||
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.6", "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"])
|
||||
@@ -1,11 +1,13 @@
|
||||
import glob
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("10.47")
|
||||
version("10.49")
|
||||
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")
|
||||
source_url("https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.49/pcre2-10.49.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -17,7 +19,14 @@ def build():
|
||||
f"--libdir={get_prefix('libpcre2')}/lib",
|
||||
f"--bindir={get_prefix('pcre2-tools')}/bin",
|
||||
f"--includedir={get_prefix('libpcre2-dev')}/include",
|
||||
|
||||
"--disable-debug",
|
||||
"--enable-jit",
|
||||
|
||||
"--disable-pcre2grep-libbz2",
|
||||
"--disable-pcre2grep-libz",
|
||||
"--disable-pcre2test-libedit",
|
||||
"--disable-pcre2test-libreadline",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
@@ -25,14 +34,31 @@ def build():
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_tools(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("bin/pcre2grep")
|
||||
composer.add("bin/pcre2test")
|
||||
|
||||
def pack_dev(composer):
|
||||
composer.makedir("bin")
|
||||
composer.add("bin/pcre2-config")
|
||||
composer.add("include")
|
||||
composer.makedir("lib")
|
||||
composer.add("lib/pkgconfig")
|
||||
composer.add("lib/libpcre2-8.a")
|
||||
composer.add("lib/libpcre2-8.la")
|
||||
composer.add("lib/libpcre2-posix.a")
|
||||
composer.add("lib/libpcre2-posix.la")
|
||||
|
||||
package("libpcre2")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("pcre2-tools")
|
||||
dep("libpcre2 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
on_pack(pack_tools)
|
||||
|
||||
package("libpcre2-dev")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libpcre2 (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
on_pack(pack_dev)
|
||||
@@ -0,0 +1,38 @@
|
||||
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)
|
||||
@@ -29,7 +29,7 @@ builddep("pkgconf")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
configure_args = [
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libpython')}/lib",
|
||||
f"--bindir={get_prefix('python')}/bin",
|
||||
@@ -45,10 +45,12 @@ 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(
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import rust, packie
|
||||
|
||||
|
||||
version("0.73.2")
|
||||
description("Automatically generates Rust FFI bindings to C (and some C++) libraries.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://rust-lang/rust-bindgen#v0.73.2", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libclang @target")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["LIBCLANG_PATH"] = packie.prefix_of("libclang") + "/lib"
|
||||
rust.build([
|
||||
"--package", "bindgen-cli",
|
||||
"--no-default-features",
|
||||
"--features", "logging",
|
||||
"--features", "libcpp",
|
||||
])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("rust-bindgen")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libclang @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -376,6 +376,12 @@ 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
|
||||
# =============================================================================
|
||||
@@ -680,11 +686,6 @@ 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
|
||||
|
||||
@@ -6,7 +6,7 @@ from lib.make import *
|
||||
from lib import arch
|
||||
|
||||
|
||||
upstream_version = "1.99.1"
|
||||
upstream_version = "1.100.0"
|
||||
|
||||
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(f"libz-ng-dev @{arch.get_target()}")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
builddep(f"libunwind-dev @{arch.get_target()}")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libunwind-dev @target")
|
||||
builddep("curl")
|
||||
builddep("grep")
|
||||
builddep("sed")
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
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"])
|
||||
@@ -1,10 +1,11 @@
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
version("1.2.6.3")
|
||||
|
||||
version("1.2.6.4")
|
||||
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.3")
|
||||
source_managed("gitea://gitea.semilabs.org/semios/semi-libc#v1.2.6.4")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
@@ -12,21 +13,18 @@ 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")
|
||||
|
||||
@@ -1,20 +1,24 @@
|
||||
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")
|
||||
@@ -25,6 +29,8 @@ 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")
|
||||
@@ -34,13 +40,46 @@ 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")
|
||||
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")
|
||||
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")
|
||||
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`..."))
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#!/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.
@@ -0,0 +1,19 @@
|
||||
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`..."))
|
||||
@@ -0,0 +1,32 @@
|
||||
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)
|
||||
@@ -4,10 +4,10 @@ from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.5.7")
|
||||
version("1.6.0")
|
||||
description("Zstandard - Fast real-time compression algorithm")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://facebook/zstd#v1.5.7")
|
||||
source_managed("github://facebook/zstd#v1.6.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
Reference in new issue
Block a user