Repository navigation
Commit a639aee
committed
🐛 bug: Corregir segfault de opencode con glibc 2.42 mediante overlay
Se agrega overlay para parchear el paquete opencode que crashea con
segfault al ejecutarse con glibc 2.42. Causa raíz: el binario compilado
con Bun --single declara DT_NEEDED a libpthread.so.0 y libdl.so.2, que
en glibc 2.42 provocan SEGV en el dynamic linker ld-linux.
El overlay aplica dos parches durante el build:
- Deshabilita el smoke test del build script (también crashea).
- Reemplaza las referencias a libpthread/libdl por libc.so.6 usando
patchelf --replace-needed, manteniendo la coherencia del
versionado ELF (VERNEED).
Referencias:
- anomalyco/opencode#13551
- anomalyco/opencode#26846
Cambios:
- overlays/opencode.nix: nuevo overlay con los parches
- flake.nix: import del overlay en mkHost (BLOQUE 1.5)
- flake.lock: actualización de dependencias (just update)1 parent 5c9a6f9 commit a639aee
3 files changed
Lines changed: 127 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
0 commit comments