alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

commit 4b0b1095e26577d059a03b697b9977d981094e17
parent 6f48db523409b4adcdaefc460aea4481e5c034b4
Author: emmett1 <emmett1.2miligrams@protonmail.com>
Date:   Mon, 22 Sep 2025 14:32:45 +0000

firefox: updated to 143.0.1

Diffstat:
Mrepos/extra/firefox/.checksum | 6+++---
Mrepos/extra/firefox/abuild | 9+++++----
Arepos/extra/firefox/depflags.patch | 17+++++++++++++++++
Drepos/extra/firefox/fix-sqlite-vec-uint.patch | 20--------------------
Drepos/extra/firefox/fix-target-detection.patch | 19-------------------
Arepos/extra/firefox/libcxx18.patch | 18++++++++++++++++++
Drepos/extra/firefox/visibility.patch | 13-------------
7 files changed, 43 insertions(+), 59 deletions(-)

diff --git a/repos/extra/firefox/.checksum b/repos/extra/firefox/.checksum @@ -1,3 +1,3 @@ -55cdfe4b7cde214df0ba64090ce8156d6d1fc46975acc100522eb8ca96901303 firefox-142.0.1.source.tar.xz -3e4e722acd2ab2e38a16ec23b29296318d77cc54f034d4b21d91bde085e26bc0 fix-target-detection.patch -30889a96df16927cca69826f3ca94b9f751819c2fcae07001a7108847ff25cb6 visibility.patch +960af1855b7b5760731ee37ee555c488433acee0da5865aa3d3c14cb04211737 depflags.patch +b3a76031a584d7a22e4154a03ddb2f6e38c6d252bc03800d5d446fb5ab968720 firefox-143.0.1.source.tar.xz +1a8b337a849c5020835735b37f741855655a837fa4b202fe40dd01957e0e5de4 libcxx18.patch diff --git a/repos/extra/firefox/abuild b/repos/extra/firefox/abuild @@ -1,10 +1,9 @@ name=firefox -version=142.0.1 +version=143.0.1 release=1 source="https://ftp.mozilla.org/pub/${name}/releases/${version}/source/${name}-${version}.source.tar.xz - visibility.patch - fix-target-detection.patch" -# fix-sqlite-vec-uint.patch" + libcxx18.patch + depflags.patch" build() { cat > .mozconfig << EOF @@ -46,6 +45,8 @@ ac_add_options --disable-system-extension-dirs ac_add_options --disable-default-browser-agent ac_add_options --disable-backgroundtasks ac_add_options --disable-webspeech +ac_add_options --target=x86_64-unknown-linux-musl +ac_add_options --host=x86_64-unknown-linux-musl EOF if [ -f $SPM_PKGDB/libx11 ] && [ ! -f $SPM_PKGDB/wayland ]; then diff --git a/repos/extra/firefox/depflags.patch b/repos/extra/firefox/depflags.patch @@ -0,0 +1,17 @@ +having the depend cflags like -MF .deps/whatever in the +host flags just completely wrecks cc-rs ability to compile +anything, so like half the crates fail to build lol + +--- a/config/config.mk ++++ b/config/config.mk +@@ -180,8 +180,8 @@ COMPILE_CMMFLAGS = $(MOZ_LTO_CFLAGS) $(OS_COMPILE_CMMFLAGS) $(MOZBUILD_CMMFLAGS) + ASFLAGS = $(COMPUTED_ASFLAGS) + SFLAGS = $(COMPUTED_SFLAGS) + +-HOST_CFLAGS = $(COMPUTED_HOST_CFLAGS) $(_HOST_DEPEND_CFLAGS) +-HOST_CXXFLAGS = $(COMPUTED_HOST_CXXFLAGS) $(_HOST_DEPEND_CFLAGS) ++HOST_CFLAGS = $(COMPUTED_HOST_CFLAGS) ++HOST_CXXFLAGS = $(COMPUTED_HOST_CXXFLAGS) + HOST_C_LDFLAGS = $(COMPUTED_HOST_C_LDFLAGS) + HOST_CXX_LDFLAGS = $(COMPUTED_HOST_CXX_LDFLAGS) + diff --git a/repos/extra/firefox/fix-sqlite-vec-uint.patch b/repos/extra/firefox/fix-sqlite-vec-uint.patch @@ -1,20 +0,0 @@ -diff --git a/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.c b/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.c -index 96612e2..d641b11 100644 ---- a/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.c -+++ b/third_party/sqlite3/ext/sqlite-vec/sqlite-vec.c -@@ -66,6 +66,7 @@ SQLITE_EXTENSION_INIT3 - #ifndef __COSMOPOLITAN__ - #ifndef __wasi__ - #ifndef __sun__ -+#ifndef linux - typedef u_int8_t uint8_t; - typedef u_int16_t uint16_t; - typedef u_int64_t uint64_t; -@@ -74,6 +75,7 @@ typedef u_int64_t uint64_t; - #endif - #endif - #endif -+#endif - - typedef int8_t i8; - typedef uint8_t u8; diff --git a/repos/extra/firefox/fix-target-detection.patch b/repos/extra/firefox/fix-target-detection.patch @@ -1,19 +0,0 @@ -diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure -index 7a2fd1a..ba5ba62 100644 ---- a/build/moz.configure/rust.configure -+++ b/build/moz.configure/rust.configure -@@ -403,9 +403,13 @@ def detect_rustc_target( - ] - if len(narrowed) == 1: - return narrowed[0].rust_target -+ elif narrowed: -+ candidates = narrowed -+ -+ aliased_vendor = "unknown" if host_or_target.vendor == "pc" else host_or_target.vendor - - # Finally, see if the vendor can be used to disambiguate. -- narrowed = [c for c in candidates if c.target.vendor == host_or_target.vendor] -+ narrowed = [c for c in candidates if c.target.vendor == aliased_vendor] - if len(narrowed) == 1: - return narrowed[0].rust_target - diff --git a/repos/extra/firefox/libcxx18.patch b/repos/extra/firefox/libcxx18.patch @@ -0,0 +1,18 @@ +Patch-Source: https://dev.gentoo.org/~juippis/mozilla/patchsets/firefox-124-patches-04.tar.xz + +--- a/build/moz.configure/toolchain.configure ++++ b/build/moz.configure/toolchain.configure +@@ -2454,10 +2454,10 @@ set_define("_LIBCPP_ALWAYS_INLINE", libcxx_override_visibility.empty) + set_define("_LIBCPP_HIDE_FROM_ABI", libcxx_override_visibility.hide_from_abi) + + +-@depends(target, build_environment) +-def visibility_flags(target, env): ++@depends(target, build_environment, c_compiler) ++def visibility_flags(target, env, c_compiler): + if target.os != "WINNT": +- if target.kernel in ("Darwin", "FreeBSD", "OpenBSD"): ++ if target.kernel in ("Darwin", "FreeBSD", "OpenBSD") or (c_compiler.type == "clang" and c_compiler.version >= "17.0.0"): + return ("-fvisibility=hidden", "-fvisibility-inlines-hidden") + return ( + "-I%s/system_wrappers" % os.path.join(env.dist), diff --git a/repos/extra/firefox/visibility.patch b/repos/extra/firefox/visibility.patch @@ -1,13 +0,0 @@ ---- a/build/moz.configure/toolchain.configure -+++ b/build/moz.configure/toolchain.configure -@@ -2186,7 +2186,7 @@ --@depends(target, build_environment) -+@depends(target, c_compiler, build_environment) --def visibility_flags(target, env): -+def visibility_flags(target, c_compiler, env): - if target.os != "WINNT": -- if target.kernel == "Darwin": -+ if target.kernel == "Darwin" or c_compiler.type == "clang": - return ("-fvisibility=hidden", "-fvisibility-inlines-hidden") - return ( - "-I%s/system_wrappers" % os.path.join(env.dist),