From 1fc364d20ea5c690af228300fdda8a29ed5cf376 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Wed, 4 Mar 2026 09:18:07 +0100 Subject: [PATCH 1/8] update linux packages --- .github/codecov.yml | 4 ++-- .github/workflows/linux.yml | 13 +++++++++++-- .github/workflows/rust.yml | 4 ++-- packaging/archlinux/PKGBUILD | 2 +- packaging/gentoo/app-misc/lsu/lsu-9999.ebuild | 11 ++++++----- 5 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index 393229f..f475d77 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -6,9 +6,9 @@ coverage: project: default: target: 100% - threshold: 10% + threshold: 0% patch: default: target: 100% - threshold: 10% + threshold: 0% diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 36bca0c..b0980df 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -79,9 +79,18 @@ jobs: mkdir -p /etc/portage/package.accept_keywords printf "=app-misc/lsu-9999 **\n" > /etc/portage/package.accept_keywords/localrepo - - name: Validate ebuild and resolve install plan + - name: Generate manifest run: | FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ ebuild /var/db/repos/localrepo/app-misc/lsu/lsu-9999.ebuild manifest + + - name: Install Rust toolchain + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal + echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}" + + - name: Build ebuild from local checkout + run: | + EGIT_REPO_URI="file://${GITHUB_WORKSPACE}" \ FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ - emerge -pv =app-misc/lsu-9999 + ebuild /var/db/repos/localrepo/app-misc/lsu/lsu-9999.ebuild fetch unpack compile diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0a54f57..3a54462 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -54,8 +54,8 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - - name: Generate lcov coverage - run: cargo llvm-cov --workspace --lcov --output-path lcov.info + - name: Generate lcov coverage and enforce gate + run: cargo llvm-cov --all-targets --all-features --workspace --fail-under-lines 100 --fail-under-functions 100 --lcov --output-path lcov.info - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/packaging/archlinux/PKGBUILD b/packaging/archlinux/PKGBUILD index 5c1856b..2194246 100644 --- a/packaging/archlinux/PKGBUILD +++ b/packaging/archlinux/PKGBUILD @@ -6,7 +6,7 @@ pkgname=lsu-git pkgver=0.1.2.r0.gcabd0cc pkgrel=1 pkgdesc="Terminal UI for systemd services and latest journal lines" -arch=('x86_64') +arch=('x86_64' 'aarch64' 'armv7h' 'armv6h') url="https://github.com/l5yth/lsu" license=('Apache') options=('!debug') diff --git a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild index a885b1b..22d220c 100644 --- a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild +++ b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild @@ -16,10 +16,7 @@ IUSE="" PROPERTIES="live" RDEPEND=" - || ( - sys-apps/systemd - sys-apps/systemd-utils - ) + sys-apps/systemd " BDEPEND=" dev-lang/rust @@ -31,7 +28,11 @@ src_unpack() { } src_compile() { - cargo_src_compile --bin lsu + cargo_src_compile --locked --bin lsu +} + +src_test() { + cargo_src_test --locked --all-features } src_install() { From a226a43fb948ce7aa6af96efea15661b4c757985 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Wed, 4 Mar 2026 10:03:36 +0100 Subject: [PATCH 2/8] address review comments --- .github/workflows/linux.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b0980df..0091886 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -86,11 +86,15 @@ jobs: - name: Install Rust toolchain run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal - echo "${HOME}/.cargo/bin" >> "${GITHUB_PATH}" + FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ + emerge --oneshot dev-lang/rust-bin + + - name: Validate dependency resolution + run: | + FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ + emerge -pv =app-misc/lsu-9999 - - name: Build ebuild from local checkout + - name: Build ebuild run: | - EGIT_REPO_URI="file://${GITHUB_WORKSPACE}" \ FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ ebuild /var/db/repos/localrepo/app-misc/lsu/lsu-9999.ebuild fetch unpack compile From 06bcaca6fefb3181b2c3d188b6731cafd03f0ebb Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Wed, 4 Mar 2026 10:52:36 +0100 Subject: [PATCH 3/8] address review comments --- .github/workflows/linux.yml | 2 +- packaging/gentoo/app-misc/lsu/lsu-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 0091886..25941da 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -97,4 +97,4 @@ jobs: - name: Build ebuild run: | FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ - ebuild /var/db/repos/localrepo/app-misc/lsu/lsu-9999.ebuild fetch unpack compile + ebuild /var/db/repos/localrepo/app-misc/lsu/lsu-9999.ebuild fetch unpack compile test diff --git a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild index 22d220c..b1054ae 100644 --- a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild +++ b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild @@ -19,7 +19,7 @@ RDEPEND=" sys-apps/systemd " BDEPEND=" - dev-lang/rust + virtual/rust " src_unpack() { From 44809bd17e8906d89eef8a36832a40d3b4baf7cd Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Wed, 4 Mar 2026 11:05:58 +0100 Subject: [PATCH 4/8] address review comments --- .github/workflows/rust.yml | 2 +- packaging/gentoo/app-misc/lsu/lsu-9999.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3a54462..d1be625 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -55,7 +55,7 @@ jobs: uses: taiki-e/install-action@cargo-llvm-cov - name: Generate lcov coverage and enforce gate - run: cargo llvm-cov --all-targets --all-features --workspace --fail-under-lines 100 --fail-under-functions 100 --lcov --output-path lcov.info + run: cargo llvm-cov --all-features --workspace --fail-under-lines 100 --fail-under-functions 100 --lcov --output-path lcov.info - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 diff --git a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild index b1054ae..9b97d6b 100644 --- a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild +++ b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild @@ -19,7 +19,7 @@ RDEPEND=" sys-apps/systemd " BDEPEND=" - virtual/rust + || ( dev-lang/rust dev-lang/rust-bin ) " src_unpack() { From 26c6fdb6a4dc5ec7a654debc7171f6103bf9feca Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Wed, 4 Mar 2026 16:01:25 +0100 Subject: [PATCH 5/8] address review comments --- .github/codecov.yml | 5 ++--- .github/workflows/rust.yml | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/codecov.yml b/.github/codecov.yml index f475d77..fdb7806 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -6,9 +6,8 @@ coverage: project: default: target: 100% - threshold: 0% + threshold: 10% patch: default: target: 100% - threshold: 0% - + threshold: 10% diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d1be625..dc97ccc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -54,8 +54,8 @@ jobs: - name: Install cargo-llvm-cov uses: taiki-e/install-action@cargo-llvm-cov - - name: Generate lcov coverage and enforce gate - run: cargo llvm-cov --all-features --workspace --fail-under-lines 100 --fail-under-functions 100 --lcov --output-path lcov.info + - name: Generate lcov coverage + run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 From 93b7770ab0304b022200b31f1de50c9aeb063b70 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Thu, 5 Mar 2026 09:44:57 +0100 Subject: [PATCH 6/8] address review comments --- .github/workflows/linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 25941da..1b12e1d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -32,7 +32,7 @@ jobs: ebuild: runs-on: ubuntu-latest container: - image: gentoo/stage3:latest + image: gentoo/stage3:systemd steps: - name: Checkout @@ -53,7 +53,7 @@ jobs: emerge --sync --quiet if [ ! -L /etc/portage/make.profile ]; then - profile_path="$(find /var/db/repos/gentoo/profiles/default/linux/amd64 -type f -name make.defaults | head -n1)" + profile_path="$(find /var/db/repos/gentoo/profiles/default/linux/amd64 -path '*/systemd*' -name make.defaults | head -n1)" if [ -n "${profile_path}" ]; then ln -snf "$(dirname "${profile_path}")" /etc/portage/make.profile fi From 2824aec68d634c2fc9c7b268204b97c658fc9f99 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:44:21 +0100 Subject: [PATCH 7/8] address review comments --- .github/workflows/linux.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 1b12e1d..2d7d846 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -84,10 +84,10 @@ jobs: FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ ebuild /var/db/repos/localrepo/app-misc/lsu/lsu-9999.ebuild manifest - - name: Install Rust toolchain + - name: Install build dependencies run: | FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox -mount-sandbox -usersandbox -userpriv" \ - emerge --oneshot dev-lang/rust-bin + emerge --oneshot dev-vcs/git dev-lang/rust-bin - name: Validate dependency resolution run: | From adf7df0f268b0903f95cd492e94d98220b154a65 Mon Sep 17 00:00:00 2001 From: l5y <220195275+l5yth@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:59:30 +0100 Subject: [PATCH 8/8] address review comments --- .github/workflows/linux.yml | 7 ------- packaging/archlinux/PKGBUILD | 2 +- packaging/gentoo/app-misc/lsu/lsu-9999.ebuild | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 2d7d846..8e9bfff 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -52,13 +52,6 @@ jobs: mkdir -p /var/db/repos/gentoo emerge --sync --quiet - if [ ! -L /etc/portage/make.profile ]; then - profile_path="$(find /var/db/repos/gentoo/profiles/default/linux/amd64 -path '*/systemd*' -name make.defaults | head -n1)" - if [ -n "${profile_path}" ]; then - ln -snf "$(dirname "${profile_path}")" /etc/portage/make.profile - fi - fi - - name: Configure local overlay run: | mkdir -p /var/db/repos/localrepo/{metadata,profiles,app-misc/lsu} diff --git a/packaging/archlinux/PKGBUILD b/packaging/archlinux/PKGBUILD index 2194246..6d5714c 100644 --- a/packaging/archlinux/PKGBUILD +++ b/packaging/archlinux/PKGBUILD @@ -6,7 +6,7 @@ pkgname=lsu-git pkgver=0.1.2.r0.gcabd0cc pkgrel=1 pkgdesc="Terminal UI for systemd services and latest journal lines" -arch=('x86_64' 'aarch64' 'armv7h' 'armv6h') +arch=('x86_64' 'aarch64' 'armv7h' 'armv6l') url="https://github.com/l5yth/lsu" license=('Apache') options=('!debug') diff --git a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild index 9b97d6b..cd612dc 100644 --- a/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild +++ b/packaging/gentoo/app-misc/lsu/lsu-9999.ebuild @@ -19,6 +19,7 @@ RDEPEND=" sys-apps/systemd " BDEPEND=" + dev-vcs/git || ( dev-lang/rust dev-lang/rust-bin ) "