Bug 132452 - macro recursion
macro recursion
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-09-13 12:36 EDT by Elliot Lee
Modified: 2007-11-30 17:10 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-01-21 07:13:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Elliot Lee 2004-09-13 12:36:35 EDT
rpmbuild --define 'distribution FooLinux'

macros file contains:
%distribution %{?distribution}%{!?distribution:Red Hat Linux}

This caused an infinite loop in macro expansion for your build of rpm.
Comment 1 Jeff Johnson 2006-01-21 07:13:45 EST
The loop was not infinite, recursion was detected and stopped at 16 levels.

There's little reason to test for macro being set within the macro expansion:

    %distribution Red Hat Linux
should override naturally with
    --define 'distribution FooLinux'

Note You need to log in before you can comment on or make changes to this bug.