public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/firefox] f43: Remove unused mochitest-python.tar.gz, update helper scripts
@ 2026-11-06 10:52 Bojan Smojver
0 siblings, 0 replies; only message in thread
From: Bojan Smojver @ 2026-11-06 10:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/firefox
Branch : f43
Commit : e7fd2787dd265a10ba3aa44fb1973d9d256288ad
Author : Bojan Smojver <bojan@rexursive.com>
Date : 2026-11-06T04:26:52+11:00
Stats : +33/-14 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/firefox/c/e7fd2787dd265a10ba3aa44fb1973d9d256288ad?branch=f43
Log:
Remove unused mochitest-python.tar.gz, update helper scripts
- Remove unused mochitest-python.tar.gz
- Remove installation of cargo-vendor from gen_cbindgen-vendor.sh
- firefox-update.sh: add --no-upload option, fix staging of patch files
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---
diff --git a/firefox-update.sh b/firefox-update.sh
index 391c368..b6709fe 100755
--- a/firefox-update.sh
+++ b/firefox-update.sh
@@ -40,6 +40,7 @@ ADDED_PATCHES=()
CHANGELOG_MSG=""
DO_LOCAL_BUILD=0
DO_PUSH=0
+DO_UPLOAD=1
DO_ROLLBACK=0
SPEC_NOTES=()
@@ -154,6 +155,11 @@ Options:
overrides the default "Update to latest upstream" entry.
--local Run 'fedpkg local' (step 12); takes 1-2 hours
--push Push to Fedora dist-git when finished (step 14)
+ --no-upload In step 8 do not upload to the lookaside cache (for
+ users without upload permission for the Firefox
+ tarball). The sources file is still updated, with
+ checksums computed locally, and the command for
+ someone with permission is printed.
--yes Answer yes to all questions (non-interactive)
--rollback Discard the in-progress update and clean up, then exit
-h, --help Show this help
@@ -200,6 +206,7 @@ while [ $# -gt 0 ]; do
--changelog=*) CHANGELOG_MSG="${1#*=}"; shift ;;
--local) DO_LOCAL_BUILD=1; shift ;;
--push) DO_PUSH=1; shift ;;
+ --no-upload) DO_UPLOAD=0; shift ;;
--yes|-y) ASSUME_YES=1; shift ;;
--rollback) DO_ROLLBACK=1; shift ;;
-h|--help) usage; exit 0 ;;
@@ -787,7 +794,7 @@ fi
if ! skip_step 8; then
step 8 "Uploading new sources to the lookaside cache"
- check_kerberos
+ [ "$DO_UPLOAD" -eq 1 ] && check_kerberos
[ -f sources ] || die "No sources file in $PACKAGE_DIR"
# Everything except the Firefox source/langpack tarballs is kept as is.
@@ -799,6 +806,19 @@ if ! skip_step 8; then
info "Kept sources: ${KEPT_SOURCES[*]:-(none)}"
info "Uploaded anew: $NEW_TARBALL $LANGPACK_FILE"
+ if [ "$DO_UPLOAD" -eq 0 ]; then
+ warn "--no-upload: not uploading; updating the sources file locally only."
+ # Same format as fedpkg: 'SHA512 (file) = hash'.
+ grep -vE '\(firefox-.*\.source\.tar\.xz\)|\(firefox-langpacks-.*\.tar\.xz\)' \
+ sources > sources.new
+ sha512sum --tag "$NEW_TARBALL" "$LANGPACK_FILE" >> sources.new \
+ || { rm -f sources.new; die "sha512sum failed"; }
+ mv -f sources.new sources || die "Cannot replace the sources file"
+ ok "sources now lists $NEW_TARBALL and $LANGPACK_FILE (not uploaded)."
+ info "Someone with upload permission must still run in $PACKAGE_DIR:"
+ info " fedpkg new-sources $NEW_TARBALL $LANGPACK_FILE ${KEPT_SOURCES[*]}"
+ UPLOAD_SKIPPED=1
+ else
# Trim the sources file first so that 'fedpkg sources' does not re-download
# the previous (huge) Firefox tarball, then fetch whatever is still missing.
cp sources sources.bak || die "Cannot back up the sources file"
@@ -817,6 +837,7 @@ if ! skip_step 8; then
trap - EXIT
rm -f sources.bak
ok "Uploaded $NEW_TARBALL and $LANGPACK_FILE; sources file refreshed."
+ fi
fi
#-----------------------------------------------------------------------------
@@ -995,8 +1016,11 @@ if ! skip_step 13; then
# Patch files touched by hand (rebased/dropped) are staged too, but never
# build artifacts.
- mapfile -t CHANGED_PATCHES < <(git status --porcelain -- '*.patch' '*.diff' \
- | awk '{print $NF}')
+ # Untracked files are ignored, and so are deletions: 'git rm' (used for
+ # dropped patches) has already staged those, and 'git add' would fail on
+ # a path that no longer exists.
+ mapfile -t CHANGED_PATCHES < <(git status --porcelain --untracked-files=no \
+ -- '*.patch' '*.diff' | awk '$1 !~ /D/ {print $NF}')
if [ "${#CHANGED_PATCHES[@]}" -gt 0 ]; then
info "Modified patch files: ${CHANGED_PATCHES[*]}"
if confirm "Stage these patch files as part of the update?" y; then
@@ -1058,6 +1082,12 @@ echo " Commit:"
git log -1 --pretty=' %h %s'
echo
+if [ "${UPLOAD_SKIPPED:-0}" -eq 1 ]; then
+ warn "Sources were NOT uploaded (--no-upload): do not push until the"
+ warn "tarballs are in the lookaside cache (someone with permission can run"
+ warn "'fedpkg new-sources', or upload them by other means)."
+fi
+
if [ "$DO_PUSH" -eq 0 ] && [ "$ASSUME_YES" -eq 0 ]; then
confirm "Push the commit to rawhide on Fedora dist-git?" && DO_PUSH=1
fi
diff --git a/firefox.spec b/firefox.spec
index a6e23ab..442a4f9 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -219,7 +219,6 @@ Source32: node-stdout-nonblocking-wrapper
Source33: firefox.appdata.xml.in
Source34: org.mozilla.firefox.search-provider.ini
Source35: google-loc-api-key
-Source37: mochitest-python.tar.gz
Source38: print_results
Source39: print-errors
Source40: run-tests-x11
@@ -891,14 +890,6 @@ cp %{SOURCE45} .
. ./run-wayland-compositor
%endif
-mkdir -p objdir/_virtualenvs/init_py3
-cat > objdir/_virtualenvs/init_py3/pip.conf << EOF
-[global]
-find-links=`pwd`/mochitest-python
-no-index=true
-EOF
-tar xf %{SOURCE37}
-
#Use python 3.11 for mach
sed -i -e 's|#!/usr/bin/env python3|#!/usr/bin/env python3.11|' mach
diff --git a/gen_cbindgen-vendor.sh b/gen_cbindgen-vendor.sh
index 2730ed9..7838a74 100755
--- a/gen_cbindgen-vendor.sh
+++ b/gen_cbindgen-vendor.sh
@@ -20,7 +20,6 @@ path = "dummy.rs"
doc = false
EOL
-cargo install cargo-vendor
cargo vendor
cd vendor
diff --git a/sources b/sources
index 86e4d26..a3faee2 100644
--- a/sources
+++ b/sources
@@ -1,6 +1,5 @@
SHA512 (firefox-159.0.1.source.tar.xz) = e7375c0c18361b22fa1d2e6fd5f6a4ff20b22e7090a64bf32d7ef79edb0a649983439b8e6e80106fe51bb96699bdd3096c921fe198d1b460193a66d6d8f227a4
SHA512 (firefox-langpacks-159.0.1-20261104.tar.xz) = 21131b7db40bc82ed531a2046a09677fc9ca1016853c1c1a5d53876b1d2f436a8549a6e544bb684d645af07a66cae53aa7de6aaf4a192762d5ab0334a765f896
-SHA512 (mochitest-python.tar.gz) = 089b1593068b76f4572af0086eaccf52a6a1299bfffb58593206d19bf021ae381f2380bbfeb4371586cd53706ff6dde3d240238b2caf19b96c57dfc2f4524e36
SHA512 (dump_syms-vendor.tar.xz) = ee0ea52aac781b8dd48936a3d13b140bd725a48cc488d23693b68edbe3bcfba5723022dba3c3849d0da1bacf0e37ddd307cfc56304159f91b71495ce8a08b54a
SHA512 (wasi-sdk-30.tar.gz) = c08b2ddb5d5cf5b48c5baba80c65c485a3049b473d2f2dd2babb402243a7709633c695dfee5f9cbba52fa25ad832f02f3b73d9ba1141c4d44dc30db70292a04d
SHA512 (wasm-component-ld-vendor.tar.xz) = 356dc09502052198e99745199b8e10d803da9492ce34e41c6ae02cb8674fcc640cd5eafe68a03e4e61c984f7f6c7c8e5cdc3551251556fb3ae4631a340358fc0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-06 10:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 10:52 [rpms/firefox] f43: Remove unused mochitest-python.tar.gz, update helper scripts Bojan Smojver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox