<p></p>
<p>I was thinking how to handle this today. I've only figured out <em>wrong</em> solutions:</p>
<ol>
<li>
<p>Modify <code>%__global_provides_exclude_from</code> to include <code>%{_libdir}/python\d+\.\d+/.+\.so</code>.<br>
This obviously has several problems: I cannot really do it from Python macros, so the information would need to be kept in the general macros file. Also, if we ever start providing something from those <code>.so</code> files, this would no longer work. Also, it does not scale well.</p>
</li>
<li>
<p>Negate the entire ELF generator on the specific paths and provide alternate ELF <em>requires</em> generator (without <em>provides</em>) for them. That seems like an awful "copy paste stuff around" hack, ale not sure how to detect the need to do this.</p>
</li>
<li>
<p>Extend RPM generators to be able to specify different <code>%__NAME_provides_exclude_path</code>, <code>%__NAME_requires_exclude_path</code> instead of general <code>%__NAME_exclude_path</code> and set  <code>%__elf_provides_exclude_path</code> to <code>%{_libdir}/python\d+\.\d+/.+\.so</code>. This should work but requires a lot of work. Also obviously, if more things want to set <code>%__elf_provides_exclude_path</code>, they would need to figure out how or have a shared place to configure it.</p>
</li>
<li>
<p>Use <code>%{_rpmconfigdir}/elfdeps --provides %{?__elf_provides_exclude_path:--exclude '%{__elf_provides_exclude_path}'}</code> in <code>%__elf_provides</code> to simulate the above. However, the problem continues: If both Perl and Python want to set <code>%__elf_provides_exclude_path</code> to "their" path, they would need to have a shared place to configure it.</p>
</li>
</ol>
<p>:/</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/1227#issuecomment-684717757">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4UFWTWPF6EK7KKM6TSDTCC3ANCNFSM4NDJTZHQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU6J6MYB67EOPILGCJLSDTCC3A5CNFSM4NDJTZH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFDH7NPI.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/1227#issuecomment-684717757",
"url": "https://github.com/rpm-software-management/rpm/issues/1227#issuecomment-684717757",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>