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] rawhide: Enabled s390x, upstream backport
Date: Tue, 27 Oct 2026 08:26:26 GMT [thread overview]
Message-ID: <179308958653.1.4576102851566594443.rpms-firefox-7166581ea34f@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/firefox
Branch : rawhide
Commit : 7166581ea34f2b167d3662872cd3c928600bff05
Author : Martin Stransky <stransky@redhat.com>
Date : 2026-10-27T09:26:14+01:00
Stats : +171/-23 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/firefox/c/7166581ea34f2b167d3662872cd3c928600bff05?branch=rawhide
Log:
Enabled s390x, upstream backport
---
diff --git a/0001-Bug-2085342-Hash-the-little-endian-ICU-data-in-icu_d.patch b/0001-Bug-2085342-Hash-the-little-endian-ICU-data-in-icu_d.patch
new file mode 100644
index 0000000..ccac7a2
--- /dev/null
+++ b/0001-Bug-2085342-Hash-the-little-endian-ICU-data-in-icu_d.patch
@@ -0,0 +1,32 @@
+From 380b2f4e74c0648534545694723727252d13fe9d Mon Sep 17 00:00:00 2001
+From: Matthew Gaudet <mgaudet@mozilla.com>
+Date: Mon, 26 Oct 2026 09:22:17 -0600
+Subject: [PATCH] Bug 2085342 - Hash the little endian ICU data in
+ icu_data_hashed.S on big endian targets. r?ahochheiden
+
+On ESR153 the big endian data file is generated in the misc tier, so it isn't
+available when icu_data_hashed.S is generated during pre-compile. Main doesn't
+need this since bug 2038789 moved generated .dat files to pre-compile.
+---
+ config/external/icu/data/moz.build | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/config/external/icu/data/moz.build b/config/external/icu/data/moz.build
+index 16ec62046c1fd..8710738a18f98 100644
+--- a/config/external/icu/data/moz.build
++++ b/config/external/icu/data/moz.build
+@@ -32,8 +32,10 @@ SOURCES += [
+ GeneratedFile(
+ "icu_data_hashed.S",
+ script="icu_data_hash.py",
++ # The big endian data is generated from the little endian data in the misc
++ # tier, so hash the latter, which is available during pre-compile.
+ inputs=[
+- "!" + data_file["big"] if endianness == "big" else data_file["little"],
++ data_file["little"],
+ "icu_data.S",
+ ],
+ )
+--
+2.50.1 (Apple Git-155)
+
diff --git a/firefox-update.sh b/firefox-update.sh
index 138594b..391c368 100755
--- a/firefox-update.sh
+++ b/firefox-update.sh
@@ -35,6 +35,9 @@ RESUME_FROM=1
ASSUME_YES=0
DROP_PATCHES=()
DROPPED_PATCHES=()
+ADD_PATCHES=()
+ADDED_PATCHES=()
+CHANGELOG_MSG=""
DO_LOCAL_BUILD=0
DO_PUSH=0
DO_ROLLBACK=0
@@ -126,6 +129,9 @@ Usage: $(basename "$0") <version> [options]
Updates the Firefox package in Fedora rawhide to <version> (e.g. 157.0).
+<version> may be omitted when --resume N is given with N > 1: the version
+is then read from the Version: tag already written to firefox.spec.
+
Options:
--resume N Skip to step N (1-14), reading current on-disk state
--build buildN Use this Mozilla candidate build instead of the latest
@@ -135,6 +141,17 @@ Options:
PatchNNN: and %patch -PNNN lines from firefox.spec and
deletes the file from git. P is the patch file name or
its number. May be given more than once.
+ -a, --add-patch F Add an upstream patch already sitting in the package
+ directory as file F (it is not copied there): assigns
+ it the next free PatchNNN:, appends the matching
+ %patch -PNNN line, and stages the file with git. May
+ be given more than once. Review the generated %patch
+ line (ordering, -p level, backup suffix) before
+ committing.
+ -c, --changelog MSG Add a %changelog entry and bump Release:. Without a
+ <version> (i.e. combined with -a/-d only) this is the
+ only way to bump the release; with a <version> it
+ 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)
--yes Answer yes to all questions (non-interactive)
@@ -175,6 +192,12 @@ while [ $# -gt 0 ]; do
-d|--drop-patch) DROP_PATCHES+=("$2"); shift 2 ;;
-d=*) DROP_PATCHES+=("${1#*=}"); shift ;;
--drop-patch=*) DROP_PATCHES+=("${1#*=}"); shift ;;
+ -a|--add-patch) ADD_PATCHES+=("$2"); shift 2 ;;
+ -a=*) ADD_PATCHES+=("${1#*=}"); shift ;;
+ --add-patch=*) ADD_PATCHES+=("${1#*=}"); shift ;;
+ -c|--changelog) CHANGELOG_MSG="$2"; shift 2 ;;
+ -c=*) CHANGELOG_MSG="${1#*=}"; shift ;;
+ --changelog=*) CHANGELOG_MSG="${1#*=}"; shift ;;
--local) DO_LOCAL_BUILD=1; shift ;;
--push) DO_PUSH=1; shift ;;
--yes|-y) ASSUME_YES=1; shift ;;
@@ -265,20 +288,66 @@ drop_patch() {
SPEC_NOTES+=("Dropped Patch${num}: $file")
}
+# add_patch <patch-file-already-in-the-package-dir>
+# The file must already exist in the package directory (it is not copied
+# from elsewhere). Assigns it the next free PatchNNN:, appends the
+# declaration and the matching '%patch -PNNN' line to firefox.spec, and
+# stages the file with git. The new %patch line is only a starting point -
+# patch ordering, -p level and backup suffix may need manual adjustment.
+add_patch() {
+ local src="$1" base num short last_decl last_apply
+ base=$(basename -- "$src")
+
+ [ -f "$base" ] \
+ || die "$base not found in $PACKAGE_DIR - place the patch file there first (it is not copied)"
+
+ grep -qE "^Patch[0-9]*:[[:space:]]+${base}([[:space:]]|$)" firefox.spec \
+ && die "$base is already referenced by firefox.spec"
+
+ num=$(grep -oP '^Patch\K[0-9]+(?=:)' firefox.spec | sort -n | tail -1)
+ [ -n "$num" ] || die "No existing Patch declarations found in firefox.spec to number from"
+ num=$((num + 1))
+ while grep -qE "^Patch${num}:[[:space:]]" firefox.spec; do
+ num=$((num + 1))
+ done
+
+ info "Adding $base as Patch${num}"
+
+ last_decl=$(grep -nE '^Patch[0-9]*:[[:space:]]' firefox.spec | tail -1 | cut -d: -f1)
+ [ -n "$last_decl" ] || die "No 'PatchNNN:' line found to insert the new one after"
+ sed -i "${last_decl}a Patch${num}: ${base}" firefox.spec \
+ || die "Cannot insert the Patch${num}: line"
+ grep -qE "^Patch${num}:[[:space:]]+${base}([[:space:]]|$)" firefox.spec \
+ || die "Patch${num}: was not added to firefox.spec"
+
+ short="${base%.patch}"; short=$(printf '%s' "$short" | tr -cs 'A-Za-z0-9' '-')
+ last_apply=$(grep -nE '^%patch[[:space:]]+-P[0-9]+' firefox.spec | tail -1 | cut -d: -f1)
+ if [ -n "$last_apply" ]; then
+ sed -i "${last_apply}a %patch -P${num} -p1 -b .${short}" firefox.spec \
+ || die "Cannot insert the '%patch -P${num}' line"
+ grep -qE "^%patch[[:space:]]+-P${num}([[:space:]]|$)" firefox.spec \
+ || die "'%patch -P${num}' was not added to firefox.spec"
+ else
+ warn "No existing '%patch -P...' line found - add '%patch -P${num} -p1' to %prep by hand."
+ fi
+
+ run git add -- "$base" || die "git add of $base failed"
+
+ ADDED_PATCHES+=("$base (Patch${num})")
+ SPEC_NOTES+=("Added Patch${num}: $base")
+ warn "Review the new '%patch -P${num}' line (ordering, -p level, backup suffix) before committing."
+}
+
#-----------------------------------------------------------------------------
# Step 1: Get version info
#-----------------------------------------------------------------------------
-# --drop-patch without a version only edits the spec and git - no update is
-# started, so no version is needed or asked for.
-DROP_ONLY=0
-if [ -z "$NEW_VERSION" ] && [ "${#DROP_PATCHES[@]}" -gt 0 ]; then
- DROP_ONLY=1
-fi
-
-if [ -z "$NEW_VERSION" ] && [ "$DROP_ONLY" -eq 0 ]; then
- NEW_VERSION=$(ask "What Firefox version would you like to update to? (e.g. 157.0)")
- [ -n "$NEW_VERSION" ] || die "No version given"
+# -d/--drop-patch and/or -a/--add-patch without a version only edit the spec
+# and git - no update is started, so no version is needed or asked for.
+PATCH_ONLY=0
+if [ -z "$NEW_VERSION" ] \
+ && { [ "${#DROP_PATCHES[@]}" -gt 0 ] || [ "${#ADD_PATCHES[@]}" -gt 0 ]; }; then
+ PATCH_ONLY=1
fi
if [ -z "$PACKAGE_DIR" ]; then
@@ -289,7 +358,21 @@ if [ -z "$PACKAGE_DIR" ]; then
fi
fi
-if [ "$DROP_ONLY" -eq 0 ]; then
+if [ -z "$NEW_VERSION" ] && [ "$PATCH_ONLY" -eq 0 ]; then
+ # Resuming an in-progress update: the version was already bumped into
+ # firefox.spec back in step 4, so read it from there instead of asking.
+ if [ "$RESUME_FROM" -gt 1 ] && [ -f "$PACKAGE_DIR/firefox.spec" ]; then
+ NEW_VERSION=$(grep -m1 -oP '^Version:\s*\K\S+' "$PACKAGE_DIR/firefox.spec")
+ [ -n "$NEW_VERSION" ] \
+ && info "No version given - using $NEW_VERSION from $PACKAGE_DIR/firefox.spec (--resume $RESUME_FROM)"
+ fi
+ if [ -z "$NEW_VERSION" ]; then
+ NEW_VERSION=$(ask "What Firefox version would you like to update to? (e.g. 157.0)")
+ [ -n "$NEW_VERSION" ] || die "No version given"
+ fi
+fi
+
+if [ "$PATCH_ONLY" -eq 0 ]; then
step 1 "Preparing update to Firefox $NEW_VERSION"
info "Package directory: $PACKAGE_DIR"
ok "Target version: $NEW_VERSION"
@@ -311,19 +394,40 @@ cd "$PACKAGE_DIR" || die "Cannot enter $PACKAGE_DIR"
[ -f firefox.spec ] || die "$PACKAGE_DIR does not contain firefox.spec"
#-----------------------------------------------------------------------------
-# Drop-only mode: -d/--drop-patch given without a version
+# Patch-only mode: -d/--drop-patch and/or -a/--add-patch given without a
+# version; -c/--changelog optionally bumps Release: and the %changelog.
#-----------------------------------------------------------------------------
-if [ "$DROP_ONLY" -eq 1 ]; then
- printf '\n%s==> Dropping %d patch(es) from firefox.spec in %s%s\n' \
- "$C_BOLD$C_BLUE" "${#DROP_PATCHES[@]}" "$PACKAGE_DIR" "$C_OFF"
+if [ "$PATCH_ONLY" -eq 1 ]; then
+ printf '\n%s==> Updating patches in firefox.spec in %s%s\n' \
+ "$C_BOLD$C_BLUE" "$PACKAGE_DIR" "$C_OFF"
for p in "${DROP_PATCHES[@]}"; do
drop_patch "$p"
done
- printf '\n Dropped patches:\n'
- printf ' - %s\n' "${DROPPED_PATCHES[@]}"
+ for p in "${ADD_PATCHES[@]}"; do
+ add_patch "$p"
+ done
+
+ if [ -n "$CHANGELOG_MSG" ]; then
+ bumpspec_args=(--comment "$CHANGELOG_MSG")
+ [ -n "$CHANGELOG_AUTHOR" ] && bumpspec_args+=(--userstring "$CHANGELOG_AUTHOR")
+ run rpmdev-bumpspec "${bumpspec_args[@]}" firefox.spec \
+ || die "rpmdev-bumpspec failed"
+ ok "Release bumped to $(spec_get '^Release:\s*\K\S+') and changelog entry added."
+ else
+ info "No --changelog given - Release: and %changelog left unchanged."
+ fi
+
+ if [ "${#DROPPED_PATCHES[@]}" -gt 0 ]; then
+ printf '\n Dropped patches:\n'
+ printf ' - %s\n' "${DROPPED_PATCHES[@]}"
+ fi
+ if [ "${#ADDED_PATCHES[@]}" -gt 0 ]; then
+ printf '\n Added patches:\n'
+ printf ' - %s\n' "${ADDED_PATCHES[@]}"
+ fi
printf '\n'
- ok "firefox.spec updated and the patch files removed from git."
+ ok "firefox.spec updated."
info "Review with 'git diff' and commit when you are ready."
exit 0
fi
@@ -494,7 +598,8 @@ if ! skip_step 4; then
fi
if [ "$DO_BUMP" -eq 1 ]; then
- bumpspec_args=(--new "$NEW_VERSION" --comment "Update to latest upstream ($NEW_VERSION)")
+ bumpspec_args=(--new "$NEW_VERSION" \
+ --comment "${CHANGELOG_MSG:-Update to latest upstream ($NEW_VERSION)}")
[ -n "$CHANGELOG_AUTHOR" ] && bumpspec_args+=(--userstring "$CHANGELOG_AUTHOR")
run rpmdev-bumpspec "${bumpspec_args[@]}" firefox.spec \
|| die "rpmdev-bumpspec failed"
@@ -718,8 +823,8 @@ fi
# Step 9: Check and rebase patches
#-----------------------------------------------------------------------------
-if [ "${#DROP_PATCHES[@]}" -gt 0 ] && skip_step 9; then
- warn "--drop-patch ignored: resuming at step $RESUME_FROM, past the patch step."
+if { [ "${#DROP_PATCHES[@]}" -gt 0 ] || [ "${#ADD_PATCHES[@]}" -gt 0 ]; } && skip_step 9; then
+ warn "--drop-patch/--add-patch ignored: resuming at step $RESUME_FROM, past the patch step."
fi
if ! skip_step 9; then
@@ -731,6 +836,12 @@ if ! skip_step 9; then
[ "${#DROPPED_PATCHES[@]}" -gt 0 ] \
&& ok "Dropped ${#DROPPED_PATCHES[@]} patch(es)."
+ for p in "${ADD_PATCHES[@]}"; do
+ add_patch "$p"
+ done
+ [ "${#ADDED_PATCHES[@]}" -gt 0 ] \
+ && ok "Added ${#ADDED_PATCHES[@]} patch(es)."
+
mapfile -t SPEC_PATCHES < <(grep -oP '^Patch[0-9]*:\s*\K\S+' firefox.spec)
info "${#SPEC_PATCHES[@]} patches referenced by firefox.spec"
for p in "${SPEC_PATCHES[@]}"; do
diff --git a/firefox.spec b/firefox.spec
index c165d08..e021500 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -4,7 +4,7 @@
# Excluded due to https://bugzilla.mozilla.org/show_bug.cgi?id=1792159
# https://bugzilla.redhat.com/show_bug.cgi?id=2129720
-ExcludeArch: i686 s390x
+ExcludeArch: i686
# Run Mozilla test suite as a part of compile rpm section. Turn off when
# building locally and don't want to spend 24 hours waiting for results.
@@ -190,7 +190,7 @@ ExcludeArch: i686 s390x
Summary: Mozilla Firefox Web browser
Name: firefox
Version: 159.0
-Release: 1%{?dist}
+Release: 2%{?dist}
URL: https://www.mozilla.org/firefox/
# Automatically converted from old format: MPLv1.1 or GPLv2+ or LGPLv2+ - review is highly recommended.
License: LicenseRef-Callaway-MPLv1.1 OR GPL-2.0-or-later OR LicenseRef-Callaway-LGPLv2+
@@ -265,6 +265,7 @@ Patch402: color-range.patch
Patch600: pgo.patch
Patch602: mozilla-1516803.patch
Patch603: firefox-gcc-always-inline.patch
+Patch604: 0001-Bug-2085342-Hash-the-little-endian-ICU-data-in-icu_d.patch
%if %{?system_nss}
BuildRequires: pkgconfig(nspr) >= %{nspr_version}
@@ -553,6 +554,7 @@ cat %{SOURCE49} | sed -e "s|LIBCLANG_RT_PLACEHOLDER|`pwd`/wasi-sdk-30/build/sysr
%endif
%endif
%patch -P603 -p1 -b .inline
+%patch -P604 -p1 -b .0001-Bug-2085342-Hash-the-little-endian-ICU-data-in-icu-d
rm -f .mozconfig
cp %{SOURCE10} .mozconfig
@@ -1199,6 +1201,9 @@ fi
#---------------------------------------------------------------------
%changelog
+* Tue Oct 27 2026 Martin Stransky <stransky@redhat.com> - 159.0-2
+- Added s390x ICU fix
+
* Mon Oct 26 2026 Martin Stransky <stransky@redhat.com> - 159.0-1
- Update to latest upstream (159.0)
- Temporary disabled s390x due to build error
reply other threads:[~2026-10-27 8:26 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=179308958653.1.4576102851566594443.rpms-firefox-7166581ea34f@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