Commit c840234
committed
fix(glibc): +brewing strip — detect linker scripts without file(1)
Commit 6d105d8 added the +brewing strip but used `file(1)` to detect
linker-script-vs-ELF — and `file` isn't on the test-sandbox PATH
(it's its own package, not coreutils). Result: the type check raised
"file: command not found", the conditional fell through, no .so files
were sed'd, and the test still hit the +brewing linker error.
Detect linker scripts by their first-16-bytes marker `/* GNU ld script`
instead. That's a pure bash + grep + head check, all in the sandbox.
Also adds an echo so future CI logs make it obvious which files were
modified.1 parent 6d105d8 commit c840234
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
| 145 | + | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| |||
0 commit comments