Skip to content

chore: weekly upstream bumps (2026-08-24) - #6

Merged
mosajjal merged 3 commits into
masterfrom
bot/upstream-bump-20260824
Aug 24, 2026
Merged

chore: weekly upstream bumps (2026-08-24)#6
mosajjal merged 3 commits into
masterfrom
bot/upstream-bump-20260824

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 24, 2026

Copy link
Copy Markdown

Automated weekly upstream bump.

  • curl 8.5.0 -> 8.21.0
  • tmux 3.4 -> 3.7c
  • dropbear 2022.82 -> 2026.94
  • es-dump 0.0.1 -> 1.0.7

Each binary was rebuilt from source in its Dockerfile
(build//Dockerfile) and smoke-tested before landing here.

Packaging per binary:

  • curl, tmux: stripped + UPX-packed.
  • dropbear (x64 + ARMv7): stripped + UPX-packed.
  • es-dump: Go binary, linked -s -w (already stripped); UPX
    declines to pack it, so it ships static-stripped but unpacked.

Follow-up fixes on this branch

Review of the first push caught two build defects, now fixed:

  1. curl was not actually static. It linked dynamically against
    libssl.so.3/libcrypto.so.3 (file misreported it as static
    because UPX had stripped the section headers) and failed to run
    without those libs. libtool swallows a plain LDFLAGS=-static;
    fixed with curl_LDFLAGS=-all-static + PKG_CONFIG="pkg-config --static". Rebuilt curl is genuinely static (0 NEEDED, runs
    standalone: curl 8.21.0 ... OpenSSL/3.3.7).
  2. ARM dropbear shipped unstripped and unpacked. The generator ran
    the host x86_64 strip over ARM ELF, which errored and (via a shared
    || echo tail) silently skipped UPX for x64 too. Fixed to strip ARM
    with arm-linux-musleabihf-strip and isolate the tolerant UPX step.
    All 10 dropbear binaries are now stripped + packed (upx -t OK).

Reviewer checklist:

  • spot-check one binary locally (./scripts/build.sh <tool> --extract)
  • sizes look sane vs previous commit

mosajjal and others added 2 commits August 24, 2026 12:45
The 8.21.0 bump shipped a curl that was dynamically linked against
libssl.so.3/libcrypto.so.3 (musl PIE), despite the "clean static link"
intent. file(1) misreported it as static only because UPX had stripped
the section headers.

Cause: libtool swallows a plain LDFLAGS=-static and links the exe
dynamically. Fix uses libtool's own curl_LDFLAGS=-all-static, moves
LDFLAGS=-static to configure, and adds PKG_CONFIG=--static so OpenSSL
3's private transitive deps resolve.

Rebuilt x64/curl is now a genuine static binary (no NEEDED entries,
runs standalone: curl 8.21.0 ... OpenSSL/3.3.7).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The dropbear ARM binaries shipped unstripped, carrying debug_info, and
UPX-unpacked. Root cause was in scripts/gen_dockerfiles.py: the pack
step ran the host x86_64 strip over ARM ELF too, which errors with
"Unable to recognise the format". Because strip and upx shared one
trailing "|| echo upx failed", that error was both swallowed and
short-circuited the whole && chain, so upx never ran, leaving even the
x64 binaries unpacked.

Fix _collect_and_pack to:
  - strip x64 with host strip, ARM with arm-linux-musleabihf-strip
  - skip strip for Go (already linked -s -w)
  - wrap upx in a subshell so its || guards only upx, letting a real
    strip failure abort the build instead of hiding it

Rebuilt dropbear: all 10 binaries now stripped and UPX-packed (arm
~3x smaller), integrity verified with upx -t. Regenerated the curl,
tmux, dropbear, es-dump Dockerfiles from the updated generator.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mosajjal
mosajjal merged commit 8fbd5f7 into master Aug 24, 2026
1 check passed
@mosajjal
mosajjal deleted the bot/upstream-bump-20260824 branch August 24, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant