Skip to content

Re-introduce statically linked builds#186

Draft
samcday wants to merge 18 commits intomainfrom
back2static
Draft

Re-introduce statically linked builds#186
samcday wants to merge 18 commits intomainfrom
back2static

Conversation

@samcday
Copy link
Owner

@samcday samcday commented Mar 15, 2026

No description provided.

samcday added 5 commits March 15, 2026 11:07
git-subtree-dir: phosh
git-subtree-split: 62fde093044d90b82154e68a39feb8e6ea967ef5
git-subtree-dir: libphosh-rs
git-subtree-split: 5a356759a8f087263c0656d6a11dce2e76cab551
Switch phrog to the vendored libphosh-rs path dependency with static linking enabled by default so local and packaged builds stop depending on a system libphosh install. Update the vendored static build path and packaging/docs to match current phosh schema naming and build requirements.

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday samcday marked this pull request as draft March 15, 2026 01:19
@samcday
Copy link
Owner Author

samcday commented Mar 15, 2026

Keeping this as a draft until v0.53.0 is kicked out the door.

samcday added 4 commits March 15, 2026 12:37
Mark generated files to skip rustfmt where possible and align generated subclass/sys sources with current rustfmt output so cargo fmt --all --check passes. Also silence newly-unused import warnings in libphosh-sys so CI builds with -Dwarnings succeed.

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
Keep static vendored builds as the default locally, but avoid forcing internal Meson builds on GitHub Actions where a compatible system libphosh is already preinstalled in the CI image. This keeps CI green while still allowing explicit override via PHROG_LIBPHOSH_BUILD_INTERNAL.

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday samcday added debs Build `.deb` packages for this PR apk Build Alpine .apk packages labels Mar 16, 2026
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

debhelper-compat (= 13),
dh-cargo,
meson,
ninja-build,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slop? think we only need meson here

printf 'deb-src http://deb.debian.org/debian unstable main\n' > /etc/apt/sources.list.d/debian-src.list
apt-get update
eatmydata apt-get -y --no-install-recommends \
build-dep phosh
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be ./phosh, no? I think the current case will use the metadata from repo rather than our vendored tree.

We should also add a apt-get build-dep for ./libphosh-rs, maybe?

Comment on lines +78 to +85
python3 - <<'PY'
import subprocess

output = subprocess.check_output(["ldd", "target/debug/phrog"], text=True)
print(output)
if "libphosh" in output:
raise SystemExit("phrog is dynamically linked against libphosh")
PY
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad slop - just use bash here gat dang

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Signed-off-by: Sam Day <me@samcday.com>
Assisted-by: gpt-5.1-codex
@samcday
Copy link
Owner Author

samcday commented Mar 16, 2026

/packit build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

apk Build Alpine .apk packages debs Build `.deb` packages for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant