From: Don Zickus <[email protected]>
Use _smp_build_nthreads for rpm eval
rpm-4.18.1 recently modified how _smp_mflags is defined and it breaks
tarball creation: rpm --eval %{_smp_mflags} because the output is
'-j${RPM_BUILD_NCPUS}' instead of '-j8'.
While that is being worked on, let's simplify things and use what we
already have: RHJOBS.
Now the user controls how many threads with 'make -jX'.
Signed-off-by: Don Zickus <[email protected]>
diff --git a/redhat/scripts/create-tarball.sh b/redhat/scripts/create-tarball.sh
index blahblah..blahblah 100755
--- a/redhat/scripts/create-tarball.sh
+++ b/redhat/scripts/create-tarball.sh
@@ -4,7 +4,7 @@
[ "$DISTRO" != "fedora" ] && _GITID="$GITID" || _GITID="$MARKER"
# shellcheck disable=SC1083
-XZ_THREADS=$(rpm --eval %{_smp_mflags} | sed -e 's!^-j!--threads !')
+XZ_THREADS="--threads $RHJOBS"
ARCH=$(arch)
XZ_OPTIONS=""
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2370
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue