Compare commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
|
cafa5ff667 |
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
from . import arch, atombuild, make, packie, pkgcomposer, sources, managed_source, logging
|
||||
from . import arch, atombuild, make, packie, pkgcomposer, sources, managed_source
|
||||
+3
-4
@@ -102,7 +102,7 @@ def prepare_build_env(root: str, extreq: list[str] = []):
|
||||
|
||||
|
||||
def enter_build_env(root: str, cmd: list[str], chdir: str = "/"):
|
||||
reserve_env = ["https_proxy", "http_proxy", "all_proxy", "SEMIOS_SOURCE_REPO", "TERM"]
|
||||
reserve_env = ["https_proxy", "http_proxy", "all_proxy", "SEMIOS_SOURCE_REPO"]
|
||||
reserve_env_args = []
|
||||
for i in reserve_env:
|
||||
if os.environ.get(i):
|
||||
@@ -124,9 +124,8 @@ def enter_build_env(root: str, cmd: list[str], chdir: str = "/"):
|
||||
"--setenv", "SEMIOS_PKGBUILD_IN_ATOMIC", "1",
|
||||
"--setenv", "USER", "root",
|
||||
"--setenv", "LOGNAME", "root",
|
||||
"--setenv", "LANG", "C.UTF-8",
|
||||
"--setenv", "LC_ALL", "C.UTF-8",
|
||||
"--chdir", chdir,
|
||||
"--chdir",
|
||||
chdir,
|
||||
]
|
||||
+ reserve_env_args
|
||||
+ cmd,
|
||||
|
||||
+29
-61
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import shlex
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
@@ -7,22 +6,28 @@ from lib.common import treedir
|
||||
|
||||
from . import make as libmake
|
||||
from . import pkgcomposer
|
||||
from . import logging
|
||||
|
||||
|
||||
# Common helpers
|
||||
|
||||
def write_prev_configure(args: list[str]):
|
||||
with open("_cpp_configure", "w", encoding="utf-8") as file:
|
||||
file.write(shlex.join(args) + "\n")
|
||||
def configure(rem: list[str] = []):
|
||||
subprocess.run(["./configure"] + rem, check=True)
|
||||
|
||||
|
||||
def read_prev_configure() -> list[str] | None:
|
||||
try:
|
||||
with open("_cpp_configure", "r", encoding="utf-8") as file:
|
||||
return shlex.split(file.read())
|
||||
except FileNotFoundError:
|
||||
return None
|
||||
def cmake(rem: list[str] = []):
|
||||
source_dir = os.getcwd()
|
||||
os.makedirs("../cmake_build", exist_ok=True)
|
||||
os.chdir("../cmake_build")
|
||||
subprocess.run(
|
||||
[
|
||||
"cmake",
|
||||
"-GNinja",
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
source_dir,
|
||||
]
|
||||
+ rem,
|
||||
check=True,
|
||||
)
|
||||
|
||||
|
||||
def _move_install():
|
||||
subprocess.run(["sh", "-c", "cp -r ./pkg/*/* . 2>/dev/null || true"], check=False)
|
||||
@@ -30,92 +35,55 @@ def _move_install():
|
||||
["sh", "-c", "cp -r ./usr/local/* . 2>/dev/null || true"], check=False
|
||||
)
|
||||
subprocess.run(["sh", "-c", "cp -r ./usr/* . 2>/dev/null || true"], check=False)
|
||||
subprocess.run(["rm", "-rf", "./pkg", "./usr", "./local"], check=False)
|
||||
subprocess.run(["rm", "-rf", "./pkg", "./usr"], check=False)
|
||||
|
||||
# AutoTools & GNU Make
|
||||
|
||||
def configure(rem: list[str] = []):
|
||||
if read_prev_configure() == rem:
|
||||
logging.step("Skipping previously completed configuration.")
|
||||
else:
|
||||
logging.step("Configuring project via AutoTools...")
|
||||
logging.run_volatile(["./configure"] + rem, check=True)
|
||||
write_prev_configure(rem)
|
||||
|
||||
def make(rem: list[str] = []):
|
||||
logging.step("Building project via Unix Makefile...")
|
||||
logging.run_volatile(["make", f"-j{os.cpu_count()}"] + rem, check=True)
|
||||
subprocess.run(["make", f"-j{os.cpu_count()}"] + rem, check=True)
|
||||
|
||||
|
||||
def make_install(rem: list[str] | None = None, chdir: bool = True, move: bool = True):
|
||||
logging.step("Installing project to temporary directory via Unix Makefile...")
|
||||
default_rem = ["DESTDIR=" + os.getcwd() + "/../cpp_install"]
|
||||
if rem is None:
|
||||
try:
|
||||
shutil.rmtree("../cpp_install")
|
||||
except:
|
||||
pass
|
||||
logging.run_volatile(["make", "install"] + (rem or default_rem), check=True)
|
||||
subprocess.run(["make", "install"] + (rem or default_rem), check=True)
|
||||
if chdir:
|
||||
os.chdir("../cpp_install")
|
||||
if chdir and move:
|
||||
_move_install()
|
||||
|
||||
# CMake
|
||||
|
||||
def cmake(rem: list[str] = []):
|
||||
source_dir = os.getcwd()
|
||||
os.makedirs("../cmake_build", exist_ok=True)
|
||||
os.chdir("../cmake_build")
|
||||
if read_prev_configure() == rem:
|
||||
logging.step("Skipping previously completed configuration.")
|
||||
else:
|
||||
logging.step("Configuring project via CMake...")
|
||||
logging.run_volatile(
|
||||
["cmake", "-GNinja", "-DCMAKE_BUILD_TYPE=Release", "-DCMAKE_INSTALL_PREFIX=/", source_dir] + rem,
|
||||
check=True,
|
||||
)
|
||||
write_prev_configure(rem)
|
||||
|
||||
# Ninja
|
||||
|
||||
def ninja(rem: list[str] = []):
|
||||
logging.step("Building project via Ninja...")
|
||||
logging.run_volatile(["ninja"] + rem, check=True)
|
||||
subprocess.run(["ninja"] + rem, check=True)
|
||||
|
||||
|
||||
def ninja_install(rem: list[str] = [], chdir: bool = True, move: bool = True):
|
||||
logging.step("Installing project to temporary directory via Ninja...")
|
||||
if chdir:
|
||||
os.environ["DESTDIR"] = os.getcwd() + "/../cpp_install"
|
||||
logging.run_volatile(["ninja", "install"] + rem, check=True)
|
||||
subprocess.run(["ninja", "install"] + rem, check=True)
|
||||
if chdir:
|
||||
os.chdir(os.environ["DESTDIR"])
|
||||
if chdir and move:
|
||||
_move_install()
|
||||
|
||||
# Meson
|
||||
|
||||
def meson_setup(rem: list[str] = []):
|
||||
if read_prev_configure() == rem:
|
||||
logging.step("Skipping previously completed configuration.")
|
||||
else:
|
||||
logging.step("Configuring project via Meson...")
|
||||
logging.run_volatile(["meson", "setup", "../_meson_build"] + rem + ["--buildtype=release"], check=True)
|
||||
write_prev_configure(rem)
|
||||
os.chdir("../_meson_build")
|
||||
subprocess.run(["meson", "setup", "_meson_build"] + rem + ["--buildtype=release"], check=True)
|
||||
|
||||
|
||||
def meson_compile(rem: list[str] = []):
|
||||
logging.step("Building project via Meson...")
|
||||
logging.run_volatile(["meson", "compile"] + rem, check=True)
|
||||
subprocess.run(["meson", "compile", "-C", "_meson_build"] + rem, check=True)
|
||||
|
||||
|
||||
def meson_install(rem: list[str] | None = None, chdir: bool = True, move: bool = True):
|
||||
logging.step("Install project to temporary directory via Meson...")
|
||||
default_rem = ["--destdir", f"{os.getcwd()}/../cpp_install"]
|
||||
if not rem:
|
||||
os.makedirs("../cpp_install", exist_ok=True)
|
||||
logging.run_volatile(
|
||||
["meson", "install"] + (rem or default_rem), check=True
|
||||
subprocess.run(
|
||||
["meson", "install", "-C", "_meson_build"] + (rem or default_rem), check=True
|
||||
)
|
||||
if chdir:
|
||||
os.chdir("../cpp_install")
|
||||
|
||||
-114
@@ -1,114 +0,0 @@
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import unicodedata
|
||||
|
||||
_ANSI_RE = re.compile(r"\033\[[0-9;?]*[ -/]*[@-~]")
|
||||
|
||||
_volatile_pending = False
|
||||
|
||||
|
||||
def _char_width(ch: str) -> int:
|
||||
if unicodedata.combining(ch) or unicodedata.category(ch) in ("Mn", "Me", "Cf"):
|
||||
return 0
|
||||
return 2 if unicodedata.east_asian_width(ch) in ("W", "F") else 1
|
||||
|
||||
|
||||
def _display_width(s: str) -> int:
|
||||
return sum(_char_width(ch) for ch in _ANSI_RE.sub("", s))
|
||||
|
||||
|
||||
def _truncate(s: str, cols: int, ellipsis: str = "…") -> str:
|
||||
if cols <= 0 or _display_width(s) <= cols:
|
||||
return s
|
||||
budget = max(0, cols - _display_width(ellipsis))
|
||||
out = []
|
||||
width = 0
|
||||
i = 0
|
||||
while i < len(s):
|
||||
m = _ANSI_RE.match(s, i)
|
||||
if m:
|
||||
out.append(m.group())
|
||||
i = m.end()
|
||||
continue
|
||||
ch = s[i]
|
||||
i += 1
|
||||
w = _char_width(ch)
|
||||
if width + w > budget:
|
||||
break
|
||||
out.append(ch)
|
||||
width += w
|
||||
return "".join(out) + ellipsis + "\033[0m"
|
||||
|
||||
|
||||
def _terminal_columns() -> int:
|
||||
try:
|
||||
return os.get_terminal_size(sys.stderr.fileno()).columns or 80
|
||||
except (OSError, ValueError, AttributeError):
|
||||
return shutil.get_terminal_size((80, 24)).columns or 80
|
||||
|
||||
|
||||
def _fit_single_line(s: str) -> str:
|
||||
if not sys.stderr.isatty():
|
||||
return s
|
||||
return _truncate(s, max(1, _terminal_columns() - 1))
|
||||
|
||||
|
||||
def _finish_volatile():
|
||||
global _volatile_pending
|
||||
if _volatile_pending:
|
||||
sys.stderr.write("\n")
|
||||
sys.stderr.flush()
|
||||
_volatile_pending = False
|
||||
|
||||
|
||||
def step(s: str):
|
||||
_finish_volatile()
|
||||
print(f"=> \033[34m{s}\033[0m", file=sys.stderr)
|
||||
|
||||
|
||||
def volatile(s: str):
|
||||
global _volatile_pending
|
||||
sys.stderr.write(f"\r\033[K{s}")
|
||||
sys.stderr.flush()
|
||||
_volatile_pending = True
|
||||
|
||||
|
||||
def warning(s: str):
|
||||
_finish_volatile()
|
||||
print(f"\033[33mwarning: {s}\033[0m", file=sys.stderr)
|
||||
|
||||
|
||||
def error(s: str):
|
||||
_finish_volatile()
|
||||
print(f"\033[31merror: {s}\033[0m", file=sys.stderr)
|
||||
|
||||
|
||||
def run_volatile(cmd, *, check=False, **kwargs):
|
||||
kwargs.setdefault("stdout", subprocess.PIPE)
|
||||
kwargs.setdefault("stderr", subprocess.STDOUT)
|
||||
kwargs.setdefault("text", True)
|
||||
kwargs.setdefault("bufsize", 1)
|
||||
|
||||
lines = []
|
||||
|
||||
proc = subprocess.Popen(cmd, **kwargs)
|
||||
try:
|
||||
if proc.stdout is not None:
|
||||
for line in proc.stdout:
|
||||
line = line.rstrip("\r\n")
|
||||
lines.append(line)
|
||||
volatile(_fit_single_line(f"\033[2m ~ {line}\033[0m"))
|
||||
returncode = proc.wait()
|
||||
finally:
|
||||
_finish_volatile()
|
||||
|
||||
if check and returncode != 0:
|
||||
error(f"process exited with code {returncode}")
|
||||
if lines:
|
||||
sys.stderr.write("\n".join(lines) + "\n")
|
||||
sys.stderr.flush()
|
||||
raise subprocess.CalledProcessError(returncode, cmd)
|
||||
return returncode
|
||||
+4
-5
@@ -2,7 +2,9 @@ import typing
|
||||
import hashlib
|
||||
import os
|
||||
|
||||
from . import pkgcomposer, sources, managed_source, logging, arch
|
||||
from lib import arch
|
||||
|
||||
from . import pkgcomposer, sources, managed_source
|
||||
|
||||
_key_global = "@global"
|
||||
_key_version = "version"
|
||||
@@ -47,7 +49,7 @@ def builddep(s: str):
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["libcxx-dev"]
|
||||
elif s == "shortcut/autotools":
|
||||
_builddep += ["gnu-make", "gnu-sed", "awk", "grep", "pkgconf"]
|
||||
_builddep += ["gnu-make", "gnu-sed", "awk", "grep"]
|
||||
elif s == "shortcut/rust":
|
||||
builddep("shortcut/c")
|
||||
_builddep += ["cargo", "rust"]
|
||||
@@ -162,13 +164,11 @@ def block_hook(hook: str):
|
||||
|
||||
def source_url(url: str):
|
||||
if not _dry_run:
|
||||
logging.step(f"Downloading project source code from \"{url}\"...")
|
||||
sources.source_url(url)
|
||||
|
||||
|
||||
def source_git(url: str, branch: str | None = None):
|
||||
if not _dry_run:
|
||||
logging.step(f"Cloning project source code from \"{url}\" (branch \"{branch}\")...")
|
||||
sources.source_git(url, branch)
|
||||
|
||||
|
||||
@@ -177,7 +177,6 @@ def source_managed(s: str, postprocess: str = ""):
|
||||
_managed_source_url = s
|
||||
_managed_source_postprocess = postprocess
|
||||
if not _dry_run:
|
||||
logging.step(f"Downloading project source code from \"{s}\"...")
|
||||
sources.source_url(managed_source.get_repo_url(s))
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -2,6 +2,7 @@ import json
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
class PkgComposer:
|
||||
@@ -43,7 +44,7 @@ class PkgComposer:
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
subprocess.run(["zstd", "--rm", "-fq", f"{self.pkgfile}.tar", "-o", self.pkgfile], check=True)
|
||||
subprocess.run(["zstd", "--rm", "-f", f"{self.pkgfile}.tar", "-o", self.pkgfile], check=True)
|
||||
|
||||
def makedir(self, name: str):
|
||||
os.mkdir(f"{self.workdir}/bundle/{name}")
|
||||
|
||||
+11
-5
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from . import arch, make, pkgcomposer, logging
|
||||
from . import arch, make, pkgcomposer
|
||||
|
||||
|
||||
def _rust_triple(semios: str) -> str:
|
||||
@@ -9,7 +9,6 @@ def _rust_triple(semios: str) -> str:
|
||||
|
||||
|
||||
def build(rem: list[str] = []):
|
||||
logging.step("Building project via Cargo...")
|
||||
cmdline = [
|
||||
"cargo",
|
||||
"build",
|
||||
@@ -20,7 +19,7 @@ def build(rem: list[str] = []):
|
||||
os.environ["RUSTFLAGS"] = (
|
||||
os.environ.get("RUSTFLAGS", "") + " -C target-feature=-crt-static"
|
||||
)
|
||||
logging.run_volatile(cmdline, check=True)
|
||||
subprocess.run(cmdline)
|
||||
|
||||
|
||||
def artifacts_dir():
|
||||
@@ -34,12 +33,19 @@ def _do_auto_pack(pc: pkgcomposer.PkgComposer, srcdir: str, dstdir: str, filter)
|
||||
if filter(ent):
|
||||
if ent.is_dir(follow_symlinks=False):
|
||||
pc.makedir(f"{dstdir}/{ent.name}")
|
||||
elif ent.is_file(follow_symlinks=False) or (ent.is_symlink() and not os.path.isabs(os.readlink(ent.path))):
|
||||
elif ent.is_file(follow_symlinks=False):
|
||||
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
||||
elif ent.is_symlink() and not os.path.isabs(os.readlink(ent.path)):
|
||||
pc.addfile(ent.path, f"{dstdir}/{ent.name}")
|
||||
|
||||
|
||||
def _autopack_filter_lib(ent) -> bool:
|
||||
return ent.name.endswith(".so") and ent.is_file(follow_symlinks=False)
|
||||
if ent.is_dir(follow_symlinks=False):
|
||||
return False
|
||||
if ent.name.endswith(".so"):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
def _autopack_filter_bin(ent) -> bool:
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tarfile
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
import zipfile
|
||||
|
||||
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.13.1")
|
||||
description("Low-level unprivileged sandboxing tool used by Flatpak and similar projects")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://containers/bubblewrap#v0.13.1")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libcap-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("bash")
|
||||
|
||||
supported_arch(lambda arch: "linux" in arch)
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([f"--prefix={get_prefix('bubblewrap')}"])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("bubblewrap")
|
||||
provide("bwrap")
|
||||
dep("libcap @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
+70
-86
@@ -1,91 +1,87 @@
|
||||
from lib import cpp, arch
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("8.23.0")
|
||||
version("8.21.0")
|
||||
description("command line tool and library for transferring data with URLs")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://curl.se/download/curl-8.23.0.tar.gz")
|
||||
source_url("https://curl.se/download/curl-8.21.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libnghttp2-dev @target")
|
||||
builddep("libcares-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("libbrotli-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
builddep("libpsl-dev @target")
|
||||
builddep("libngtcp2-dev @target")
|
||||
builddep("libnghttp3-dev @target")
|
||||
|
||||
builddep(f"libnghttp2-dev @{arch.get_target()}")
|
||||
builddep(f"libcares-dev @{arch.get_target()}")
|
||||
builddep(f"aws-lc-dev @{arch.get_target()}")
|
||||
builddep(f"libbrotli-dev @{arch.get_target()}")
|
||||
builddep(f"libz-dev @{arch.get_target()}")
|
||||
builddep(f"libzstd-dev @{arch.get_target()}")
|
||||
builddep(f"libpsl-dev @{arch.get_target()}")
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('curl')}/bin",
|
||||
f"--libdir={get_prefix('libcurl')}/lib",
|
||||
f"--includedir={get_prefix('libcurl-dev')}/include",
|
||||
"--enable-optimize",
|
||||
"--disable-debug",
|
||||
"--enable-warnings",
|
||||
"--enable-symbol-hiding",
|
||||
"--enable-ares",
|
||||
"--enable-http",
|
||||
"--enable-ftp",
|
||||
"--enable-file",
|
||||
"--enable-ipfs",
|
||||
"--disable-ldap",
|
||||
"--disable-ldaps",
|
||||
"--enable-rtsp",
|
||||
"--enable-proxy",
|
||||
"--enable-dict",
|
||||
"--enable-telnet",
|
||||
"--enable-tftp",
|
||||
"--enable-pop3",
|
||||
"--enable-imap",
|
||||
"--enable-smb",
|
||||
"--enable-smtp",
|
||||
"--enable-gopher",
|
||||
"--enable-mqtt",
|
||||
"--disable-init-mem-debug",
|
||||
"--enable-manual",
|
||||
"--enable-docs",
|
||||
"--enable-libcurl-option",
|
||||
"--enable-ipv6",
|
||||
"--enable-openssl-auto-load-config",
|
||||
"--with-ca-path=/var/config/ssl/certs",
|
||||
"--enable-versioned-symbols",
|
||||
"--enable-typecheck",
|
||||
"--enable-verbose",
|
||||
"--disable-tls-srp",
|
||||
"--enable-unix-sockets",
|
||||
"--enable-cookies",
|
||||
"--enable-socketpair",
|
||||
"--enable-http-auth",
|
||||
"--enable-doh",
|
||||
"--enable-mime",
|
||||
"--enable-bindlocal",
|
||||
"--enable-form-api",
|
||||
"--enable-dateparse",
|
||||
"--enable-netrc",
|
||||
"--enable-progress-meter",
|
||||
"--enable-get-easy-options",
|
||||
"--enable-alt-svc",
|
||||
"--enable-headers-api",
|
||||
"--enable-hsts",
|
||||
"--enable-websockets",
|
||||
"--with-openssl",
|
||||
"--with-nghttp2",
|
||||
"--with-nghttp3",
|
||||
"--with-ngtcp2",
|
||||
"--without-libidn2",
|
||||
])
|
||||
cpp.configure(
|
||||
[
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('curl')}/bin",
|
||||
f"--libdir={get_prefix('libcurl')}/lib",
|
||||
f"--includedir={get_prefix('libcurl-dev')}/include",
|
||||
"--enable-optimize",
|
||||
"--disable-debug",
|
||||
"--enable-warnings",
|
||||
"--enable-symbol-hiding",
|
||||
"--enable-ares",
|
||||
"--enable-http",
|
||||
"--enable-ftp",
|
||||
"--enable-file",
|
||||
"--enable-ipfs",
|
||||
"--disable-ldap",
|
||||
"--disable-ldaps",
|
||||
"--enable-rtsp",
|
||||
"--enable-proxy",
|
||||
"--enable-dict",
|
||||
"--enable-telnet",
|
||||
"--enable-tftp",
|
||||
"--enable-pop3",
|
||||
"--enable-imap",
|
||||
"--enable-smb",
|
||||
"--enable-smtp",
|
||||
"--enable-gopher",
|
||||
"--enable-mqtt",
|
||||
"--disable-init-mem-debug",
|
||||
"--enable-manual",
|
||||
"--enable-docs",
|
||||
"--enable-libcurl-option",
|
||||
"--enable-ipv6",
|
||||
"--enable-openssl-auto-load-config",
|
||||
"--with-ca-path=/var/config/ssl/certs",
|
||||
"--enable-versioned-symbols",
|
||||
"--enable-typecheck",
|
||||
"--enable-verbose",
|
||||
"--disable-tls-srp",
|
||||
"--enable-unix-sockets",
|
||||
"--enable-cookies",
|
||||
"--enable-socketpair",
|
||||
"--enable-http-auth",
|
||||
"--enable-doh",
|
||||
"--enable-mime",
|
||||
"--enable-bindlocal",
|
||||
"--enable-form-api",
|
||||
"--enable-dateparse",
|
||||
"--enable-netrc",
|
||||
"--enable-progress-meter",
|
||||
"--enable-get-easy-options",
|
||||
"--enable-alt-svc",
|
||||
"--enable-headers-api",
|
||||
"--enable-hsts",
|
||||
"--enable-websockets",
|
||||
"--with-openssl",
|
||||
"--with-nghttp2",
|
||||
"--without-libidn2",
|
||||
]
|
||||
)
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
on_build(build)
|
||||
|
||||
package("libcurl")
|
||||
dep("semi-libc @same-arch")
|
||||
@@ -93,8 +89,6 @@ dep("libpsl @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("libcares @same-arch")
|
||||
dep("libnghttp2 @same-arch")
|
||||
dep("libnghttp3 @same-arch")
|
||||
dep("libngtcp2 @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
dep("libzstd @same-arch")
|
||||
@@ -107,14 +101,4 @@ cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libcurl-dev")
|
||||
dep("libcurl (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libpsl-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("libcares-dev @same-arch")
|
||||
dep("libnghttp2-dev @same-arch")
|
||||
dep("libnghttp3-dev @same-arch")
|
||||
dep("libngtcp2-dev @same-arch")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
dep("libzstd-dev @same-arch")
|
||||
dep("libbrotli-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,51 +0,0 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
version("2.70.0")
|
||||
description("A maintained, feature-rich and performance oriented, neofetch like system information tool.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://fastfetch-cli/fastfetch#2.70.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("libvulkan-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
builddep("glib-dev @target")
|
||||
builddep("libsqlite-dev @target")
|
||||
builddep("libegl-dev @target")
|
||||
builddep("libdbus-dev @target")
|
||||
builddep("libfreetype-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("vulkan-headers @target")
|
||||
builddep("libopengl-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
f"-DCMAKE_INSTALL_PREFIX={get_prefix('fastfetch')}",
|
||||
"-DENABLE_VULKAN=ON",
|
||||
"-DENABLE_WAYLAND=ON",
|
||||
"-DENABLE_DRM=ON",
|
||||
"-DENABLE_GIO=ON",
|
||||
"-DENABLE_DBUS=ON",
|
||||
"-DENABLE_SQLITE3=ON",
|
||||
"-DENABLE_EGL=ON",
|
||||
"-DENABLE_FREETYPE=ON",
|
||||
"-DBINARY_LINK_TYPE=dlopen",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.add("bin")
|
||||
composer.makedir("share")
|
||||
composer.add("share/fastfetch")
|
||||
|
||||
package("fastfetch")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -1,271 +0,0 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, packie
|
||||
|
||||
|
||||
# FIXME: AWS-LC does not yet support some DTLS functions required by FFMpeg.
|
||||
|
||||
|
||||
version("9.0.2")
|
||||
description("FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
builddep("alsa-lib-dev @target")
|
||||
#builddep("aws-lc-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libopus-dev @target")
|
||||
builddep("libvorbis-dev @target")
|
||||
builddep("liblzma-dev @target")
|
||||
builddep("libxml2-dev @target")
|
||||
builddep("libogg-dev @target")
|
||||
builddep("libdav1d-dev @target")
|
||||
builddep("libplacebo-dev @target")
|
||||
builddep("libass-dev @target")
|
||||
builddep("libsvtav1-dev @target")
|
||||
builddep("libfontconfig-dev @target")
|
||||
builddep("libfreetype-dev @target")
|
||||
builddep("libfribidi-dev @target")
|
||||
builddep("libharfbuzz-dev @target")
|
||||
builddep("libmp3lame-dev @target")
|
||||
builddep("libwebp-dev @target")
|
||||
builddep("libopenh264-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libkvazaar-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--datadir={get_prefix('ffmpeg-common')}/share/ffmpeg",
|
||||
|
||||
f"--cc={packie.prefix_of('clang')}/bin/clang",
|
||||
|
||||
"--disable-static",
|
||||
"--enable-shared",
|
||||
"--enable-gray",
|
||||
|
||||
"--enable-lcms2",
|
||||
"--enable-libass",
|
||||
"--enable-libdav1d",
|
||||
"--enable-libfontconfig",
|
||||
"--enable-libfreetype",
|
||||
"--enable-libfribidi",
|
||||
"--enable-libharfbuzz",
|
||||
"--enable-libkvazaar",
|
||||
"--enable-libmp3lame",
|
||||
"--enable-libopenh264",
|
||||
"--enable-libopus",
|
||||
"--enable-libplacebo",
|
||||
"--enable-libsvtav1",
|
||||
"--enable-libvorbis",
|
||||
"--enable-libwebp",
|
||||
"--enable-libxml2",
|
||||
#"--enable-openssl",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack_lib(composer, name):
|
||||
composer.makedir("lib")
|
||||
for i in glob.glob(f"lib/{name}*"):
|
||||
composer.addfile(i)
|
||||
|
||||
def pack_dev(composer, name):
|
||||
devname = f"{name}-dev"
|
||||
composer.makedir("include")
|
||||
composer.add_dir(f"include/{name}")
|
||||
composer.makedirs("lib/pkgconfig")
|
||||
with open(f"lib/pkgconfig/{name}.pc") as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("libdir=//lib", f"libdir={get_prefix(name)}/lib")
|
||||
pc = pc.replace("includedir=//include", f"includedir={get_prefix(devname)}/include")
|
||||
os.remove(f"lib/pkgconfig/{name}.pc")
|
||||
with open(f"lib/pkgconfig/{name}.pc", "wt+") as fd:
|
||||
fd.write(pc)
|
||||
composer.addfile(f"lib/pkgconfig/{name}.pc")
|
||||
|
||||
def pack_data(composer):
|
||||
composer.makedir("share")
|
||||
composer.add("share/ffmpeg")
|
||||
|
||||
package("ffmpeg-common")
|
||||
arch_any()
|
||||
on_pack(pack_data)
|
||||
|
||||
package("libavutil")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
dep("libva @same-arch")
|
||||
on_pack(lambda c: pack_lib(c, "libavutil"))
|
||||
|
||||
package("libavutil-dev")
|
||||
dep("libavutil (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
dep("libva-dev @same-arch")
|
||||
on_pack(lambda c: pack_dev(c, "libavutil"))
|
||||
|
||||
package("libswresample")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavutil (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libswresample"))
|
||||
|
||||
package("libswresample-dev")
|
||||
dep("libswresample (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libswresample"))
|
||||
|
||||
package("libswscale")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavutil (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libswscale"))
|
||||
|
||||
package("libswscale-dev")
|
||||
dep("libswscale (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libswscale"))
|
||||
|
||||
package("libavcodec")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libswresample (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("liblcms @same-arch")
|
||||
dep("liblzma @same-arch")
|
||||
dep("libdav1d @same-arch")
|
||||
dep("libopus @same-arch")
|
||||
dep("libvorbis @same-arch")
|
||||
dep("libsvtav1 @same-arch")
|
||||
dep("libmp3lame @same-arch")
|
||||
dep("libopenh264 @same-arch")
|
||||
dep("libwebp @same-arch")
|
||||
dep("libkvazaar @same-arch")
|
||||
dep("libva @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavcodec"))
|
||||
|
||||
package("libavcodec-dev")
|
||||
dep("libavcodec (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libswresample-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("liblzma-dev @same-arch")
|
||||
dep("libdav1d-dev @same-arch")
|
||||
dep("libopus-dev @same-arch")
|
||||
dep("libvorbis-dev @same-arch")
|
||||
dep("libsvtav1-dev @same-arch")
|
||||
dep("libmp3lame-dev @same-arch")
|
||||
dep("libwebp-dev @same-arch")
|
||||
dep("libkvazaar-dev @same-arch")
|
||||
dep("libopenh264-dev @same-arch")
|
||||
dep("libva-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavcodec"))
|
||||
|
||||
package("libavformat")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavcodec (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("libxml2 @same-arch")
|
||||
dep("libbzip2 @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavformat"))
|
||||
|
||||
package("libavformat-dev")
|
||||
dep("libavformat (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavcodec-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("libxml2-dev @same-arch")
|
||||
dep("libbzip2-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavformat"))
|
||||
|
||||
package("libavfilter")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libswscale (same)")
|
||||
dep("libavformat (same)")
|
||||
dep("libavcodec (same)")
|
||||
dep("libswresample (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("liblcms @same-arch")
|
||||
dep("libplacebo @same-arch")
|
||||
dep("libass @same-arch")
|
||||
dep("libharfbuzz @same-arch")
|
||||
dep("libfribidi @same-arch")
|
||||
dep("libfontconfig @same-arch")
|
||||
dep("libfreetype @same-arch")
|
||||
dep("libva @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavfilter"))
|
||||
|
||||
package("libavfilter-dev")
|
||||
dep("libavfilter (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libswscale-dev (same)")
|
||||
dep("libavformat-dev (same)")
|
||||
dep("libavcodec-dev (same)")
|
||||
dep("libswresample-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("libplacebo-dev @same-arch")
|
||||
dep("libass-dev @same-arch")
|
||||
dep("libharfbuzz-dev @same-arch")
|
||||
dep("libfribidi-dev @same-arch")
|
||||
dep("libfontconfig-dev @same-arch")
|
||||
dep("libfreetype-dev @same-arch")
|
||||
dep("libva-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavfilter"))
|
||||
|
||||
package("libavdevice")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libavfilter (same)")
|
||||
dep("libavformat (same)")
|
||||
dep("libavcodec (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("alsa-lib @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_lib(c, "libavdevice"))
|
||||
|
||||
package("libavdevice-dev")
|
||||
dep("libavdevice (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libavfilter-dev (same)")
|
||||
dep("libavformat-dev (same)")
|
||||
dep("libavcodec-dev (same)")
|
||||
dep("libavutil-dev (same)")
|
||||
dep("alsa-lib-dev @same-arch")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
on_pack(lambda c: pack_dev(c, "libavdevice"))
|
||||
|
||||
package("ffmpeg")
|
||||
dep("libavdevice (same)")
|
||||
dep("libavfilter (same)")
|
||||
dep("libavformat (same)")
|
||||
dep("libavcodec (same)")
|
||||
dep("libswresample (same)")
|
||||
dep("libswscale (same)")
|
||||
dep("libavutil (same)")
|
||||
dep("ffmpeg-common (same-version) @any")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -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)
|
||||
@@ -1,39 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("2.3.2")
|
||||
description("An open-source HEVC encoder")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://ultravideo/kvazaar#v2.3.2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DUSE_RANGE_EXTENSION=ON",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libkvazaar')}/lib",
|
||||
f"-DCMAKE_INSTALL_BINDIR={get_prefix('kvazaar')}/bin",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libkvazaar-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libkvazaar")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("kvazaar")
|
||||
dep("libkvazaar (same)")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libkvazaar-dev")
|
||||
dep("libkvazaar (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,52 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("2.1.13")
|
||||
description("Event notification library")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libevent/libevent#release-2.1.13-stable")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("aws-lc-dev @target")
|
||||
|
||||
|
||||
def fix_pc(path):
|
||||
with open(path) as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("libdir=/usr/local/lib", f"libdir={get_prefix('libevent')}/lib")
|
||||
pc = pc.replace("includedir=/usr/local/include", f"includedir={get_prefix('libevent-dev')}/include")
|
||||
pc = pc.replace("/usr/local", "/")
|
||||
with open(path, 'wt+') as fd:
|
||||
fd.write(pc)
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
|
||||
"-DCMAKE_INSTALL_PREFIX=/usr/local",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libevent')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libevent-dev')}/include",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
fix_pc("lib/pkgconfig/libevent.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_core.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_extra.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_openssl.pc")
|
||||
fix_pc("lib/pkgconfig/libevent_pthreads.pc")
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libevent")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libevent-dev")
|
||||
dep("libevent (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,48 +0,0 @@
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.9.7")
|
||||
description("A cross-platform, linkable library implementation of Git that you can use in your application.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://libgit2/libgit2#v1.9.7")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/cmake")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.cmake([
|
||||
"-DCMAKE_C_STANDARD=99",
|
||||
"-DCMAKE_INSTALL_PREFIX=/",
|
||||
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libgit2')}/lib",
|
||||
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libgit2-dev')}/include",
|
||||
"-DUSE_HTTPS=OpenSSL",
|
||||
"-DUSE_SHA256=OpenSSL",
|
||||
"-DUSE_BUNDLED_ZLIB=OFF",
|
||||
"-DUSE_NTLMCLIENT=OFF",
|
||||
])
|
||||
cpp.ninja()
|
||||
cpp.ninja_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libgit2")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libssl @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("git2")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libgit2 (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libgit2-dev")
|
||||
dep("libgit2 (same)")
|
||||
dep("aws-lc-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -0,0 +1,34 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("3.8.0")
|
||||
description("HTTP Library for GLib")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("gitlab://gitlab.gnome.org/GNOME/libsoup#3.8.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
builddep("glib-dev @target")
|
||||
builddep("glib-tools")
|
||||
builddep("libbrotli-dev @target")
|
||||
builddep("libzstd-dev @target")
|
||||
builddep("aws-lc-dev @target")
|
||||
builddep("gobject-introspection @target")
|
||||
builddep("libnghttp2-dev @target")
|
||||
builddep("libsqlite-dev @target")
|
||||
builddep("libpsl-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"-Dgssapi=disabled",
|
||||
"-Dntlm=disabled",
|
||||
"-Dbrotli=enabled",
|
||||
"-Dzstd=enabled",
|
||||
"-Dintrospection=enabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
@@ -1,13 +0,0 @@
|
||||
--- a/configure 2026-08-20 19:06:35.000000000 +0000
|
||||
+++ b/configure 2026-10-30 08:14:15.195189154 +0000
|
||||
@@ -195,10 +195,6 @@
|
||||
[ -f "${source_path}/${t}.mk" ] && enable_feature ${t}
|
||||
done
|
||||
|
||||
-if ! diff --version >/dev/null; then
|
||||
- die "diff missing: Try installing diffutils via your package manager."
|
||||
-fi
|
||||
-
|
||||
if ! perl --version >/dev/null; then
|
||||
die "Perl is required to build"
|
||||
fi
|
||||
@@ -1,49 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("1.17.0")
|
||||
description("the WebM VP8/VP9 Codec SDK")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://webmproject/libvpx#v1.17.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("perl")
|
||||
|
||||
|
||||
def fix_pc():
|
||||
with open('lib/pkgconfig/vpx.pc') as fd:
|
||||
pc = fd.read()
|
||||
pc = pc.replace("prefix=/usr/local", "prefix=/")
|
||||
pc = pc.replace("libdir=${prefix}/lib", f"libdir={get_prefix('libvpx')}/lib")
|
||||
pc = pc.replace("includedir=${prefix}/include", f"includedir={get_prefix('libvpx-dev')}/include")
|
||||
with open('lib/pkgconfig/vpx.pc', 'wt+') as fd:
|
||||
fd.write(pc)
|
||||
|
||||
def build():
|
||||
libvpx_target = arch.get_target().replace("-semios-linux", "-linux-gcc")
|
||||
libvpx_target = libvpx_target.replace("aarch64", "arm64")
|
||||
cpp.configure([
|
||||
f"--target={libvpx_target}",
|
||||
"--enable-shared",
|
||||
])
|
||||
cpp.make(["HAVE_GNU_STRIP=no"])
|
||||
cpp.make_install()
|
||||
fix_pc()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libvpx")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libvpx-tools")
|
||||
dep("libvpx (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libvpx-dev")
|
||||
dep("libvpx (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,63 +0,0 @@
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from lib.make import *
|
||||
from lib import cpp, python, arch
|
||||
|
||||
|
||||
upstream_version = "1.1.45"
|
||||
|
||||
version(upstream_version)
|
||||
description("an XSLT processor based on libxml2")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.45.tar.xz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libxml2-dev @target")
|
||||
builddep("libpython-dev @target")
|
||||
builddep("libexpat")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libxslt')}/lib",
|
||||
f"--bindir={get_prefix('libxslt-tools')}/bin",
|
||||
f"--includedir={get_prefix('libxslt-dev')}/include",
|
||||
"--without-debug",
|
||||
])
|
||||
cpp.make()
|
||||
if os.path.exists("../cpp_install"):
|
||||
shutil.rmtree("../cpp_install")
|
||||
cpp.make_install()
|
||||
os.mkdir("py")
|
||||
os.rename(f"lib/{arch.get_target()}/python{python.PY3_VERSION}", "py/arch")
|
||||
os.rename(f"lib/python{python.PY3_VERSION}", "py/nonarch")
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libxslt")
|
||||
dep("libxml2 @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libxslt-tools")
|
||||
dep("libxslt (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
|
||||
package("libxslt-dev")
|
||||
dep("libxslt (same)")
|
||||
dep("libxml2-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
def pack_py(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add_dir("py/arch", f"lib/python{python.PY3_VERSION}", merge=True)
|
||||
composer.add_dir("py/nonarch", f"lib/python{python.PY3_VERSION}", merge=True)
|
||||
|
||||
package("libxslt.py")
|
||||
python.version(upstream_version)
|
||||
dep(f"libxslt (={upstream_version}) @same-arch")
|
||||
on_pack(pack_py)
|
||||
@@ -1,7 +0,0 @@
|
||||
# SemiOS PAM service config for un-as operations,
|
||||
# like sudo.
|
||||
|
||||
auth required pam_semios.so
|
||||
account required pam_semios.so
|
||||
password required pam_permit.so
|
||||
session required pam_permit.so
|
||||
@@ -5,7 +5,7 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.7.2+1")
|
||||
version("1.7.2")
|
||||
description("Linux PAM (Pluggable Authentication Modules for Linux) project")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/linux-pam/linux-pam/releases/download/v1.7.2/Linux-PAM-1.7.2.tar.xz")
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
-L/lib/aarch64-semios-linux
|
||||
-B/lib/aarch64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -1 +0,0 @@
|
||||
-stdlib=libc++
|
||||
@@ -1,3 +0,0 @@
|
||||
-L/lib/riscv64-semios-linux
|
||||
-B/lib/riscv64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +0,0 @@
|
||||
-L/lib/wasm32-semios-wasip3
|
||||
-B/lib/wasm32-semios-wasip3
|
||||
-rtlib=compiler-rt
|
||||
@@ -1,3 +0,0 @@
|
||||
-L/lib/x86_64-semios-linux
|
||||
-B/lib/x86_64-semios-linux
|
||||
-rtlib=compiler-rt
|
||||
@@ -4,17 +4,16 @@ import shutil
|
||||
import glob
|
||||
|
||||
import lib
|
||||
from lib import arch, cpp, packie
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
pkgver = "23.1.4"
|
||||
pkgver = "23.1.3"
|
||||
[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.3")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/cmake")
|
||||
@@ -43,7 +42,6 @@ def cmake(sourcedir, args):
|
||||
|
||||
"-DLLVM_ENABLE_EH=ON",
|
||||
"-DLLVM_ENABLE_RTTI=ON",
|
||||
"-DLLVM_ENABLE_ZLIB=FORCE_ON",
|
||||
"-DLLVM_ENABLE_ASSERTIONS=OFF",
|
||||
"-DLLVM_BUILD_LLVM_DYLIB=ON",
|
||||
"-DLLVM_LINK_LLVM_DYLIB=ON",
|
||||
@@ -51,9 +49,6 @@ def cmake(sourcedir, args):
|
||||
"-DLLVM_ENABLE_LIBCXX=ON",
|
||||
"-DLLVM_ENABLE_LLD=ON",
|
||||
"-DLLVM_ENABLE_FFI=ON",
|
||||
|
||||
f"-DZLIB_LIBRARY={packie.prefix_of('libz-ng')}/lib/libz.so",
|
||||
f"-DZLIB_INCLUDE_DIR={packie.prefix_of('libz-ng-dev')}/include",
|
||||
]
|
||||
subprocess.run(template_args + args, check=True)
|
||||
subprocess.run(["cmake", "--build", builddir], check=True)
|
||||
@@ -137,7 +132,6 @@ def build_clang():
|
||||
"-DCLANG_DEFAULT_CXX_STDLIB=libc++",
|
||||
"-DCLANG_DEFAULT_RTLIB=compiler-rt",
|
||||
"-DLLVM_INCLUDE_TESTS=OFF",
|
||||
f"-DCLANG_CONFIG_FILE_SYSTEM_DIR={get_prefix('clang')}/share/cfg",
|
||||
f"-DC_INCLUDE_DIRS=/lib/{arch.get_target()}/include:{get_prefix('clang')}/lib/clang/{pkgver_major}/include",
|
||||
]
|
||||
cmake("clang", import_llvm() + options)
|
||||
@@ -197,15 +191,10 @@ dep("libunwind @same-arch")
|
||||
dep("libcxx @same-arch")
|
||||
dep("libcxxabi @same-arch")
|
||||
dep("libffi @same-arch")
|
||||
dep("libz @same-arch")
|
||||
on_pack(lambda composer: auto_pack_glob(composer, ["lib/*.so*"]))
|
||||
|
||||
package("libllvm-dev")
|
||||
dep("libllvm (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libcxx-dev @same-arch")
|
||||
dep("libffi-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
on_pack(lambda composer: auto_pack_dev(composer, "llvm", ["llvm-config"]))
|
||||
|
||||
package("libllvm-static")
|
||||
@@ -221,7 +210,6 @@ dep("libllvm (same)")
|
||||
on_pack(pack_llvm)
|
||||
for i in ["strip", "ar", "ranlib", "readelf", "objcopy", "objdump", "strings", "nm"]:
|
||||
link(f"bin/llvm-{i}", f"/bin/{i}")
|
||||
link("bin/llvm-cxxfilt", "/bin/c++filt")
|
||||
|
||||
|
||||
enter_install("bolt")
|
||||
@@ -244,7 +232,6 @@ package("libclang-dev")
|
||||
dep("libclang (same)")
|
||||
on_pack(lambda composer: auto_pack_dev(composer, "clang"))
|
||||
|
||||
clang_cfgdir = os.getcwd() + "/clang-cfg"
|
||||
def pack_clang(composer):
|
||||
# Add base files
|
||||
composer.add_dir("bin", "bin")
|
||||
@@ -270,7 +257,12 @@ def pack_clang(composer):
|
||||
os.symlink(f"/lib/{arch.get_target()}/include", f"{composer.workdir}/bundle/include")
|
||||
|
||||
# Add configuration
|
||||
composer.add_dir(clang_cfgdir, "share/cfg")
|
||||
clang_cfg = f"-L/lib/{arch.get_target()}\n-B/lib/{arch.get_target()}\n-rtlib=compiler-rt\n"
|
||||
clangxx_cfg = f"-stdlib=libc++\n{clang_cfg}"
|
||||
with open(f"{composer.workdir}/bundle/bin/clang.cfg", "wt+") as file:
|
||||
file.write(clang_cfg)
|
||||
with open(f"{composer.workdir}/bundle/bin/clang++.cfg", "wt+") as file:
|
||||
file.write(clangxx_cfg)
|
||||
|
||||
package("clang")
|
||||
dep("libclang (same)")
|
||||
|
||||
@@ -1,130 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("0.41.0")
|
||||
description("Command line media player")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://mpv-player/mpv#v0.41.0")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libxkbcommon-dev @target")
|
||||
builddep("xkeyboard-config")
|
||||
builddep("libplacebo-dev @target")
|
||||
builddep("libass-dev @target")
|
||||
builddep("libavcodec-dev @target")
|
||||
builddep("libavdevice-dev @target")
|
||||
builddep("libavfilter-dev @target")
|
||||
builddep("libavutil-dev @target")
|
||||
builddep("libswresample-dev @target")
|
||||
builddep("libswscale-dev @target")
|
||||
builddep("libjpeg-turbo-dev @target")
|
||||
builddep("libcurl-dev @target")
|
||||
builddep("libarchive-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libz-dev @target")
|
||||
builddep("alsa-lib-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libva-dev @target")
|
||||
builddep("libegl-dev @target")
|
||||
builddep("libdrm-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"-Dgpl=true",
|
||||
"-Dcplayer=true",
|
||||
"-Dlibmpv=true",
|
||||
"-Dbuild-date=true",
|
||||
"-Dtests=false",
|
||||
"-Dfuzzers=false",
|
||||
|
||||
"-Dcdda=disabled",
|
||||
"-Dcplugins=disabled",
|
||||
"-Ddvbin=disabled",
|
||||
"-Ddvdnav=disabled",
|
||||
"-Diconv=enabled",
|
||||
"-Djavascript=disabled",
|
||||
"-Djpeg=enabled",
|
||||
"-Dlcms2=enabled",
|
||||
"-Dlibarchive=enabled",
|
||||
"-Dlibavdevice=enabled",
|
||||
"-Dlibbluray=disabled",
|
||||
"-Dlua=disabled",
|
||||
"-Dpthread-debug=disabled",
|
||||
"-Drubberband=disabled",
|
||||
"-Dsdl2-gamepad=disabled",
|
||||
"-Duchardet=disabled",
|
||||
"-Dvapoursynth=disabled",
|
||||
"-Dx11-clipboard=disabled",
|
||||
"-Dzimg=disabled",
|
||||
"-Dzlib=enabled",
|
||||
|
||||
"-Dalsa=enabled",
|
||||
|
||||
"-Degl=enabled",
|
||||
"-Degl-wayland=enabled",
|
||||
"-Dvaapi=enabled",
|
||||
"-Dvaapi-wayland=enabled",
|
||||
"-Dwayland=enabled",
|
||||
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libmpv")
|
||||
dep("libass @same-arch")
|
||||
dep("libavcodec @same-arch")
|
||||
dep("libavfilter @same-arch")
|
||||
dep("libavformat @same-arch")
|
||||
dep("libavutil @same-arch")
|
||||
dep("libplacebo @same-arch")
|
||||
dep("libswresample @same-arch")
|
||||
dep("libswscale @same-arch")
|
||||
dep("liblcms @same-arch")
|
||||
dep("libarchive @same-arch")
|
||||
dep("libavdevice @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("alsa-lib @same-arch")
|
||||
dep("libjpeg-turbo @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libxkbcommon @same-arch")
|
||||
dep("libvulkan @same-arch")
|
||||
dep("libegl @same-arch")
|
||||
dep("libva @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libmpv-dev")
|
||||
dep("libmpv (same)")
|
||||
dep("libass-dev @same-arch")
|
||||
dep("libavcodec-dev @same-arch")
|
||||
dep("libavfilter-dev @same-arch")
|
||||
dep("libavformat-dev @same-arch")
|
||||
dep("libavutil-dev @same-arch")
|
||||
dep("libplacebo-dev @same-arch")
|
||||
dep("libswresample-dev @same-arch")
|
||||
dep("libswscale-dev @same-arch")
|
||||
dep("liblcms-dev @same-arch")
|
||||
dep("libarchive-dev @same-arch")
|
||||
dep("libavdevice-dev @same-arch")
|
||||
dep("libz-dev @same-arch")
|
||||
dep("alsa-lib-dev @same-arch")
|
||||
dep("libjpeg-turbo-dev @same-arch")
|
||||
dep("libwayland-dev @same-arch")
|
||||
dep("libxkbcommon-dev @same-arch")
|
||||
dep("libvulkan-dev @same-arch")
|
||||
dep("libegl-dev @same-arch")
|
||||
dep("libva-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
|
||||
package("mpv")
|
||||
dep("libmpv (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -1,34 +0,0 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
version("2.7.0")
|
||||
description("a small build system with a focus on speed")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://cisco/openh264#v2.7.0")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/meson")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
"-Dtests=disabled",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libopenh264")
|
||||
dep("libcxxabi @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libopenh264-dev")
|
||||
dep("libopenh264 (same)")
|
||||
dep("libcxx-dev @same-arch")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,147 +0,0 @@
|
||||
--- a/src/hotspot/os/posix/forbiddenFunctions_posix.hpp 2026-10-30 05:15:11.792623724 +0000
|
||||
+++ b/src/hotspot/os/posix/forbiddenFunctions_posix.hpp 2026-10-30 05:16:01.186833948 +0000
|
||||
@@ -37,25 +37,25 @@
|
||||
#endif
|
||||
|
||||
// POSIX puts _exit in <unistd.h>.
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
|
||||
// If needed, add os::strndup and use that instead.
|
||||
-FORBID_C_FUNCTION(char* strndup(const char*, size_t), noexcept, "don't use");
|
||||
+//FORBID_C_FUNCTION(char* strndup(const char*, size_t), noexcept, "don't use");
|
||||
|
||||
// realpath with a null second argument mallocs a string for the result.
|
||||
// With a non-null second argument, there is a risk of buffer overrun.
|
||||
-PRAGMA_DIAG_PUSH
|
||||
-FORBIDDEN_FUNCTION_IGNORE_CLANG_FORTIFY_WARNING
|
||||
-FORBID_C_FUNCTION(char* realpath(const char*, char*), noexcept, "use os::realpath");
|
||||
-PRAGMA_DIAG_POP
|
||||
+//PRAGMA_DIAG_PUSH
|
||||
+//FORBIDDEN_FUNCTION_IGNORE_CLANG_FORTIFY_WARNING
|
||||
+//FORBID_C_FUNCTION(char* realpath(const char*, char*), noexcept, "use os::realpath");
|
||||
+//PRAGMA_DIAG_POP
|
||||
|
||||
// Returns a malloc'ed string.
|
||||
-FORBID_C_FUNCTION(char* get_current_dir_name(), noexcept, "use os::get_current_directory");
|
||||
+//FORBID_C_FUNCTION(char* get_current_dir_name(), noexcept, "use os::get_current_directory");
|
||||
|
||||
// Problematic API that should never be used.
|
||||
-FORBID_C_FUNCTION(char* getwd(char*), noexcept, "use os::get_current_directory");
|
||||
+//FORBID_C_FUNCTION(char* getwd(char*), noexcept, "use os::get_current_directory");
|
||||
|
||||
// BSD utility that is subtly different from realloc.
|
||||
-FORBID_C_FUNCTION(void* reallocf(void*, size_t), /* not noexcept */, "use os::realloc");
|
||||
+//FORBID_C_FUNCTION(void* reallocf(void*, size_t), /* not noexcept */, "use os::realloc");
|
||||
|
||||
#endif // OS_POSIX_FORBIDDENFUNCTIONS_POSIX_HPP
|
||||
|
||||
|
||||
--- a/src/hotspot/share/cppstdlib/cstdlib.hpp 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/hotspot/share/cppstdlib/cstdlib.hpp 2026-10-30 05:19:23.272251678 +0000
|
||||
@@ -76,30 +76,30 @@
|
||||
#endif // AIX altivec allocator support
|
||||
|
||||
// Prefer os:: variants of these.
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void exit(int), noexcept, "use os::exit")
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void _Exit(int), noexcept, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void exit(int), noexcept, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void _Exit(int), noexcept, "use os::exit")
|
||||
|
||||
// Windows puts _exit in <stdlib.h>. POSIX puts it in <unistd.h>.
|
||||
// We can't forbid it here when using clang if it's not in <stdlib.h> - see
|
||||
// the clang definition for FORBIDDEN_FUNCTION_NORETURN_ATTRIBUTE.
|
||||
#ifdef _WINDOWS
|
||||
-FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
+//FORBID_IMPORTED_NORETURN_C_FUNCTION(void _exit(int), /* not noexcept */, "use os::exit")
|
||||
#endif // _WINDOWS
|
||||
|
||||
// These functions return raw C-heap pointers or, in case of free(), take raw
|
||||
// C-heap pointers. We generally want allocation to be done through NMT, using
|
||||
// os::malloc and friends.
|
||||
-FORBID_IMPORTED_C_FUNCTION(void* malloc(size_t), noexcept, "use os::malloc");
|
||||
-FORBID_IMPORTED_C_FUNCTION(void free(void*), noexcept, "use os::free");
|
||||
-FORBID_IMPORTED_C_FUNCTION(void* calloc(size_t, size_t), noexcept, "use os::malloc and zero out manually");
|
||||
-FORBID_IMPORTED_C_FUNCTION(void* realloc(void*, size_t), noexcept, "use os::realloc");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void* malloc(size_t), noexcept, "use os::malloc");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void free(void*), noexcept, "use os::free");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void* calloc(size_t, size_t), noexcept, "use os::malloc and zero out manually");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(void* realloc(void*, size_t), noexcept, "use os::realloc");
|
||||
|
||||
// These are not provided (and are unimplementable?) by Windows.
|
||||
// https://stackoverflow.com/questions/62962839/stdaligned-alloc-missing-from-visual-studio-2019
|
||||
// They also aren't useful for a POSIX implementation of NMT.
|
||||
#ifndef _WINDOWS
|
||||
-FORBID_C_FUNCTION(void* aligned_alloc(size_t, size_t), noexcept, "don't use");
|
||||
-FORBID_C_FUNCTION(int posix_memalign(void**, size_t, size_t), noexcept, "don't use");
|
||||
+//FORBID_C_FUNCTION(void* aligned_alloc(size_t, size_t), noexcept, "don't use");
|
||||
+//FORBID_C_FUNCTION(int posix_memalign(void**, size_t, size_t), noexcept, "don't use");
|
||||
#endif // !_WINDOWS
|
||||
|
||||
#endif // SHARE_CPPSTDLIB_CSTDLIB_HPP
|
||||
|
||||
|
||||
--- a/src/hotspot/share/utilities/forbiddenFunctions.hpp 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/hotspot/share/utilities/forbiddenFunctions.hpp 2026-10-30 05:21:27.402739421 +0000
|
||||
@@ -43,28 +43,28 @@
|
||||
// or have security concerns, either with preferred alternatives, or to be
|
||||
// avoided entirely.
|
||||
|
||||
-FORBID_IMPORTED_C_FUNCTION(char* strerror(int), noexcept, "use os::strerror");
|
||||
-FORBID_IMPORTED_C_FUNCTION(char* strtok(char*, const char*), noexcept, "use strtok_r");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(char* strerror(int), noexcept, "use os::strerror");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(char* strtok(char*, const char*), noexcept, "use strtok_r");
|
||||
|
||||
// AIX declarations for sprintf and snprintf are not noexcept, which is
|
||||
// inconsistent with most other system header declarations, including being
|
||||
// inconsistent with vsprintf and fsnprintf.
|
||||
-FORBID_C_FUNCTION(int sprintf(char*, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
-FORBID_C_FUNCTION(int snprintf(char*, size_t, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
+//FORBID_C_FUNCTION(int sprintf(char*, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
+//FORBID_C_FUNCTION(int snprintf(char*, size_t, const char*, ...), NOT_AIX(noexcept), "use os::snprintf");
|
||||
|
||||
PRAGMA_DIAG_PUSH
|
||||
FORBIDDEN_FUNCTION_IGNORE_CLANG_FORTIFY_WARNING
|
||||
-FORBID_C_FUNCTION(int vsprintf(char*, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
-FORBID_C_FUNCTION(int vsnprintf(char*, size_t, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
+//FORBID_C_FUNCTION(int vsprintf(char*, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
+//FORBID_C_FUNCTION(int vsnprintf(char*, size_t, const char*, va_list), noexcept, "use os::vsnprintf");
|
||||
PRAGMA_DIAG_POP
|
||||
|
||||
// All of the following functions return raw C-heap pointers. We generally
|
||||
// want allocation to be done through NMT.
|
||||
-FORBID_IMPORTED_C_FUNCTION(char* strdup(const char *s), noexcept, "use os::strdup");
|
||||
-FORBID_IMPORTED_C_FUNCTION(wchar_t* wcsdup(const wchar_t *s), noexcept, "don't use");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(char* strdup(const char *s), noexcept, "use os::strdup");
|
||||
+//FORBID_IMPORTED_C_FUNCTION(wchar_t* wcsdup(const wchar_t *s), noexcept, "don't use");
|
||||
|
||||
// Disallow non-wrapped raw library function.
|
||||
-MACOS_AARCH64_ONLY(FORBID_C_FUNCTION(void pthread_jit_write_protect_np(int enabled), noexcept, \
|
||||
- "use os::current_thread_enable_wx");)
|
||||
+//MACOS_AARCH64_ONLY(FORBID_C_FUNCTION(void pthread_jit_write_protect_np(int enabled), noexcept, \
|
||||
+// "use os::current_thread_enable_wx");)
|
||||
|
||||
#endif // SHARE_UTILITIES_FORBIDDENFUNCTIONS_HPP
|
||||
|
||||
--- a/src/jdk.jpackage/share/native/common/SysInfo.h 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/jdk.jpackage/share/native/common/SysInfo.h 2026-11-01 05:19:38.503721391 +0000
|
||||
@@ -28,6 +28,7 @@
|
||||
#define SYSINFO_H
|
||||
|
||||
#include "tstrings.h"
|
||||
+#include <new>
|
||||
|
||||
|
||||
//
|
||||
|
||||
--- a/src/jdk.jpackage/linux/native/libapplauncher/Package.cpp 2026-08-19 14:06:10.000000000 +0000
|
||||
+++ b/src/jdk.jpackage/linux/native/libapplauncher/Package.cpp 2026-11-01 05:21:02.547026922 +0000
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "AppLauncher.h"
|
||||
#include "ErrorHandling.h"
|
||||
|
||||
+#include <new>
|
||||
+
|
||||
|
||||
Package::Package(): type(Unknown) {
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
import subprocess
|
||||
import glob
|
||||
import os
|
||||
|
||||
from lib import cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("27.0.0")
|
||||
description("JDK implementation of the OpenJDK project.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://openjdk/jdk#v27ga")
|
||||
|
||||
builddep("shortcut/c++")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("pkgconf @target")
|
||||
builddep("libjpeg-turbo-dev @target")
|
||||
builddep("liblcms-dev @target")
|
||||
builddep("libpng-dev @target")
|
||||
builddep("libharfbuzz-dev @target")
|
||||
builddep("libfreetype-dev @target")
|
||||
builddep("libffi-dev @target")
|
||||
builddep("alsa-lib-dev @target")
|
||||
builddep("cups-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("bash")
|
||||
builddep("file")
|
||||
builddep("zip")
|
||||
builddep("openjdk @target")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["CC"] = "clang"
|
||||
os.environ["CXX"] = "clang++"
|
||||
cpp.configure([
|
||||
"--enable-headless-only",
|
||||
"--enable-jvm-feature-cds",
|
||||
"--enable-jvm-feature-compiler1",
|
||||
"--enable-jvm-feature-compiler2",
|
||||
"--enable-jvm-feature-epsilongc",
|
||||
"--enable-jvm-feature-g1gc",
|
||||
"--enable-jvm-feature-jfr",
|
||||
"--enable-jvm-feature-jni-check",
|
||||
"--enable-jvm-feature-jvmti",
|
||||
#"--enable-jvm-feature-link-time-opt",
|
||||
"--enable-jvm-feature-management",
|
||||
"--enable-jvm-feature-parallelgc",
|
||||
"--enable-jvm-feature-serialgc",
|
||||
"--enable-jvm-feature-services",
|
||||
"--enable-jvm-feature-shenandoahgc",
|
||||
"--enable-jvm-feature-vm-structs",
|
||||
"--enable-jvm-feature-zgc",
|
||||
"--with-build-user=root",
|
||||
"--with-vendor-name=SemiOS",
|
||||
"--with-vendor-url=https://os.semilabs.org",
|
||||
"--with-vendor-bug-url=https://gitea.semilabs.org/semios/ports/issues/new",
|
||||
"--with-vendor-vm-bug-url=https://gitea.semilabs.org/semios/ports/issues/new",
|
||||
"--with-toolchain-type=clang",
|
||||
"--with-stdc++lib=dynamic",
|
||||
f"--with-freetype-include={packie.prefix_of('libfreetype-dev')}/include",
|
||||
f"--with-freetype-lib={packie.prefix_of('libfreetype')}/lib",
|
||||
"--with-lcms=system",
|
||||
"--with-libpng=system",
|
||||
"--with-harfbuzz=system",
|
||||
"--with-libjpeg=system",
|
||||
"--with-copyright-year=2026",
|
||||
"--disable-warnings-as-errors",
|
||||
])
|
||||
subprocess.run(
|
||||
["make", "images", "SOURCE_DATE_ISO_8601=2026-11-01T00:00:00Z"],
|
||||
check=True,
|
||||
)
|
||||
os.chdir(glob.glob("./build/*-release/images/jdk")[0])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.add("bin")
|
||||
composer.add("conf")
|
||||
composer.add("demo")
|
||||
composer.add("include")
|
||||
composer.add("jmods")
|
||||
composer.add("legal")
|
||||
composer.add("lib")
|
||||
composer.add("release")
|
||||
|
||||
package("openjdk")
|
||||
dep("semi-libc @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -5,14 +5,14 @@ from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
full_version = "3.15.2"
|
||||
full_version = "3.15.1"
|
||||
[major_version, minor_version, rev_version] = full_version.split('.')
|
||||
base_version = f"{major_version}.{minor_version}"
|
||||
|
||||
version(full_version)
|
||||
description("the Python programming language")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://python/cpython#v3.15.2")
|
||||
source_managed("github://python/cpython#v3.15.1")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import os
|
||||
|
||||
import lib.cpp as cpp, packie
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.54.1")
|
||||
version("3.53.4")
|
||||
description("a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://sqlite.org/2026/sqlite-autoconf-3540100.tar.gz")
|
||||
source_url("https://sqlite.org/2026/sqlite-autoconf-3530400.tar.gz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/c")
|
||||
@@ -25,19 +26,17 @@ def build():
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libsqlite")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
dep("semi-libc @same-arch")
|
||||
|
||||
package("sqlite")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libsqlite (same)")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
dep("libsqlite (same)")
|
||||
|
||||
package("libsqlite-dev")
|
||||
dep("libsqlite (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
dep("libsqlite (same)")
|
||||
@@ -1,21 +0,0 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("2.44.1")
|
||||
description("A cross-platform, high-performance and asynchronous web server for static files-serving.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://static-web-server/static-web-server#v2.44.1", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("static-web-server")
|
||||
dep("semi-libc @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -1,38 +0,0 @@
|
||||
## sudoers file.
|
||||
##
|
||||
## This file SHOULD be edited with the 'visudo' command as root.
|
||||
## Failure to use 'visudo' may result in syntax or file permission errors
|
||||
## that prevent sudo from running.
|
||||
##
|
||||
## See the sudoers man page for the details on how to write a sudoers file.
|
||||
|
||||
## Defaults specification
|
||||
##
|
||||
## Preserve editor environment variables for visudo.
|
||||
## To preserve these for all commands, remove the "!visudo" qualifier.
|
||||
Defaults!/bin/visudo env_keep += "SUDO_EDITOR EDITOR VISUAL"
|
||||
##
|
||||
## Use a hard-coded PATH instead of the user's to find commands.
|
||||
## This also helps prevent poorly written scripts from running
|
||||
## arbitrary commands under sudo.
|
||||
Defaults secure_path="/bin"
|
||||
##
|
||||
## Uncomment this to allow commands run by sudo to see the
|
||||
## environment variables set by sshd(8).
|
||||
# Defaults env_keep += "SSH_*"
|
||||
##
|
||||
## Uncomment to disable "use_pty" when running commands as root.
|
||||
## Commands run as non-root users will run in a pseudo-terminal,
|
||||
## not the user's own terminal, to prevent command injection.
|
||||
# Defaults>root !use_pty
|
||||
##
|
||||
## Uncomment if the historical silent password prompt is desired
|
||||
# Defaults !pwfeedback
|
||||
|
||||
### User privilege specifications
|
||||
|
||||
## Allow root to execute any command
|
||||
root ALL=(ALL:ALL) ALL
|
||||
|
||||
## Allow members of group wheel to execute any command
|
||||
%wheel ALL=(ALL:ALL) ALL
|
||||
@@ -1,26 +0,0 @@
|
||||
--- a/src/sudo/mod.rs
|
||||
+++ b/src/sudo/mod.rs
|
||||
50,61c50,59
|
||||
< let mut path = if cfg!(target_os = "freebsd") {
|
||||
< option_env!("LOCALBASE").unwrap_or("/usr/local").into()
|
||||
< } else {
|
||||
< PathBuf::from("/")
|
||||
< };
|
||||
< path.push("etc/sudoers-rs");
|
||||
< if !path.exists() {
|
||||
< path.set_file_name("sudoers");
|
||||
< };
|
||||
<
|
||||
< dev_info!("Running with {} file", path.display());
|
||||
< path
|
||||
---
|
||||
> let user = PathBuf::from("/var/config/sudo/sudoers");
|
||||
> if !user.exists() {
|
||||
> if let Ok(mut path) = std::env::current_exe() {
|
||||
> path.pop();
|
||||
> path.pop();
|
||||
> path.push("share/config/sudoers");
|
||||
> return path;
|
||||
> }
|
||||
> }
|
||||
> user
|
||||
@@ -1,8 +0,0 @@
|
||||
--- a/src/sudo/pam.rs
|
||||
+++ b/src/sudo/pam.rs
|
||||
42,43c42,43
|
||||
< LaunchType::Login if cfg!(feature = "pam-login") => "sudo-i",
|
||||
< LaunchType::Login | LaunchType::Shell | LaunchType::Direct => "sudo",
|
||||
---
|
||||
> LaunchType::Login if cfg!(feature = "pam-login") => "run-as",
|
||||
> LaunchType::Login | LaunchType::Shell | LaunchType::Direct => "run-as",
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/src/common/resolve.rs
|
||||
+++ b/src/common/resolve.rs
|
||||
@@ -144,7 +144,7 @@
|
||||
// when no -u or -g is specified, default to root:root
|
||||
(None, None) => {
|
||||
target_user = User::from_name(c"root")?;
|
||||
- target_group = Group::from_name(if cfg!(target_os = "linux") {
|
||||
+ target_group = Group::from_name(if false {
|
||||
c"root"
|
||||
} else {
|
||||
c"wheel"
|
||||
@@ -1,35 +0,0 @@
|
||||
import os
|
||||
|
||||
import lib.rust as rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("0.2.15")
|
||||
description("A memory safe implementation of sudo.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://trifectatechfoundation/sudo-rs#v0.2.15", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
builddep("libpam-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
configdir = os.getcwd() + "/config"
|
||||
|
||||
def pack(composer):
|
||||
os.chdir(rust.artifacts_dir())
|
||||
composer.makedir("bin")
|
||||
composer.add("sudo", "bin/sudo")
|
||||
composer.add("visudo", "bin/visudo")
|
||||
composer.makedir("share")
|
||||
composer.add(configdir, "share/config")
|
||||
|
||||
package("sudo")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libpam @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -1,39 +0,0 @@
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.2.0")
|
||||
description("theora video codec reference implementation")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://downloads.xiph.org/releases/theora/libtheora-1.2.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libogg-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
"--prefix=/",
|
||||
f"--libdir={get_prefix('libtheora')}/lib",
|
||||
f"--includedir={get_prefix('libtheora-dev')}/include",
|
||||
"--disable-oggtest",
|
||||
"--disable-vorbistest",
|
||||
"--disable-examples",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("libtheora")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libogg @same-arch")
|
||||
cpp.use_auto_pack(["lib"])
|
||||
|
||||
package("libtheora-dev")
|
||||
dep("libtheora (same)")
|
||||
dep("semi-libc-dev @same-arch")
|
||||
dep("libogg-dev @same-arch")
|
||||
cpp.use_auto_pack(["dev"])
|
||||
@@ -1,37 +0,0 @@
|
||||
import os
|
||||
|
||||
from lib import arch, cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("3.8")
|
||||
description("the terminal multiplexer that keeps your work running")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://tmux/tmux#3.8", "autotools")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/autotools")
|
||||
builddep("libevent-dev @target")
|
||||
builddep("libncurses-dev @target")
|
||||
builddep("byacc")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["ac_cv_search_forkpty"] = "none required"
|
||||
os.environ["ac_cv_func_forkpty"] = "yes"
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('tmux')}",
|
||||
"--enable-optimizations",
|
||||
"--enable-sixel",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("tmux")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libevent @same-arch")
|
||||
dep("libncurses @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -12,7 +12,7 @@ builddep("libintl-dev @target")
|
||||
builddep("libz-ng-dev @target")
|
||||
builddep("libncurses-dev @target")
|
||||
|
||||
version("2.42.4")
|
||||
version("2.42.2")
|
||||
description("a random collection of Linux utilities")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://util-linux/util-linux#v2.42.4", "autotools")
|
||||
@@ -124,7 +124,6 @@ package("util-linux-swap")
|
||||
dep("libblkid (same)")
|
||||
dep("libmount (same)")
|
||||
dep("libsmartcols (same)")
|
||||
dep("libuuid (same)")
|
||||
on_pack(lambda composer: pack_bin(composer, ["sbin/swaplabel", "sbin/swapoff", "sbin/swapon", "sbin/mkswap"]))
|
||||
|
||||
package("util-linux-mount")
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
from lib import rust
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("50.0.1")
|
||||
description("A lightweight WebAssembly runtime that is fast, secure, and standards-compliant")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://bytecodealliance/wasmtime#v50.0.1", "rust")
|
||||
|
||||
builddep("shortcut/rust")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build([])
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("wasmtime")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libunwind @same-arch")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -60,7 +60,7 @@ def load_pkgbuild(pkgname):
|
||||
|
||||
def run_hooks(map, arg: typing.Any = None):
|
||||
current_dir = os.getcwd()
|
||||
for n in map:
|
||||
for n in map.keys():
|
||||
if n in lib.make._blocked_hooks:
|
||||
continue
|
||||
if arg:
|
||||
@@ -84,7 +84,7 @@ def cmd_build_package(package: str):
|
||||
|
||||
# Check architecture support
|
||||
if not lib.make._supported_arch(lib.arch.get_target()):
|
||||
lib.logging.error(f"Architecture {lib.arch.get_target()} is not supported for this package.")
|
||||
print(f"Architecture {lib.arch.get_target()} is not supported for this package")
|
||||
exit(1)
|
||||
|
||||
# Run `pre_build` hooks
|
||||
@@ -95,20 +95,17 @@ def cmd_build_package(package: str):
|
||||
os.chdir(lib.sources.sources_dir_name())
|
||||
lib.make._on_build()
|
||||
else:
|
||||
lib.logging.error("The pkgbuild file has specified no build function.")
|
||||
exit(1)
|
||||
print("on_build(): Not defined")
|
||||
|
||||
# Run `post_build` hooks
|
||||
run_hooks(hooks.post_build)
|
||||
|
||||
# Pack packages
|
||||
for pkgname in lib.make._pkginfo:
|
||||
for pkgname in lib.make._pkginfo.keys():
|
||||
lib.make._current_pkgname = pkgname
|
||||
|
||||
if pkgname == lib.make._key_global:
|
||||
continue
|
||||
else:
|
||||
lib.logging.step(f"Packing package \"{pkgname}\"...")
|
||||
|
||||
pkginfo = lib.make._pkginfo[pkgname]
|
||||
pkgver = pkginfo[lib.make._key_version]
|
||||
@@ -212,17 +209,13 @@ def cmd_build_atom(pkgname: str):
|
||||
load_pkgbuild(pkgname)
|
||||
|
||||
# Initialize build environment
|
||||
lib.logging.step("Preparing environment for Atom Build...")
|
||||
lib.atombuild.prepare_build_env(build_env_root, lib.make._builddep)
|
||||
lib.atombuild.copy_pkgbuild_tree(repo_root, pkgname, build_env_root)
|
||||
try:
|
||||
lib.atombuild.enter_build_env(
|
||||
build_env_root,
|
||||
["./x", "--target", lib.arch.get_target(), "build", pkgname],
|
||||
chdir="/Atom",
|
||||
)
|
||||
except:
|
||||
exit(1)
|
||||
lib.atombuild.enter_build_env(
|
||||
build_env_root,
|
||||
["./x", "--target", lib.arch.get_target(), "build", pkgname],
|
||||
chdir="/Atom",
|
||||
)
|
||||
|
||||
# Copy artifacts
|
||||
atom_target_dir = f"{build_env_root}/Atom/packages/{pkgname}/target"
|
||||
@@ -230,7 +223,7 @@ def cmd_build_atom(pkgname: str):
|
||||
for i in os.listdir(atom_target_dir):
|
||||
if i.endswith(".pkg"):
|
||||
shutil.copy2(f"{atom_target_dir}/{i}", f"{target_dir}/{i}")
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Build success
|
||||
@@ -279,33 +272,27 @@ def cmd_check_updates(pkgname):
|
||||
exit(1)
|
||||
print(lib.managed_source.get_updates(lib.make._managed_source_url))
|
||||
|
||||
def main():
|
||||
if args.subcommand == "build":
|
||||
if args.atombuild:
|
||||
cmd_build_atom(args.BUILD_PKGNAME)
|
||||
else:
|
||||
cmd_build_package(args.BUILD_PKGNAME)
|
||||
elif args.subcommand == "clean":
|
||||
if args.all:
|
||||
pkgs = os.listdir("packages")
|
||||
else:
|
||||
pkgs = args.CLEAN_PKGNAME
|
||||
cmd_clean_package(pkgs)
|
||||
elif args.subcommand == "list":
|
||||
cmd_list(args.ITEM)
|
||||
elif args.subcommand == "repo-push":
|
||||
cmd_repo_push(args.REPO_DIR, args.REPO_PUSH_PKGNAME)
|
||||
elif args.subcommand == "source":
|
||||
if args.vendor:
|
||||
cmd_vendor_src(args.vendor, args.PKGNAME)
|
||||
if args.check_updates:
|
||||
cmd_check_updates(args.PKGNAME)
|
||||
else:
|
||||
print("error: no action specified", file=sys.stderr)
|
||||
exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
main()
|
||||
except KeyboardInterrupt:
|
||||
exit(1)
|
||||
if args.subcommand == "build":
|
||||
if args.atombuild:
|
||||
cmd_build_atom(args.BUILD_PKGNAME)
|
||||
else:
|
||||
cmd_build_package(args.BUILD_PKGNAME)
|
||||
elif args.subcommand == "clean":
|
||||
if args.all:
|
||||
pkgs = os.listdir("packages")
|
||||
else:
|
||||
pkgs = args.CLEAN_PKGNAME
|
||||
cmd_clean_package(pkgs)
|
||||
elif args.subcommand == "list":
|
||||
cmd_list(args.ITEM)
|
||||
elif args.subcommand == "repo-push":
|
||||
cmd_repo_push(args.REPO_DIR, args.REPO_PUSH_PKGNAME)
|
||||
elif args.subcommand == "source":
|
||||
if args.vendor:
|
||||
cmd_vendor_src(args.vendor, args.PKGNAME)
|
||||
if args.check_updates:
|
||||
cmd_check_updates(args.PKGNAME)
|
||||
else:
|
||||
print("error: no action specified", file=sys.stderr)
|
||||
exit(1)
|
||||
Reference in new issue
Block a user