Skip to content

Commit 5c9571d

Browse files
fix: Flatpak curl module build failed — no TLS backend selected
Confirmed from a real flatpak-builder CI run (29977207986, build-flatpak): curl's ./configure hard-errors ("select TLS backend(s) or disable TLS with --without-ssl") when no backend is explicitly chosen — it does NOT gracefully auto-detect and fall back to no-TLS the way the manifest's original comment assumed, failing the whole module build. Forced --with-openssl, which org.gnome.Sdk//50 (a full desktop SDK) ships — needed for real HTTPS support (src/native_scraper.zig's biblehub.com fetches use it). Meanwhile in the same run: build-appimage succeeded on its first real CI attempt. build-windows was cancelled (superseded by a subsequent push, not a real failure signal) — retesting separately. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 4ff46e6 commit 5c9571d

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

packaging/com.bytecats.metanoia.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@
108108
# verified" in the accompanying report) — so, same reasoning as
109109
# sqlite3, curl is built from the current upstream release
110110
# (curl-8.21.0.tar.xz, released 2026-06-24, sha256 verified locally)
111-
# rather than assumed. Its ./configure is left to auto-detect whatever
112-
# TLS backend (if any) the SDK provides — NOT forced via
113-
# --with-openssl — so this module still builds successfully even if no
114-
# TLS library is found; the honest, flagged consequence of that
115-
# fallback is that HTTPS (biblehub.com scraping specifically; the
116-
# 127.0.0.1/LAN TTS+Ollama traffic is plain HTTP either way) could
117-
# silently lack support in that scenario. See the report for this
118-
# flagged as a real, unverified gap.
111+
# rather than assumed. UPDATE (confirmed via a real flatpak-builder CI
112+
# run): leaving ./configure to "auto-detect whatever TLS backend the
113+
# SDK provides" does NOT gracefully fall back to no-TLS — it hard-errors
114+
# ("select TLS backend(s) or disable TLS with --without-ssl") and fails
115+
# the whole build. Now forced via --with-openssl, which org.gnome.Sdk
116+
# ships (a full desktop SDK) — needed for real HTTPS support
117+
# (biblehub.com scraping specifically; the 127.0.0.1/LAN TTS+Ollama
118+
# traffic is plain HTTP either way).
119119
#
120120
# ── finish-args ──────────────────────────────────────────────────────────
121121
# Derived from grepping actual runtime behavior in src/, not copied from a
@@ -180,11 +180,17 @@ modules:
180180
- name: curl
181181
buildsystem: simple
182182
build-commands:
183-
# No --with-openssl / --with-gnutls forced — auto-detect whatever's
184-
# available so this module cannot hard-fail the whole build over a
185-
# missing TLS backend. See the manifest header comment for the
186-
# honestly-flagged consequence of this fallback.
187-
- ./configure --prefix=/app --disable-static --without-libpsl --disable-manual
183+
# Confirmed via a real flatpak-builder CI run: NOT forcing a TLS
184+
# backend does not gracefully fall back to no-TLS the way the
185+
# previous comment here assumed — curl's ./configure hard-errors
186+
# ("select TLS backend(s) or disable TLS with --without-ssl") when it
187+
# can't auto-detect one, failing the whole build. org.gnome.Sdk//50
188+
# (a full desktop SDK) ships OpenSSL, so --with-openssl is the
189+
# standard, well-established choice for curl-in-Flatpak — needed for
190+
# real HTTPS support (src/native_scraper.zig's biblehub.com fetches
191+
# use it; the loopback/LAN traffic is plain HTTP and wouldn't need
192+
# this, but the scraper path does).
193+
- ./configure --prefix=/app --disable-static --without-libpsl --disable-manual --with-openssl
188194
- make -j${FLATPAK_BUILDER_N_JOBS:-4}
189195
- make install
190196
sources:

0 commit comments

Comments
 (0)