<p>After many hours, I can confirm it is related to the generation of packages in parallel. I think this is something related to this:</p>
<ul>
<li><code>packageBinaries</code> calls into <code>packageBinary</code> in parallel</li>
<li><code>packageBinary</code> calls into <code>processScriptFiles</code></li>
<li><code>processScriptFiles</code> calls into <code>addFileToTag</code></li>
<li><code>addFileToTag</code> is calling <code>rpmPushMacro(spec->macros, "__file_name", NULL, fn, RMIL_SPEC);</code></li>
</ul>
<p>I suppose that gets executed multiple times in parallel breaking some of following calls..</p>
<p>I don't know =(</p>

<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/issues/742?email_source=notifications&email_token=ADLPZU26YL22YQ5TPVBMR7DPZ3FIXA5CNFSM4HWVDVO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLLQAA#issuecomment-500611072">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU477M6MIHX4NIRGW3DPZ3FIXANCNFSM4HWVDVOQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ADLPZUYNNYM4T4HGQXZFP6TPZ3FIXA5CNFSM4HWVDVO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLLQAA.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/issues/742?email_source=notifications\u0026email_token=ADLPZU26YL22YQ5TPVBMR7DPZ3FIXA5CNFSM4HWVDVO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLLQAA#issuecomment-500611072",
"url": "https://github.com/rpm-software-management/rpm/issues/742?email_source=notifications\u0026email_token=ADLPZU26YL22YQ5TPVBMR7DPZ3FIXA5CNFSM4HWVDVO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXLLQAA#issuecomment-500611072",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>