<p>When creating packages in parallel, more than one thread can call<br>
this at once. As it's modifying global macro state to update file<br>
name and line number, things will get garbled if we permit more than<br>
one thread.</p>
<p>While this is necessary for the above reason, and should <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #742.">fix</span> <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="454259911" data-permission-text="Issue title is private" data-url="https://github.com/rpm-software-management/rpm/issues/742" data-hovercard-type="issue" data-hovercard-url="/rpm-software-management/rpm/issues/742/hovercard" href="https://github.com/rpm-software-management/rpm/issues/742">#742</a>,<br>
it shouldn't crash even without this so there's probably something<br>
else wrong too.</p>
<p><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #742.">Closes</span>: <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="454259911" data-permission-text="Issue title is private" data-url="https://github.com/rpm-software-management/rpm/issues/742" data-hovercard-type="issue" data-hovercard-url="/rpm-software-management/rpm/issues/742/hovercard" href="https://github.com/rpm-software-management/rpm/issues/742">#742</a></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/744'>https://github.com/rpm-software-management/rpm/pull/744</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Only permit one thread at a time in addFileToTag()</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/744/files#diff-0">build/pack.c</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/744.patch'>https://github.com/rpm-software-management/rpm/pull/744.patch</a></li>
  <li><a href='https://github.com/rpm-software-management/rpm/pull/744.diff'>https://github.com/rpm-software-management/rpm/pull/744.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/744?email_source=notifications&email_token=ADLPZU5ILLHSSOPAZSY6YUTPZ5LDHA5CNFSM4HW3RG52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYXVHIA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU67SZSL4TZ64GAQQSDPZ5LDHANCNFSM4HW3RG5Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUZZXTZQCRV6AHVCJRLPZ5LDHA5CNFSM4HW3RG52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYXVHIA.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/744?email_source=notifications\u0026email_token=ADLPZU5ILLHSSOPAZSY6YUTPZ5LDHA5CNFSM4HW3RG52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYXVHIA",
"url": "https://github.com/rpm-software-management/rpm/pull/744?email_source=notifications\u0026email_token=ADLPZU5ILLHSSOPAZSY6YUTPZ5LDHA5CNFSM4HW3RG52YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GYXVHIA",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>