Skip to content

Commit 13797b7

Browse files
jk-ozlabssravnborg
authored andcommitted
scripts/package: don't break if %{_smp_mflags} isn't set
Currently, if we do a 'make rpm-pkg' without the _smp_mflags rpm macro defined, the build fails with: [snip] Executing(%build): /bin/bash -e /var/tmp/rpm-tmp.67959 + umask 022 + cd /home/jk/devel/kernel-snapshot/rpm/BUILD + cd kernel-2.6.26 + make clean + make '%{_smp_mflags}' make[3]: *** No rule to make target `%{_smp_mflags}'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.67959 (%build) This change uses the 'null if not set' reference to the _smp_mflags macro instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent e3da2fb commit 13797b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/package/mkspec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fi
5757
echo "%build"
5858

5959
if ! $PREBUILT; then
60-
echo "make clean && make %{_smp_mflags}"
60+
echo "make clean && make %{?_smp_mflags}"
6161
echo ""
6262
fi
6363

0 commit comments

Comments
 (0)