Repository navigation
Commit 08253a6
committed
fix(compat): an absolute DT_NEEDED is not a soname, and a missing tool is not an empty answer
Two defects that only appear when `compat.glx-runtime`'s new pass is actually
executed. The previous change measured the opencl and vulkan farms; the glx one
had never been run.
AN ABSOLUTE `DT_NEEDED` NEVER GOES THROUGH A SEARCH PATH. Four members of this
farm -- the glvnd vendor entries `libEGL_nvidia`, `libGLESv1_CM_nvidia`,
`libGLESv2_nvidia` and `libGLX_nvidia` -- name `/lib/x86_64-linux-gnu/...`
outright. The loader opens those directly, so the farm can neither serve them
nor honestly record them as unserved. Treating one as a soname looks up a name
with slashes in it and then writes an `unserved` link whose NAME is a path. All
three recipes skip them.
A MISSING TOOL IS NOT AN EMPTY ANSWER. With `readelf` absent the pass returned
`{}`, which reads exactly like a farm with no gaps -- the confusion this whole
batch exists to remove, one layer down in the tool lookup. It now warns, and
`compat.glx-runtime`'s lookup reaches the xim store before PATH like the other
two, because this package runs on machines that were never asked to have a
toolchain.
Measured against the installed glx farm with the same logic: 52 members, 4
absolute entries skipped, 19 sonames needed, all 19 filled from ecosystem
payloads, 0 unserved, and no path-shaped entry.1 parent 698c60d commit 08253a6
4 files changed
Lines changed: 124 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
10 | 30 | | |
11 | 31 | | |
12 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
281 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
282 | 296 | | |
283 | 297 | | |
284 | 298 | | |
| |||
290 | 304 | | |
291 | 305 | | |
292 | 306 | | |
293 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
294 | 321 | | |
295 | 322 | | |
296 | 323 | | |
| |||
307 | 334 | | |
308 | 335 | | |
309 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
310 | 352 | | |
311 | 353 | | |
312 | 354 | | |
313 | 355 | | |
| 356 | + | |
314 | 357 | | |
315 | 358 | | |
316 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
406 | 419 | | |
407 | 420 | | |
408 | 421 | | |
| |||
419 | 432 | | |
420 | 433 | | |
421 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
422 | 450 | | |
423 | 451 | | |
424 | 452 | | |
425 | 453 | | |
| 454 | + | |
426 | 455 | | |
427 | 456 | | |
428 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
821 | 834 | | |
822 | 835 | | |
823 | 836 | | |
| |||
834 | 847 | | |
835 | 848 | | |
836 | 849 | | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
837 | 865 | | |
838 | 866 | | |
839 | 867 | | |
840 | 868 | | |
| 869 | + | |
841 | 870 | | |
842 | 871 | | |
843 | 872 | | |
| |||
0 commit comments