mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
kbuild: rpm-pkg: define _arch conditionally
[ Upstream commit233046a2af
] Commit3089b2be0c
("kbuild: rpm-pkg: fix build error when _arch is undefined") does not work as intended; _arch is always defined as $UTS_MACHINE. The intention was to define _arch to $UTS_MACHINE only when it is not defined. Fixes:3089b2be0c
("kbuild: rpm-pkg: fix build error when _arch is undefined") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5c6cc19d73
commit
edd005afae
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ $S BuildRequires: gcc make openssl openssl-devel perl python3 rsync
|
|||
|
||||
# $UTS_MACHINE as a fallback of _arch in case
|
||||
# /usr/lib/rpm/platform/*/macros was not included.
|
||||
%define _arch %{?_arch:$UTS_MACHINE}
|
||||
%{!?_arch: %define _arch $UTS_MACHINE}
|
||||
%define __spec_install_post /usr/lib/rpm/brp-compress || :
|
||||
%define debug_package %{nil}
|
||||
|
||||
|
|
Loading…
Reference in a new issue