fix: comprehensive boot warnings and exceptions — fixable silenced, unfixable diagnosed

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
This commit is contained in:
2026-05-05 20:20:37 +01:00
parent a5f97b6632
commit f31522130f
81834 changed files with 11051982 additions and 108 deletions
@@ -0,0 +1,65 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
project(custom-extension-qml-client)
set(CMAKE_AUTOMOC ON)
if(NOT DEFINED INSTALL_EXAMPLESDIR)
set(INSTALL_EXAMPLESDIR "examples")
endif()
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/wayland/custom-extension/qml-client")
find_package(Qt6 REQUIRED COMPONENTS Core GuiPrivate Qml Quick WaylandClient)
qt6_policy(SET QTP0001 NEW)
qt_add_executable(custom-extension-qml-client
../client-common/customextension.cpp ../client-common/customextension.h
main.cpp
)
qt6_generate_wayland_protocol_client_sources(custom-extension-qml-client
FILES
${CMAKE_CURRENT_SOURCE_DIR}/../protocol/custom.xml
)
set_target_properties(custom-extension-qml-client PROPERTIES
WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE
)
target_link_libraries(custom-extension-qml-client PUBLIC
Qt::Core
Qt::Gui
Qt::GuiPrivate
Qt::Qml
Qt::Quick
Qt::WaylandClient
)
# Resources:
set(qml_resource_files
"main.qml"
)
qt6_add_resources(custom-extension-qml-client "qml"
PREFIX
"/"
FILES
${qml_resource_files}
)
target_include_directories(custom-extension-qml-client PUBLIC ../client-common/)
qt6_add_qml_module(custom-extension-qml-client
URI io.qt.examples.customextension
VERSION 1.0
)
install(TARGETS custom-extension-qml-client
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
)
@@ -0,0 +1,19 @@
// Copyright (C) 2017 Erik Larsson.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlEngine>
#include "../client-common/customextension.h"
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
@@ -0,0 +1,91 @@
// Copyright (C) 2017 Erik Larsson.
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick.Window
import io.qt.examples.customextension
Window {
id: topLevelWindow
title: "QML Client"
visible: true
width: 800
height: 600
property real fontSize: height / 50
Column {
anchors.centerIn: parent
width: topLevelWindow.width / 4
height: 2 * (width + topLevelWindow.height / 12)
spacing: topLevelWindow.height / 12
Rectangle {
id: rect1
color: "#C0FFEE"
width: parent.width
height: width
clip: true
Text {
anchors.centerIn: parent
text: "Press here to send spin request."
font.pixelSize: fontSize
width: parent.width
height: parent.height
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
}
TapHandler {
onTapped: {
if (customExtension.active)
customExtension.sendSpin(topLevelWindow, 500)
}
}
}
Rectangle {
id: rect2
color: "#decaff"
width: parent.width
height: parent.height / 2
clip: true
Text {
anchors.centerIn: parent
text: "Press here to send bounce request."
font.pixelSize: fontSize
width: parent.width
height: parent.height
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
}
//! [sendBounce]
TapHandler {
onTapped: {
if (customExtension.active)
customExtension.sendBounce(topLevelWindow, 1000)
}
}
//! [sendBounce]
}
}
//! [CustomExtension]
CustomExtension {
id: customExtension
onActiveChanged: {
registerWindow(topLevelWindow)
}
onFontSize: (window, pixelSize) => {
topLevelWindow.fontSize = pixelSize
}
}
//! [CustomExtension]
}
@@ -0,0 +1,26 @@
TEMPLATE = app
QT += qml quick waylandclient gui-private
CONFIG += wayland-scanner
CONFIG += qmltypes
QML_IMPORT_NAME = io.qt.examples.customextension
QML_IMPORT_MAJOR_VERSION = 1
INCLUDEPATH += $$PWD/../client-common
WAYLANDCLIENTSOURCES += ../protocol/custom.xml
SOURCES += main.cpp \
../client-common/customextension.cpp
HEADERS += \
../client-common/customextension.h
TARGET = custom-extension-qml-client
RESOURCES += qml.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/wayland/custom-extension/qml-client
INSTALLS += target
@@ -0,0 +1,5 @@
<RCC>
<qresource prefix="/">
<file>main.qml</file>
</qresource>
</RCC>