public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Stransky <stransky@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/firefox] f45: Merge #110 `Remove unused mochitest-python.tar.gz, update helper scripts`
Date: Fri, 06 Nov 2026 10:52:11 GMT	[thread overview]
Message-ID: <179396233125.1.9971161529367285089.rpms-firefox-ac72ec3f9cc7@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/firefox
Branch : f45
Commit : ac72ec3f9cc767bd500f209d82672f639b17f837
Author : Martin Stransky <stransky@redhat.com>
Date   : 2026-11-06T07:25:11+00:00
Stats  : +35/-17 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/firefox/c/ac72ec3f9cc767bd500f209d82672f639b17f837?branch=f45

Log:
Merge #110 `Remove unused mochitest-python.tar.gz, update helper scripts`

---
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 7afdad3..c00356d 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
@@ -890,14 +889,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

diff --git a/firefox.spec b/firefox.spec
index 442a4f9..c00356d 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -77,7 +77,7 @@ ExcludeArch: i686
 %global system_webp       1
 %global system_drm        1
 %global system_gbm        1
-%if 0%{?fedora} > 43
+%if 0%{?fedora} > 43 || 0%{?rhel} > 10
 %global system_pipewire   1
 %else
 %global system_pipewire   0
@@ -292,7 +292,7 @@ BuildRequires:  pkgconfig(libnotify) >= %{libnotify_version}
 BuildRequires:  pkgconfig(dri)
 BuildRequires:  pkgconfig(libcurl)
 BuildRequires:  pkgconfig(alsa)
-BuildRequires:  dbus-glib-devel
+BuildRequires:  dbus-devel
 %if %{?system_av1}
 BuildRequires:  pkgconfig(aom) >= %{aom_version}
 BuildRequires:  pkgconfig(dav1d) >= %{dav1d_version}
@@ -304,7 +304,6 @@ BuildRequires:  libvpx-devel >= %{libvpx_version}
 BuildRequires:  pkgconfig(libwebp) >= %{libwebp_version}
 BuildRequires:  pkgconfig(libwebpdemux) >= %{libwebp_version}
 %endif
-BuildRequires:  autoconf213
 BuildRequires:  pkgconfig(libpulse)
 BuildRequires:  llvm
 BuildRequires:  llvm-devel

                 reply	other threads:[~2026-11-06 10:52 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=179396233125.1.9971161529367285089.rpms-firefox-ac72ec3f9cc7@fedoraproject.org \
    --to=stransky@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