oxidecomputer / oxidecomputer/helios

`helios-build onu` could be more helpful if asked to package non-built bits

Open
#172 0 comments 0 reactions 1 assignee View on GitHub

@iximeow is already working on this.

Since Aug 20, 2024.

Dominant language
Rust
Stars
481
Forks
21
Avg merge
1d 17h
Merged PRs (30d)
2

Description

i built a debug illumos and tried to install it, which went like this:

root@helios:/rpool/devel/oxide/helios# ./tools/helios-build/target/release/helios-build onu -t $(cd projects/illumos/; git describe --long --all HEAD)   
Aug 20 17:52:26.552 INFO creating temporary repository...
Aug 20 17:52:26.552 INFO repository /rpool/devel/oxide/helios/tmp/onu/repo.redist exists, removing first
Aug 20 17:52:27.551 INFO exec: ["/usr/bin/pkgrepo", "create", "/rpool/devel/oxide/helios/tmp/onu/repo.redist"], pwd: None
Aug 20 17:52:27.860 INFO exec: ["/usr/bin/pkgrepo", "add-publisher", "-s", "/rpool/devel/oxide/helios/tmp/onu/repo.redist", "on-nightly"], pwd: None
Aug 20 17:52:28.167 INFO repository /rpool/devel/oxide/helios/tmp/onu/repo.redist for publisher on-nightly created
Aug 20 17:52:28.167 INFO transforming packages for installation...
Aug 20 17:52:28.167 INFO exec: ["/usr/bin/pkgrecv", "-s", "/rpool/devel/oxide/helios/projects/illumos/packages/i386/nightly-nd/repo.redist", "-d", "/rpool/devel/oxide/helios/tmp/onu/repo.redist", "--mog-file", "/rpool/devel/oxide/helios/packages/os-conflicts.mogrify", "--mog-file", "/rpool/devel/oxide/helios/packages/os-deps.mogrify", "-m", "latest", "*"], pwd: None
Aug 20 17:52:28.406 INFO E| pkgrecv: file protocol error: code: E_HTTP_NOT_FOUND (22) reason: The path '/rpool/devel/oxide/helios/projects/illumos/packages/i386/nightly-nd/repo.redist' does not contain a valid package repository.
Aug 20 17:52:28.406 INFO E| Repository URL: 'file:///rpool/devel/oxide/helios/projects/illumos/packages/i386/nightly-nd/repo.redist'.
Error: exec ["/usr/bin/pkgrecv", "-s", "/rpool/devel/oxide/helios/projects/illumos/packages/i386/nightly-nd/repo.redist", "-d", "/rpool/devel/oxide/helios/tmp/onu/repo.redist", "--mog-file", "/rpool/devel/oxide/helios/packages/os-conflicts.mogrify", "--mog-file", "/rpool/devel/oxide/helios/packages/os-deps.mogrify", "-m", "latest", "*"]: failed ExitStatus(unix_wait_status(256))

indeed, packages/i386/nightly-nd does not exist! i've only built debug. it would be nice if helios-build could take a guess that it was giving pkgrecv a bogus path.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.