Commit 3b7de75
committed
test(e2e): ldd's interpreter line is about ldd, not about the artifact
The host-library check I added a commit ago failed on CI for a dependency the
artifact does not have:
/home/runner/.mcpp/.../xim-x-glibc/2.39/lib64/ld-linux-x86-64.so.2
=> /lib64/ld-linux-x86-64.so.2
ldd resolves the program interpreter by running the host's loader, so it
always reports the payload interpreter as resolving to the host's. That says
nothing about what the artifact loads at runtime -- the PT_INTERP assertion
above already covers the interpreter, and it passed.
A real dependency has a bare soname on the left; the interpreter line has an
absolute path. The predicate now requires the former, and is self-checked
against all three line shapes before use.
Worth stating plainly: this is a check that would have blocked correct work
while claiming a defect. That is the opposite failure from the ones this
branch has been chasing, and no less expensive.1 parent ec34195 commit 3b7de75
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
95 | 106 | | |
96 | | - | |
97 | | - | |
| 107 | + | |
98 | 108 | | |
99 | 109 | | |
100 | 110 | | |
| |||
147 | 157 | | |
148 | 158 | | |
149 | 159 | | |
150 | | - | |
151 | | - | |
| 160 | + | |
152 | 161 | | |
153 | 162 | | |
154 | 163 | | |
| |||
0 commit comments