public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Stephen Gallagher <sgallagh@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/linux-firmware] f44: Allow building on systems lacking 'parallel`, such as Fedora ELN
Date: Thu, 10 Sep 2026 13:46:57 GMT	[thread overview]
Message-ID: <178904801725.1.15678332670639958477.rpms-linux-firmware-56abbaf2387b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/linux-firmware
            Branch : f44
            Commit : 56abbaf2387bd3902d54c43a9f7e3cbd4a86ce4b
            Author : Stephen Gallagher <sgallagh@redhat.com>
            Date   : 2026-08-24T09:12:07-04:00
            Stats  : +48/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/linux-firmware/c/56abbaf2387bd3902d54c43a9f7e3cbd4a86ce4b?branch=f44

            Log:
            Allow building on systems lacking 'parallel`, such as Fedora ELN

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>

---
diff --git a/0001-copy-firmware-Do-not-fail-without-GNU-parallel.patch b/0001-copy-firmware-Do-not-fail-without-GNU-parallel.patch
new file mode 100644
index 0000000..83601ce
--- /dev/null
+++ b/0001-copy-firmware-Do-not-fail-without-GNU-parallel.patch
@@ -0,0 +1,37 @@
+From ccbeeb0dcc56c6fa099d802a7210d62657d70a01 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh@redhat.com>
+Date: Mon, 24 Aug 2026 08:55:33 -0400
+Subject: [PATCH] copy-firmware: Do not fail without GNU parallel
+
+Some distributions (including Red Hat Enterprise Linux and its siblings)
+do not ship the GNU `parallel` command or include them in their build
+environment. They do, however, include automatic build flags that try to
+pass -jN to make.
+
+Instead of treating this as a failure, just warn the user that parallel
+builds are not supported without the GNU `parallel` command and just
+continue with serialized execution instead.
+
+Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
+---
+ copy-firmware.sh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/copy-firmware.sh b/copy-firmware.sh
+index 6a32127e77cc35f8c15b3adc7030fa671d555b80..f9a609cf37afde46f86cfc8a0083ce0948263f31 100755
+--- a/copy-firmware.sh
++++ b/copy-firmware.sh
+@@ -53,7 +53,9 @@ while test $# -gt 0; do
+             num_jobs=$(echo "$1" | sed 's/-j//')
+             num_jobs=${num_jobs:-1}
+             if [ "$num_jobs" -gt 1 ] && ! has_gnu_parallel; then
+-                    err "the GNU parallel command is required to use -j"
++                    warn "the GNU parallel command is required to use -j"
++                    warn "running without parallel compression"
++                    num_jobs=1
+             fi
+             parallel_args_file=$(mktemp)
+             trap 'rm -f $parallel_args_file' EXIT INT QUIT TERM
+-- 
+2.55.0
+

diff --git a/linux-firmware.spec b/linux-firmware.spec
index 4e7e7ae..bc90283 100644
--- a/linux-firmware.spec
+++ b/linux-firmware.spec
@@ -5,7 +5,7 @@
 
 Name:		linux-firmware
 Version:	20260810
-Release:	1%{?dist}
+Release:	2%{?dist}
 Summary:	Firmware files used by the Linux kernel
 License:	GPL-1.0-or-later AND GPL-2.0-or-later AND MIT AND LicenseRef-Callaway-Redistributable-no-modification-permitted
 URL:		http://www.kernel.org/
@@ -38,6 +38,13 @@ Recommends:	nxpwireless-firmware
 Recommends:	realtek-firmware
 Recommends:	tiwilink-firmware
 
+
+# RHEL and Fedora ELN lack GNU parallel
+# Instead of failing when the build macros pass -jN, just force it to run
+# serially.
+# Upstream MR (merged): https://gitlab.com/kernel-firmware/linux-firmware/-/merge_requests/1190
+Patch: 0001-copy-firmware-Do-not-fail-without-GNU-parallel.patch
+
 %description
 This package includes firmware files required for some devices to
 operate.
@@ -729,6 +736,9 @@ end
 %{_firmwarepath}/v4l-cx2*
 
 %changelog
+* Fri Aug 14 2026 Stephen Gallagher <sgallagh@redhat.com> - 20260810-2
+- Allow building on systems lacking 'parallel`, such as Fedora ELN
+
 * Tue Aug 11 2026 Peter Robinson <pbrobinson@fedoraproject.org> - 20260810-1
 - Update to 20260810
 - amdgpu: numerous firmware updates

                 reply	other threads:[~2026-09-10 13:46 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=178904801725.1.15678332670639958477.rpms-linux-firmware-56abbaf2387b@fedoraproject.org \
    --to=sgallagh@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