From feee40c34b20b4c4755ae20b22a5c91ebbdeaee1 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Sun, 10 May 2026 20:07:21 -0500 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20HAVE=5FCURL=20verification=20?= =?UTF-8?q?=E2=80=94=20use=20strings=20check=20not=20nm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/stage.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/stage.yaml b/.gitea/workflows/stage.yaml index 994f05f..2c0e010 100644 --- a/.gitea/workflows/stage.yaml +++ b/.gitea/workflows/stage.yaml @@ -176,9 +176,17 @@ jobs: -lcurl -lpthread -ldl -lm -lssl -lcrypto echo "Relinked: $(ls -lh dist/neuron-landing)" - nm dist/neuron-landing | grep -q curl_easy_init \ - && echo "HAVE_CURL verified ✓" \ - || { echo "ERROR: curl_easy_init not in binary — HAVE_CURL link failed"; exit 1; } + # Verification: if compiled WITHOUT HAVE_CURL the stub string + # "not built with HAVE_CURL" is baked into the binary's rodata. + # Its absence confirms curl code is compiled in. + if strings dist/neuron-landing | grep -q 'not built with HAVE_CURL'; then + echo "ERROR: no-curl stub string still in binary — HAVE_CURL not compiled" + exit 1 + fi + # Confirm curl symbols visible in dynamic table + nm -D dist/neuron-landing | grep curl_easy_init || \ + nm dist/neuron-landing | grep curl || true + echo "HAVE_CURL verified ✓" # ── Compile JS client sources ───────────────────────────────────────── -- 2.52.0