Commit 04bf65c
fboss-sim: resolve packaged libs via RUNPATH, not LD_LIBRARY_PATH union
resolve_dependencies() set LD_LIBRARY_PATH to a `find installed/` union of
every lib dir under the getdeps installed/ tree before running ldd.
LD_LIBRARY_PATH outranks the binary's RUNPATH and ldd takes the first dir
on the path with a matching soname, so a stale dependency generation left
in installed/ by a previous build could shadow the correct one and produce
a package with ABI-mismatched libs (undefined symbol at load).
Each binary's RUNPATH already points at the exact install dir it was linked
against, so resolve via RUNPATH instead: strip any inherited LD_LIBRARY_PATH
and let ldd use RUNPATH + default system paths (system libs resolve from
/usr/lib64). Remove the now-unused get_lib_search_paths() helper.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2ed50fe commit 04bf65c
1 file changed
Lines changed: 7 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 97 | + | |
117 | 98 | | |
118 | 99 | | |
119 | 100 | | |
| |||
125 | 106 | | |
126 | 107 | | |
127 | 108 | | |
128 | | - | |
| 109 | + | |
| 110 | + | |
129 | 111 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 112 | + | |
135 | 113 | | |
136 | 114 | | |
137 | 115 | | |
| |||
203 | 181 | | |
204 | 182 | | |
205 | 183 | | |
206 | | - | |
207 | | - | |
208 | | - | |
| 184 | + | |
| 185 | + | |
209 | 186 | | |
210 | 187 | | |
211 | 188 | | |
212 | 189 | | |
213 | | - | |
214 | | - | |
215 | 190 | | |
216 | 191 | | |
217 | 192 | | |
218 | 193 | | |
219 | | - | |
| 194 | + | |
220 | 195 | | |
221 | 196 | | |
222 | 197 | | |
| |||
0 commit comments