Repository navigation
Conversation
b0a8069 to
405980f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #738 +/- ##
==========================================
+ Coverage 96.07% 96.22% +0.15%
==========================================
Files 23 23
Lines 2036 2038 +2
Branches 388 389 +1
==========================================
+ Hits 1956 1961 +5
+ Misses 46 44 -2
+ Partials 34 33 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I've never understood why |
|
Thanks — I traced the duplication. `ldpaths["rpath"]` /
`ldpaths["runpath"]` are the top-level ELF paths propagated into
recursive dependency resolution, while the local `rpaths` / `runpaths`
belong to the current ELF. On the first call those pairs are
identical, so I pushed `ff3833e` to omit the inherited copies only on
the first call while preserving the recursive ordering and behavior.
…On Mon, 28 Sep 2026 03:21:12 -0700, Malcolm Smith ***@***.***> wrote:
mhsmith left a comment [(pypa/auditwheel#738)](#738 (comment))
I've never understood why rpath and runpath both appear twice in the all_ldpaths list, once directly from local variables, and once in slightly different locations via the ldpaths dict. Can this duplication be eliminated, or at least explained in a comment? Otherwise, I can't be confident about whether this change makes sense.
—
Reply to this email directly, [view it on GitHub](#738?email_source=notifications&email_token=BU267KFZCQWJKUTB4AVEWL35RI3RRA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKOBWHAYDCOBUGMZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5868018433), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/BU267KFXF6UCRALQJGENPDT5RI3RRAVCNFSNUABEKJSXA33TNF2G64TZHM2DSNRRGU4DAMR3JFZXG5LFHM2TKMJQGIYDQMZUGCQXMAQ).
You are receiving this because you authored the thread.
|
|
Thanks for the PR but let's hold off. I added some comment in #737 for further discussions about the order. |
According to the ld.so documentation: |
Closes #737.
AUDITWHEEL_LD_LIBRARY_PATHcurrently shares the same internal search-path bucket asLD_LIBRARY_PATH, which places both after an ELF'sDT_RUNPATH.This separates the auditwheel-specific environment path from the standard
LD_LIBRARY_PATHand gives it the lower-risk precedence discussed in #737:RPATH > AUDITWHEEL_LD_LIBRARY_PATH > RUNPATH > LD_LIBRARY_PATHThe existing precedence of
RUNPATHover the standardLD_LIBRARY_PATHis intentionally preserved.The change also keeps compatibility with callers that provide the existing
ldpathsdictionary shape without the new auditwheel-specific entry.Tests cover:
RUNPATHcontinuing to overrideLD_LIBRARY_PATH;AUDITWHEEL_LD_LIBRARY_PATHoverridingRUNPATH;root != "/"behavior;ldpathsdictionaries.Validation:
pytest tests/unit/test_lddtree.pypytest tests/unitnox -s lintgit diff --check