diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-15 15:45:02 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-15 15:45:02 +0100 |
| commit | c9cca82612e9b926ea3acbcdc8b25a3a499e1b40 (patch) | |
| tree | ec2c92d479a765eaa63fe98d3570979412b2acdb | |
| parent | 0.5.0: visible step counter, one client per turn, docs corrected (diff) | |
| download | agent686-c9cca82612e9b926ea3acbcdc8b25a3a499e1b40.tar.gz agent686-c9cca82612e9b926ea3acbcdc8b25a3a499e1b40.zip | |
0.5.1: silence the GLIBC_2.39 weak-version warning on the target
.cargo/config.toml defines pidfd_spawnp/pidfd_getpid as absolute zero for i686,
removing the version need while keeping std's NULL-check fallback.
Diffstat (limited to '')
| -rw-r--r-- | .cargo/config.toml | 13 | ||||
| -rw-r--r-- | CHANGELOG.md | 9 | ||||
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | Cargo.toml | 2 |
4 files changed, 24 insertions, 2 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..17369d2 --- /dev/null +++ b/.cargo/config.toml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # Rust's std references glibc 2.39's pidfd_spawnp/pidfd_getpid as *weak* symbols. | ||
| 2 | # On an older glibc the dynamic linker resolves them to NULL (std falls back to | ||
| 3 | # posix_spawn), but it also prints a warning on every start: | ||
| 4 | # | ||
| 5 | # /lib/i386-linux-gnu/libc.so.6: weak version `GLIBC_2.39' not found | ||
| 6 | # | ||
| 7 | # Defining them locally as absolute 0 removes the version need while keeping the | ||
| 8 | # same runtime behaviour: the check sees NULL and takes the fallback path. | ||
| 9 | [target.i686-unknown-linux-gnu] | ||
| 10 | rustflags = [ | ||
| 11 | "-C", "link-arg=-Wl,--defsym,pidfd_spawnp=0", | ||
| 12 | "-C", "link-arg=-Wl,--defsym,pidfd_getpid=0", | ||
| 13 | ] | ||
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6340520..928f05a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -7,6 +7,15 @@ break the interface, **PATCH** for bug fixes. | |||
| 7 | file, and the tool schemas the model sees. Anything a script or a resumed session | 7 | file, and the tool schemas the model sees. Anything a script or a resumed session |
| 8 | could depend on counts as API. | 8 | could depend on counts as API. |
| 9 | 9 | ||
| 10 | ## 0.5.1 | ||
| 11 | |||
| 12 | ### Fixed | ||
| 13 | - Every start on the target printed | ||
| 14 | `weak version 'GLIBC_2.39' not found`. Rust's std references glibc 2.39's | ||
| 15 | `pidfd_spawnp`/`pidfd_getpid` weakly; the dynamic linker still warns. They are | ||
| 16 | now defined as absolute zero for the i686 target, which removes the version | ||
| 17 | need and leaves the fallback path unchanged. | ||
| 18 | |||
| 10 | ## 0.5.0 | 19 | ## 0.5.0 |
| 11 | 20 | ||
| 12 | ### Added | 21 | ### Added |
| @@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" | |||
| 10 | 10 | ||
| 11 | [[package]] | 11 | [[package]] |
| 12 | name = "agent686" | 12 | name = "agent686" |
| 13 | version = "0.5.0" | 13 | version = "0.5.1" |
| 14 | dependencies = [ | 14 | dependencies = [ |
| 15 | "crossterm", | 15 | "crossterm", |
| 16 | "libc", | 16 | "libc", |
| @@ -1,6 +1,6 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "agent686" | 2 | name = "agent686" |
| 3 | version = "0.5.0" | 3 | version = "0.5.1" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "A small coding agent for a 32-bit Debian box" | 5 | description = "A small coding agent for a 32-bit Debian box" |
| 6 | publish = false | 6 | publish = false |
