f31522130f
Build system (5 gaps hardened): - COOKBOOK_OFFLINE defaults to true (fork-mode) - normalize_patch handles diff -ruN format - New 'repo validate-patches' command (25/25 relibc patches) - 14 patched Qt/Wayland/display recipes added to protected list - relibc archive regenerated with current patch chain Boot fixes (fixable): - Full ISO EFI partition: 16 MiB → 1 MiB (matches mini, BIOS hardcoded 2 MiB offset) - D-Bus system bus: absolute /usr/bin/dbus-daemon path (was skipped) - redbear-sessiond: absolute /usr/bin/redbear-sessiond path (was skipped) - daemon framework: silenced spurious INIT_NOTIFY warnings for oneshot_async services (P0-daemon-silence-init-notify.patch) - udev-shim: demoted INIT_NOTIFY warning to INFO (expected for oneshot_async) - relibc: comprehensive named semaphores (sem_open/close/unlink) replacing upstream todo!() stubs - greeterd: Wayland socket timeout 15s → 30s (compositor DRM wait) - greeter-ui: built and linked (header guard unification, sem_compat stubs removed) - mc: un-ignored in both configs, fixed glib/libiconv/pcre2 transitive deps - greeter config: removed stale keymapd dependency from display/greeter services - prefix toolchain: relibc headers synced, _RELIBC_STDLIB_H guard unified Unfixable (diagnosed, upstream): - i2c-hidd: abort on no-I2C-hardware (QEMU) — process::exit → relibc abort - kded6/greeter-ui: page fault 0x8 — Qt library null deref - Thread panics fd != -1 — Rust std library on Redox - DHCP timeout / eth0 MAC — QEMU user-mode networking - hwrngd/thermald — no hardware RNG/thermal in VM - live preload allocation — BIOS memory fragmentation, continues on demand
61 lines
2.2 KiB
PowerShell
61 lines
2.2 KiB
PowerShell
# Copied from mesa, big kudos
|
|
#
|
|
# https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/.gitlab-ci/windows/mesa_container.ps1
|
|
# https://gitlab.freedesktop.org/mesa/mesa/-/blob/34e3e164936d1d3cef267da7780e87f062fedf39/.gitlab-ci/windows/mesa_container.ps1
|
|
|
|
# Implements the equivalent of ci-templates container-ifnot-exists, using
|
|
# Docker directly as we don't have buildah/podman/skopeo available under
|
|
# Windows, nor can we execute Docker-in-Docker
|
|
$registry_uri = $args[0]
|
|
$registry_username = $args[1]
|
|
$registry_password = $args[2]
|
|
$registry_user_image = $args[3]
|
|
$registry_central_image = $args[4]
|
|
$dockerfile = $args[5]
|
|
|
|
docker --config "windows-docker.conf" login -u "$registry_username" -p "$registry_password" "$registry_uri"
|
|
if (!$?) {
|
|
Write-Host "docker login failed to $registry_uri"
|
|
Exit 1
|
|
}
|
|
|
|
# if the image already exists, don't rebuild it
|
|
docker --config "windows-docker.conf" pull "$registry_user_image"
|
|
if ($?) {
|
|
Write-Host "User image $registry_user_image already exists; not rebuilding"
|
|
docker --config "windows-docker.conf" logout "$registry_uri"
|
|
Exit 0
|
|
}
|
|
|
|
# if the image already exists upstream, copy it
|
|
docker --config "windows-docker.conf" pull "$registry_central_image"
|
|
if ($?) {
|
|
Write-Host "Copying central image $registry_central_image to user image $registry_user_image"
|
|
docker --config "windows-docker.conf" tag "$registry_central_image" "$registry_user_image"
|
|
docker --config "windows-docker.conf" push "$registry_user_image"
|
|
$pushstatus = $?
|
|
docker --config "windows-docker.conf" logout "$registry_uri"
|
|
if (!$pushstatus) {
|
|
Write-Host "Pushing image to $registry_user_image failed"
|
|
Exit 1
|
|
}
|
|
Exit 0
|
|
}
|
|
|
|
Write-Host "No image found at $registry_user_image or $registry_central_image; rebuilding"
|
|
docker --config "windows-docker.conf" build $DOCKER_BUILD_ARGS --no-cache -t "$registry_user_image" -f "$dockerfile" "./tools/docker/windows"
|
|
if (!$?) {
|
|
Write-Host "Container build failed"
|
|
docker --config "windows-docker.conf" logout "$registry_uri"
|
|
Exit 1
|
|
}
|
|
Get-Date
|
|
|
|
docker --config "windows-docker.conf" push "$registry_user_image"
|
|
$pushstatus = $?
|
|
docker --config "windows-docker.conf" logout "$registry_uri"
|
|
if (!$pushstatus) {
|
|
Write-Host "Pushing image to $registry_user_image failed"
|
|
Exit 1
|
|
}
|