Skip to content

pkgs/fleet: add openssl/pkgconf inputs to monolithic build path - #16951

Closed
developing-today-fleet[bot] wants to merge 1 commit into
mainfrom
fix/16946-fleet-openssl
Closed

developing-today-fleet[bot] wants to merge 1 commit into
mainfrom
fix/16946-fleet-openssl

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Refs #16946

Problem

pkgs/fleet fails to build on its monolithic (non-crane) buildRustPackage path: openssl-sys reports "Could not find openssl via pkg-config: The pkg-config command could not be found" (builder exit 101). Call sites that pass no craneLib — notably nixos/home/laptop-backups.nix (pkgs.callPackage ../../pkgs/fleet { doCheck = false; }) — hit this branch, which blocks the laptop's NixOS toplevel build and any system switch.

Root cause

The crane path in pkgs/fleet/default.nix sets buildInputs = [ openssl ]; and nativeBuildInputs = [ pkgconf ]; (see #16152: openssl-sys is in every variant's graph and needs pkg-config discovery of a system OpenSSL in the sandbox). The monolithic platform.buildRustPackage branch set neither — it only added OPENSSL_* env vars for the static case.

Fix

Mirror the crane path's inputs into the monolithic branch for the non-static case:

buildInputs = lib.optionals (!static) [ openssl ];
nativeBuildInputs = lib.optionals (!static) [ pkgconf ];

The static (pkgsStatic) variants keep their existing explicit OPENSSL_* env wiring, unchanged.

Verification

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T19:36:55Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 136447d4-3c50-4bbc-8d37-15f2d35cb39f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 1337-B disposition (alpha DRIVE landings, 2026-11-29): closing as SUPERSEDED by PR #16950 (merged 2026-11-29T19:42:48Z, merge commit 09da9b3, issue #16946 closed). Full-diff comparison by this lane: both PRs make the identical functional change to pkgs/fleet/default.nix — buildInputs = lib.optionals (!static) [ openssl ] and nativeBuildInputs = lib.optionals (!static) [ pkgconf ] in the monolithic buildRustPackage branch, static variants untouched; they differ only in comment wording/placement. #16950 was the verified-correct copy (Closes #16946, claimed on the issue by lane 1322-F, verification stated); this PR's verification section was still a placeholder and its head has not moved since creation (bb22144, 19:37:06Z). Nothing in this PR is lost — reopen only if a difference from the merged change is identified. Key: 1337-B

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Status from the fix lane (2026-11-29 ~14:20 CST):

Root cause — confirmed in pkgs/fleet/default.nix on main (ca24c8f8): the crane path sets buildInputs = [ openssl ]; nativeBuildInputs = [ pkgconf ]; (lines 214-215, citing #16152), while the monolithic platform.buildRustPackage branch sets neither — it only adds OPENSSL_* env vars for the static case. Call sites passing no craneLib (e.g. nixos/home/laptop-backups.nix: pkgs.callPackage ../../pkgs/fleet { doCheck = false; }) therefore build with no pkg-config and no OpenSSL in the sandbox, and openssl-sys fails exactly as reported.

Fix — PR #16951 (branch fix/16946-fleet-openssl, commit bb22144f8fef6545ab3328c4b934f25633cd48a7): mirrors the crane inputs into the monolithic branch for the non-static case:

buildInputs = lib.optionals (!static) [ openssl ];
nativeBuildInputs = lib.optionals (!static) [ pkgconf ];

Static variants keep their existing OPENSSL_* env wiring unchanged.

Verification so far — evaluation level (passes): with the exact failing call shape (callPackage pkgs/fleet { doCheck = false; }, .fleet), evaluated against nixpkgs-25 d5cc6833 from this repo's flake.lock:

  • patched: buildInputs = [ "openssl" ], nativeBuildInputs includes pkgconf-wrapper; drv m106jnxqd1q3kl157qrzvcz207qng8a8-fleet-0.1.0.drv
  • unpatched: buildInputs = [ ], no pkgconf; drv syy3m17xcnf1zfdbfxs1jrqzkdij3dcm-fleet-0.1.0.drv

Build verification — BLOCKED, not yet done: the laptop (amd) has been unreachable for ~1 hour (all laptop route tiers fail: Commander HTTP 530, broker tunnel to 100.99.113.103:4799 "Resource temporarily unavailable", SSH closed; the one brief T2 window failed its git fetch with an HTTP2 framing error). fleet actions exec is likewise down (its broker rides the same laptop tunnel, port 4801). The PR is therefore deliberately not merged and this issue stays open until the monolithic fleet build (or the full nixosConfigurations.amd toplevel build) succeeds on the laptop. No system switch was attempted.

Next step when the laptop recovers: in a worktree of fix/16946-fleet-openssl on the laptop, build (pkgs.callPackage ./pkgs/fleet { doCheck = false; }).fleet (detached systemd user unit), then merge PR #16951 and close this issue.

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.

0 participants