diff --git a/LAYERED-KDE.md b/LAYERED-KDE.md index 3a87b13..c06d047 100644 --- a/LAYERED-KDE.md +++ b/LAYERED-KDE.md @@ -11,6 +11,15 @@ KDE assets require the Core CLI to match the current executable and require a KDE update ref in the Core's update profile. Reusing a pre-KDE Core is rejected. Discover runtime must be exactly `6.8.2-1`, matching the pinned plugin adapter. +The first KDE transaction found no `plasma-setup` package in the selected mirror. +The pipeline therefore packages upstream 6.8.2 from its checksum-pinned release +archive using `packages/plasma-setup/PKGBUILD` inside the isolated worker. Its +archive is passed to Core via `ARCHIPELAGO_PLASMA_SETUP_PACKAGE`, signed and included +in the local package repository **before** snapshot identity is captured. Core does +not install it; KDE installs it from that same repository. The source archive, +recipe, binary checksum and build package inventory are retained. This private +package path still requires compilation and installed onboarding acceptance. + Native first boot uses upstream Plasma Setup and SDDM. The installed-only drop-in preserves upstream ordering and conditions. SDDM's greeter uses the packaged KWin Wayland compositor. A timer observes `/etc/plasma-setup-done` and a local SDDM @@ -28,7 +37,9 @@ separate booted/pending labels. ## Verification status Implementation source added 2026-11-06 while the existing Core/GNOME cycle runs. -No KDE compile, build or runtime check has yet run. The first pipeline must verify +Discover compilation passed in cycle `20261106T204739Z`; KDE image construction +stopped at the missing Plasma Setup package. No KDE runtime check has yet run. +The first completed pipeline must verify the plugin ABI, actual Plasma Setup/SDDM handoff, subordinate-ID provisioning, native application integration and the Flatpak/runtime closure. Its UI action profile must be calibrated against the actual first image; a missing profile diff --git a/adapters/build-iso.sh b/adapters/build-iso.sh index c4e87d8..c3e56aa 100644 --- a/adapters/build-iso.sh +++ b/adapters/build-iso.sh @@ -63,6 +63,10 @@ if [[ -n ${ARCHIPELAGO_DISCOVER_PLUGIN:-} ]]; then sha256sum "$work/discover-plugin.so" > "$work/discover-plugin.sha256" fi if [[ -n ${ARCHIPELAGO_FLATPAK_POLICY:-} ]]; then cp "$ARCHIPELAGO_FLATPAK_POLICY" "$work/flatpak-policy.json"; fi +if [[ -n ${ARCHIPELAGO_PLASMA_SETUP_PACKAGE:-} ]]; then + cp "$ARCHIPELAGO_PLASMA_SETUP_PACKAGE" "$work/plasma-setup.pkg.tar.zst" + sha256sum "$work/plasma-setup.pkg.tar.zst" > "$work/plasma-setup-input.sha256" +fi grep -q '^DisableSandbox' "$toolroot/etc/pacman.conf" || sed -i '/\[options\]/a DisableSandbox\nNoProgressBar' "$toolroot/etc/pacman.conf" install -m755 "$binary" "$work/archipelago" printf '%s\n' "$profile" > "$work/build-profile" diff --git a/adapters/gnome-layer.sh b/adapters/gnome-layer.sh index fd7b343..1696bdb 100644 --- a/adapters/gnome-layer.sh +++ b/adapters/gnome-layer.sh @@ -50,7 +50,14 @@ mkdir -p "$stage/var/cache/pacman/pkg" mount --bind "$stage" "$stage" trap 'umount "$stage/var/cache/pacman/pkg" 2>/dev/null || true; umount "$stage" 2>/dev/null || true' EXIT mount --bind /var/cache/pacman/pkg "$stage/var/cache/pacman/pkg" +# Local repository packages are part of the Core snapshot too. Expose its exact +# signed bytes at the file:// URL used by the preserved target pacman configuration. +test ! -e "$stage/job" +mkdir -p "$stage/job/package-repo" +cp -a /job/package-repo/. "$stage/job/package-repo/" arch-chroot "$stage" pacman -S --needed --noconfirm -- "${desktop_packages[@]}" 2>&1 | tee /job/evidence/purpose-transaction.log +rm -rf "$stage/job/package-repo" +rmdir "$stage/job" umount "$stage/var/cache/pacman/pkg" umount "$stage" trap - EXIT diff --git a/adapters/package.sh b/adapters/package.sh index b34b8cf..4560180 100644 --- a/adapters/package.sh +++ b/adapters/package.sh @@ -157,6 +157,14 @@ chown -R package-builder:package-builder "$pkg" runuser -u package-builder -- env SOURCE_DATE_EPOCH=0 /bin/bash -ec 'cd /job/package; makepkg --noconfirm' mkdir -p /job/package-repo cp "$pkg"/archipelago-*.pkg.tar.zst /job/package-repo/ +if [[ -f /job/plasma-setup.pkg.tar.zst ]]; then + bsdtar -xOf /job/plasma-setup.pkg.tar.zst .PKGINFO > /job/evidence/plasma-setup.PKGINFO + grep -qx 'pkgname = plasma-setup' /job/evidence/plasma-setup.PKGINFO + grep -qx 'pkgver = 6.8.2-1' /job/evidence/plasma-setup.PKGINFO + grep -qx 'arch = x86_64' /job/evidence/plasma-setup.PKGINFO + cp /job/plasma-setup.pkg.tar.zst /job/package-repo/plasma-setup-6.8.2-1-x86_64.pkg.tar.zst + cp /job/plasma-setup-input.sha256 /job/evidence/ +fi if [[ ${ARCHIPELAGO_BUILD_PROFILE:-core} == gnome-probe && -f /job/toolbox-probe.pkg.tar.zst ]]; then bsdtar -xOf /job/toolbox-probe.pkg.tar.zst .PKGINFO > /job/evidence/toolbox-probe.PKGINFO grep -qx 'pkgname = toolbox' /job/evidence/toolbox-probe.PKGINFO diff --git a/packages/plasma-setup/PKGBUILD b/packages/plasma-setup/PKGBUILD new file mode 100644 index 0000000..f141fef --- /dev/null +++ b/packages/plasma-setup/PKGBUILD @@ -0,0 +1,26 @@ +# Private Archipelago package for the upstream component absent from our mirror. +pkgname=plasma-setup +pkgver=6.8.2 +pkgrel=1 +pkgdesc='Upstream Plasma first-run setup wizard (Archipelago build)' +arch=(x86_64) +url='https://invent.kde.org/plasma/plasma-setup' +license=(LGPL-2.1-or-later BSD-2-Clause GPL-2.0-or-later) +depends=(glibc gcc-libs kauth kconfig kcoreaddons ki18n kpackage libkscreen + plasma-desktop plasma-workspace plasma-nm kirigami qqc2-desktop-style + qt6-base qt6-declarative qt6-svg accountsservice sddm) +makedepends=(extra-cmake-modules cmake ninja gettext) +source=("https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz") +sha256sums=('d10c2d766e2b1a3afaa70c2995f0abc8eb9ff2da19c9a4e794ae9e89859758d7') + +build() { + cmake -S "$pkgname-$pkgver" -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBEXECDIR=lib -DKDE_INSTALL_LIBDIR=lib \ + -DKDE_INSTALL_SYSCONFDIR=/etc -DBUILD_TESTING=OFF + cmake --build build --parallel 2 +} + +package() { + DESTDIR="$pkgdir" cmake --install build +}