<p>This change ensures that any existing buildroot contents are wiped<br>
and a fresh empty one is created for usage in %install.</p>
<p>Variations of this exist in virtually every RPM-based Linux distribution<br>
for more than a decade. At this point, it is expected behavior everywhere<br>
and it is amazing that it has not yet been put in RPM itself until now...</p>
<p>Credit goes to Michael Schroeder from openSUSE for the original work<br>
and Tom Calloway for the variant adapted for Fedora that is the basis<br>
for this change.</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/1039'>https://github.com/rpm-software-management/rpm/pull/1039</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>platform: Ensure empty buildroot for %install</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/rpm-software-management/rpm/pull/1039/files#diff-0">platform.in</a>
    (10)
  </li>
</ul>

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