-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
area/fedoraRelated to Fedora ecosystemRelated to Fedora ecosystemcomplexity/single-taskRegular task; should be done within daysRegular task; should be done within daysgain/lowDoesn't bring much value to usersDoesn't bring much value to usersimpact/lowAffects only few of the usersAffects only few of the userskind/bugAn unexpected problem or behaviorAn unexpected problem or behaviorworkaround-existsThere is a workaround that can be used in the meantimeThere is a workaround that can be used in the meantime
Description
Trivial reproducer:
# recursive macro definition
%global cflags "-O3 %{cflags}"
Name: test
Version: 0.1
Release: %autorelease
Summary: Test package
License: MIT
%description
Test package
%changelog
%autochangelog
spec = Specfile("test.spec")
spec.update_version("0.2")
This raises specfile.exceptions.RPMException: Too many levels of recursion in macro expansion. It is likely caused by recursive macro declaration.
.
A workaround is to define the macro (even to an empty value):
spec = Specfile("test.spec", macros=[("cflags", "")])
spec.update_version("0.2")
Metadata
Metadata
Assignees
Labels
area/fedoraRelated to Fedora ecosystemRelated to Fedora ecosystemcomplexity/single-taskRegular task; should be done within daysRegular task; should be done within daysgain/lowDoesn't bring much value to usersDoesn't bring much value to usersimpact/lowAffects only few of the usersAffects only few of the userskind/bugAn unexpected problem or behaviorAn unexpected problem or behaviorworkaround-existsThere is a workaround that can be used in the meantimeThere is a workaround that can be used in the meantime
Type
Projects
Status
backlog