Skip to content

Remove the vestigial include/libhc submodule gitlink - #14

Merged
lacraig2 merged 1 commit into
masterfrom
remove-libhc-gitlink
Jul 31, 2026
Merged

Remove the vestigial include/libhc submodule gitlink#14
lacraig2 merged 1 commit into
masterfrom
remove-libhc-gitlink

Conversation

@lacraig2

Copy link
Copy Markdown

The flake supplies hypercall.h from its own libhc input (mk-busybox.nix drops it into include/libhc/ during postPatch), so the .gitmodules entry and the include/libhc gitlink have been dead weight since the self-building flake landed.

They're also actively harmful downstream: a codeload tarball of this repo packs the gitlink in a way registry proxies can repack differently from a plain fetch, giving an environment-dependent narHash. That's why penguin currently pins busybox via git+https://...?ref=refs/tags/vX&rev=...&submodules=1 instead of a plain github:rehosting/busybox/<tag> input like the other guest tools.

Verified: nix build .#dist from this tree cross-builds all arches (static musl binaries, spot-checked armel = ELF 32-bit LSB ARM).

Follow-up after merge + next version tag: switch penguin's busybox flake input to the plain github: tag pin and drop the git+https workaround.

The flake supplies hypercall.h from its own libhc input (mk-busybox.nix
drops it into include/libhc/ during postPatch), so the submodule has
been dead weight since the self-building flake landed. It is also
actively harmful downstream: a codeload tarball of this repo packs the
gitlink in a way registry proxies can repack differently from a plain
fetch, giving an environment-dependent narHash -- which forces penguin
to pin busybox via git+https...&submodules=1 instead of a plain
github:rehosting/busybox/<tag> flake input.

Verified: nix build .#dist from this tree cross-builds all arches
(static musl binaries, spot-checked armel).
@lacraig2
lacraig2 merged commit eeba468 into master Jul 31, 2026
1 check passed
@lacraig2
lacraig2 deleted the remove-libhc-gitlink branch July 31, 2026 15:13
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