<p>Parsing a spec, even unsuccessfully, will affect the global macro<br>
state in any number of ways that may affect the following operations<br>
in unpredictable ways. Lacking any saner way to do this, reset the<br>
entire global macro state after each spec parse in rpmspec and spec<br>
query code (rpmbuild already does this) while maintaining possible<br>
cli-specified target and rcfile.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/rpm-software-management/rpm/pull/1067'>https://github.com/rpm-software-management/rpm/pull/1067</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Reset global macro state after each spec query/parse</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1067/files#diff-0">lib/query.c</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1067/files#diff-1">rpmspec.c</a>
    (12)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/1067.patch'>https://github.com/rpm-software-management/rpm/pull/1067.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/1067.diff'>https://github.com/rpm-software-management/rpm/pull/1067.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1067?email_source=notifications&email_token=ADLPZU3VMU2NYEK4BEQAIIDRCORBLA5CNFSM4KTUKBXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IM3BQOA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4KOJPYSNGB7R6SYRTRCORBLANCNFSM4KTUKBXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU4KAU476KCC6P4J7W3RCORBLA5CNFSM4KTUKBXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IM3BQOA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1067?email_source=notifications\u0026email_token=ADLPZU3VMU2NYEK4BEQAIIDRCORBLA5CNFSM4KTUKBXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IM3BQOA",
"url": "https://github.com/rpm-software-management/rpm/pull/1067?email_source=notifications\u0026email_token=ADLPZU3VMU2NYEK4BEQAIIDRCORBLA5CNFSM4KTUKBXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IM3BQOA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>