Avoid recursive python3_sitearch expansion even if undefined
Fixes an error during SRPM construction if not enough dependencies are installed (e.g., during the first build stage in mock): error: /builddir/build/SPECS/samba.spec: line 2478: Too many levels of recursion in macro expansion. It is likely caused by recursive macro declaration.
This commit is contained in:
parent
14cc94aae1
commit
c7d395b20c
@ -194,8 +194,8 @@
|
|||||||
%global _systemd_extra "Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba"
|
%global _systemd_extra "Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba"
|
||||||
|
|
||||||
# Make a copy of this variable to prevent repeated evaluation of the
|
# Make a copy of this variable to prevent repeated evaluation of the
|
||||||
# embedded shell command.
|
# embedded shell command. Avoid recursive macro definition if undefined.
|
||||||
%global python3_sitearch %{python3_sitearch}
|
%{?python3_sitearch: %global python3_sitearch %{python3_sitearch}}
|
||||||
|
|
||||||
Name: samba
|
Name: samba
|
||||||
Version: %{samba_version}
|
Version: %{samba_version}
|
||||||
|
Loading…
Reference in New Issue
Block a user