diff options
Diffstat (limited to '')
| -rw-r--r-- | README.md | 16 |
1 files changed, 10 insertions, 6 deletions
| @@ -29,9 +29,13 @@ binary runs here; `--portable` targets the architecture floor instead. If the | |||
| 29 | binary is for another machine, use `--portable` or run `comp.sh` on that machine | 29 | binary is for another machine, use `--portable` or run `comp.sh` on that machine |
| 30 | — a native build fails with an illegal instruction on older chips. | 30 | — a native build fails with an illegal instruction on older chips. |
| 31 | 31 | ||
| 32 | A glibc build also inherits this machine's glibc floor, which is why the portable | 32 | A glibc build is bounded by the glibc symbols it references, not by this |
| 33 | paths are printed next to it: static musl removes the floor entirely, and building | 33 | machine's glibc version: `check-glibc.sh` reports the real floor (e.g. |
| 34 | inside an older Debian image lowers it. | 34 | `GLIBC_2.34`). Static musl removes the floor entirely, and building inside an |
| 35 | older Debian image lowers it. | ||
| 36 | |||
| 37 | The commands above produce `target/<triple>/release/agent686`; replace | ||
| 38 | `./agent686` below with that path. | ||
| 35 | 39 | ||
| 36 | The gate matters: the dev host's glibc is newer than the target's, so a | 40 | The gate matters: the dev host's glibc is newer than the target's, so a |
| 37 | dependency can silently raise the required symbol version. | 41 | dependency can silently raise the required symbol version. |
| @@ -77,10 +81,10 @@ that is where `rm -rf` lives. `--yolo` skips both, and is refused in `$HOME` and | |||
| 77 | ## Tests | 81 | ## Tests |
| 78 | 82 | ||
| 79 | ```sh | 83 | ```sh |
| 80 | cargo test # 75 tests, no network | 84 | cargo test # 92 tests, no network |
| 81 | python3 scripts/mock-provider.py & # canned SSE provider | 85 | python3 scripts/mock-provider.py & # canned SSE provider |
| 82 | docker run --rm --platform linux/386 \ | 86 | # i686 still builds (comp.sh on a 32-bit host picks it up): |
| 83 | -v "$PWD/target/i686-unknown-linux-gnu/release:/b:ro" debian:12 /b/agent686 --version | 87 | cargo build --release --target i686-unknown-linux-gnu |
| 84 | ``` | 88 | ``` |
| 85 | 89 | ||
| 86 | `tests/sse.rs` feeds the stream one byte at a time, so splits inside lines and | 90 | `tests/sse.rs` feeds the stream one byte at a time, so splits inside lines and |
