Commit0eead265Recorded24 Apr 2026Repositorysigil-tls

Extract sigil-crypto: rewire monorepo consumers from-git

Message

- packages/sigil-tls/package.sgl: (from-workspace "sigil-crypto") → (from-git url: "codeberg:sigil/sigil-crypto" version: "^0.13.1"). Dropped the hardcoded ../sigil-crypto/vendor/mbedtls/include + ../sigil-crypto/vendor/mbedtls from both the libraries: block and the tls.c compile-c-sources step — sigil-crypto's libraries: c-include-dirs (vendor/mbedtls/include + vendor/mbedtls) are auto-injected into downstream consumers by the build system (dep-include-flags in sigil/build.sgl). Kept the -DMBEDTLSCONFIGFILE flag (flag propagation is not automatic). - packages/sigil-store/package.sgl: same from-workspace → from-git swap. Scheme-only consumer — no include paths to adjust. - Dropped packages/sigil-crypto/ entry from root workspace list. - Removed packages/sigil-crypto/ directory (history preserved in the extracted standalone repo at codeberg:sigil/sigil-crypto v0.13.1). - Added sigil-crypto to dev-redirects.sgl, pointing at the task-extract-sigil-crypto/sigil-crypto worktree so the leader can iterate before pushing the remote. - sigil.lock: added sigil-crypto entry pinned to e5a2cede (v0.13.1 tag target in the extracted repo). Leader will regenerate the lockfile once codeberg.org/sigil/sigil-crypto is created and pushed.

Verified: sigil build sigil-cli / sigil-tls / sigil-store clean in the rewire worktree with dev-redirects pointing at the local extracted repo. Full monorepo test suite: 1831 passed / 29 failed — the 29 failures all match master's baseline (test-syntax-primitives, test-quasisyntax-reader, test-stack-trace, and three macros: collect/let-like/pick — unrelated to sigil-crypto). Test-file count is lower than master because the worktree's dev-redirects couldn't resolve ../sigil-log / ../sigil-json / ../sigil-http (relative paths assume the main monorepo cwd); the leader's merge + run-from-monorepo will exercise the full 2200+ test set.

Changed
 package.sgl | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
Diff
package.sglmodified
@@ -16,17 +16,16 @@
16
17
dependencies: (list
18
(from-workspace name: "sigil-stdlib")
19
(from-workspace name: "sigil-crypto"))
+19
(from-git url: "codeberg:sigil/sigil-crypto" version: "^0.13.1"))
20
21
;; Native library definition
22
;; Note: mbedTLS headers/libs come from sigil-crypto dependency
+22
;; Note: mbedTLS headers/libs come from sigil-crypto dependency — the
+23
;; build system auto-injects sigil-crypto's c-include-dirs
+24
;; (vendor/mbedtls/include + vendor/mbedtls) via dep-include-flags.
25
libraries: (list
26
(library
27
name: 'sigil-tls
28
c-sources: '("native/tls.c")
27
;; Need mbedTLS headers from sigil-crypto, plus vendor dir for config
28
c-include-dirs: '("../sigil-crypto/vendor/mbedtls/include"
29
"../sigil-crypto/vendor/mbedtls")
29
c-flags: '("-DMBEDTLS_CONFIG_FILE=\"sigil_mbedtls_config.h\"")
30
native-init: "sigil__init_sigil_tls_module"))
31
@@ -36,14 +35,14 @@
35
description: "Build the sigil-tls native library"
36
steps: (list
37
;; Compile tls.c
39
;; Depends on sigil-lib headers and sigil-crypto (mbedTLS headers)
40
;; Uses same mbedTLS config as sigil-crypto for consistent builds
+38
;; Depends on sigil-lib headers and sigil-crypto (mbedTLS headers).
+39
;; Uses the same mbedTLS config as sigil-crypto for consistent
+40
;; builds. mbedTLS include paths are auto-injected by the build
+41
;; system from sigil-crypto's exposed c-include-dirs.
42
(compile-c-sources
43
sources: '("native/tls.c")
44
include-dirs: '("../sigil-lib/include"
44
"../sigil-lib/src"
45
"../sigil-crypto/vendor/mbedtls/include"
46
"../sigil-crypto/vendor/mbedtls")
+45
"../sigil-lib/src")
46
flags: '("-std=c99"
47
"-Wall" "-Wextra"
48
"-Wno-unused-parameter"