public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Horak <jhorak@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/firefox] main: Using stripped down wasi-sdk
Date: Wed, 02 Dec 2026 10:15:08 GMT	[thread overview]
Message-ID: <179620650879.1.12826079057209883461.rpms-firefox-168bc8f4f6f9@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/firefox
Branch : main
Commit : 168bc8f4f6f93e8ed48139beac0a86e286b5a114
Author : Jan Horak <jhorak@redhat.com>
Date   : 2026-12-02T11:14:35+01:00
Stats  : +18/-8 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/firefox/c/168bc8f4f6f93e8ed48139beac0a86e286b5a114?branch=main

Log:
Using stripped down wasi-sdk

---
diff --git a/.gitignore b/.gitignore
index 17383f1..c76c392 100644
--- a/.gitignore
+++ b/.gitignore
@@ -820,3 +820,4 @@ firefox-3.6.4.source.tar.bz2
 /firefox-langpacks-160.0.1-20261118.tar.xz
 /firefox-161.0.source.tar.xz
 /firefox-langpacks-161.0-20261123.tar.xz
+/wasi-sdk-30.tar.xz

diff --git a/firefox.spec b/firefox.spec
index a0ebc2f..2d73c58 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -232,9 +232,13 @@ Source47:       org.mozilla.firefox.desktop
 Source48:       org.mozilla.firefox.appdata.xml.in
 Source49:       wasi.patch.template
 # Created by:
-# git clone --recursive https://github.com/WebAssembly/wasi-sdk.git
-# cd wasi-sdk && git-archive-all --force-submodules wasi-sdk-30.tar.gz
-Source50:       wasi-sdk-30.tar.gz
+#git clone --recursive https://github.com/WebAssembly/wasi-sdk.git --depth 1 --branch wasi-sdk-30 wasi-sdk-30
+#rm -rf wasi-sdk-30/.git
+#cd wasi-sdk-30/src/llvm-project/
+#rm -rf bolt clang-tools-extra clang cross-project-tests flang flang-rt libclc libunwind lld lldb llvm-libgcc mlir offload openmp polly llvm/benchmarks llvm/bindings llvm/docs llvm/examples llvm/include llvm/lib llvm/test llvm/tools llvm/unittests
+#cd -
+#tar -cJf wasi-sdk-30.tar.xz wasi-sdk-30
+Source50:       wasi-sdk-30.tar.xz
 
 # Build patches
 Patch44:        build-arm-libopus.patch
@@ -726,12 +730,17 @@ directory = "`pwd`"
 EOL
 cd -
 
-CARGO_HOME=`pwd`/my_rust_vendor/.cargo NINJA_FLAGS=-v CC=clang CXX=clang++ env -u CFLAGS -u CXXFLAGS -u FFLAGS -u VALFLAGS -u RUSTFLAGS -u LDFLAGS -u LT_SYS_LIBRARY_PATH cmake -G Ninja -B build/toolchain -S . -DWASI_SDK_BUILD_TOOLCHAIN=ON -DCMAKE_INSTALL_PREFIX=build/install
-CARGO_HOME=`pwd`/my_rust_vendor/.cargo NINJA_FLAGS=-v CC=clang CXX=clang++ env -u CFLAGS -u CXXFLAGS -u FFLAGS -u VALFLAGS -u RUSTFLAGS -u LDFLAGS -u LT_SYS_LIBRARY_PATH cmake --build build/toolchain --target install
-
 CARGO_HOME=`pwd`/my_rust_vendor/.cargo NINJA_FLAGS=-v CC=clang CXX=clang++ env -u CFLAGS -u CXXFLAGS -u FFLAGS -u VALFLAGS -u RUSTFLAGS -u LDFLAGS -u LT_SYS_LIBRARY_PATH cmake -G Ninja -B build/sysroot -S . \
     -DCMAKE_INSTALL_PREFIX=build/install \
-    -DCMAKE_TOOLCHAIN_FILE=build/install/share/cmake/wasi-sdk.cmake \
+    -DCMAKE_C_COMPILER_WORKS=ON \
+    -DCMAKE_CXX_COMPILER_WORKS=ON \
+    -DCMAKE_C_COMPILER=%{_bindir}/clang \
+    -DCMAKE_CXX_COMPILER=%{_bindir}/clang++ \
+    -DCMAKE_C_COMPILER_TARGET=wasm32-wasip1 \
+    -DCMAKE_CXX_COMPILER_TARGET=wasm32-wasip1 \
+    -DWASI_SDK_TARGETS=wasm32-wasip1 \
+    -DCMAKE_AR=%{_bindir}/llvm-ar \
+    -DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \
     -DCMAKE_C_COMPILER_WORKS=ON \
     -DCMAKE_CXX_COMPILER_WORKS=ON
 CARGO_HOME=`pwd`/my_rust_vendor/.cargo NINJA_FLAGS=-v CC=clang CXX=clang++ env -u CFLAGS -u CXXFLAGS -u FFLAGS -u VALFLAGS -u RUSTFLAGS -u LDFLAGS -u LT_SYS_LIBRARY_PATH cmake --build build/sysroot --target install

diff --git a/sources b/sources
index 7aa3285..27135fc 100644
--- a/sources
+++ b/sources
@@ -1,7 +1,7 @@
 SHA512 (firefox-161.0.source.tar.xz) = d456b1cb9d514f5be90ec9b4104dc5545dfc3a4a8626e2d862fdc60b6e8c769abfb37045ffc7abd1f8afcdef4eecba67f7ab367d8496fbae374626abd756631d
 SHA512 (firefox-langpacks-161.0-20261123.tar.xz) = 137f15f1cde800d7ebdab394f0596892645245c8f0323816a8b74da8f00fbbc25660488340dfd29de1440f1c2346b30b8de71ecfbecd84e5b7dfd721a58d1a5b
-SHA512 (wasi-sdk-30.tar.gz) = c08b2ddb5d5cf5b48c5baba80c65c485a3049b473d2f2dd2babb402243a7709633c695dfee5f9cbba52fa25ad832f02f3b73d9ba1141c4d44dc30db70292a04d
 SHA512 (cbindgen-vendor.tar.xz) = e97889b3ee36332f922c19200ecfb46c708db086f0a762d3c5580fafdf90d808da923dbdba64809c018932fac88564531387b245f3542d41c7930251ba505b94
 SHA512 (dump_syms-vendor.tar.xz) = e57a59d8e46c742cdd671dd23f3c51361e226b8b8a39e19f0718859e129b640b638a1177ac470f5ad23058f37920f5bc439eff978d8baad8c167add8be44ba3e
 SHA512 (wasm-component-ld-vendor.tar.xz) = 8d11721af8ca34ee1773aa625b2c5823c288f96f567e469bc36785e0e9fb4a958f5f41bf732f58095dbe6256d89a28bcfdd9743eba1f6ea104d812a0363916de
 SHA512 (wasm-tools-vendor.tar.xz) = 1b64890ac7bfa5c311d1eea0c5da731b0eac2e0cc66b221ef224ba3c07824926d97ef5c3b0285c693303b244c703286ffef07a5bda6d301c869d41138c064fdf
+SHA512 (wasi-sdk-30.tar.xz) = 8142b767a50d1358d868132bf539a271548295a946c70ad99fb055ecaf01dca5d897f07b35bdf481693e9764113879ad37ad3f7b8806befb84727d20038d86c9

                 reply	other threads:[~2026-12-02 10:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179620650879.1.12826079057209883461.rpms-firefox-168bc8f4f6f9@fedoraproject.org \
    --to=jhorak@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox