Bug 1937765
| Summary: | rpmbuild specifically excludes /usr/local/ from the python path | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Pat Riehecky <riehecky> |
| Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED DUPLICATE | QA Contact: | swm-qe |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | CentOS Stream | CC: | bstinson, carl, jwboyer, mhroncok, pmatilai |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-03-16 08:54:49 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Pat Riehecky
2021-03-11 14:19:23 UTC
Mm, which part of the build process you're talking about, specifically? rpmbuild itself doesn't know anything about python or PYTHONPATH, these would be external helpers scattered over a few different packages, and I haven't kept up with all the details. Do you mean dependencies are not generated for things in /usr/local, or something else? In my specific case, my packages runtime deps are all satisfied by RPMs in /usr/. However, I've got a number of deps for the self tests (%check) that are not packaged in RPMs. I don't need the selftest support in systems using the RPM package.
I was chatting with Miro Hrončok who mentioned
> Note that /usr/local/... is not in sys.path when RPM_BUILD_ROOT is set.
In an ideal world, I'd package up all dozen or so of these and do everything through the package set, but alas the world is not ideal...
With https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe uncovered by a few helpful folks (thanks!) I'd say I'm probably too far off in the weeds here for RPM as I'm really trying to live a bit in and a bit outside the RPMDB. I'm comfortable closing this out as NOTABUG or WONTFIX. *** This bug has been marked as a duplicate of bug 1937494 *** |