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,54 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
cmake_minimum_required(VERSION 3.16)
project(tst_qmlsplitlib LANGUAGES CXX)
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()
include(GenerateExportHeader)
qt_add_library(tst_qmlsplitlib_library
lib.h
lib.cpp
)
qt_autogen_tools_initial_setup(tst_qmlsplitlib_library)
target_include_directories(tst_qmlsplitlib_library PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) # find autogenerated header
generate_export_header(tst_qmlsplitlib_library)
target_link_libraries(tst_qmlsplitlib_library Qt::Core Qt::QmlIntegration)
qt_add_library(tst-qmlsplitlib-library-2
lib2.h
lib2.cpp
)
qt_autogen_tools_initial_setup(tst-qmlsplitlib-library-2)
target_include_directories(tst-qmlsplitlib-library-2 PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) # find autogenerated header
generate_export_header(tst-qmlsplitlib-library-2)
target_link_libraries(tst-qmlsplitlib-library-2 Qt::Core Qt::QmlIntegration)
qt_internal_add_test(tst_qmlsplitlib
SOURCES
tst_qmlsplitlib.cpp
LIBRARIES
Qt::Core
Qt::Qml
)
qt_autogen_tools_initial_setup(tst_qmlsplitlib)
qt6_generate_foreign_qml_types(tst_qmlsplitlib_library tst_qmlsplitlib)
qt6_generate_foreign_qml_types(tst-qmlsplitlib-library-2 tst_qmlsplitlib)
qt_policy(SET QTP0001 NEW)
qt6_add_qml_module(tst_qmlsplitlib
URI "SplitLib"
QML_FILES
main.qml
main2.qml
)
target_link_libraries(tst_qmlsplitlib PRIVATE tst_qmlsplitlib_library tst-qmlsplitlib-library-2)
@@ -0,0 +1,5 @@
#include "lib.h"
bool SplitLib::transmogrify() { return true; }
#include "moc_lib.cpp"
@@ -0,0 +1,30 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef SPLITLIB_LIB_H
#define SPLITLIB_LIB_H
#include "tst_qmlsplitlib_library_export.h"
#include <QtQmlIntegration/qqmlintegration.h>
#include <QtCore/qglobal.h>
#include <QObject>
class TST_QMLSPLITLIB_LIBRARY_EXPORT SplitLib : public QObject
{
public:
Q_OBJECT
QML_ELEMENT
Q_INVOKABLE bool transmogrify();
};
class TST_QMLSPLITLIB_LIBRARY_EXPORT Foo : public QObject
{
public:
Q_OBJECT
QML_NAMED_ELEMENT(Bar)
QML_SINGLETON
};
#endif
@@ -0,0 +1,5 @@
#include "lib2.h"
bool SplitLib2::transmogrify() { return true; }
#include "moc_lib2.cpp"
@@ -0,0 +1,30 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef SPLITLIB_LIB2_H
#define SPLITLIB_LIB2_H
#include "tst-qmlsplitlib-library-2_export.h"
#include <QtQmlIntegration/qqmlintegration.h>
#include <QtCore/qglobal.h>
#include <QObject>
class TST_QMLSPLITLIB_LIBRARY_2_EXPORT SplitLib2 : public QObject
{
public:
Q_OBJECT
QML_ELEMENT
Q_INVOKABLE bool transmogrify();
};
class TST_QMLSPLITLIB_LIBRARY_2_EXPORT Foo2 : public QObject
{
public:
Q_OBJECT
QML_NAMED_ELEMENT(Bar2)
QML_SINGLETON
};
#endif
@@ -0,0 +1,8 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import SplitLib
SplitLib {
property string s: Bar.objectName
}
@@ -0,0 +1,8 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import SplitLib
SplitLib2 {
property string s: Bar2.objectName
}
@@ -0,0 +1,7 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QtQml/qqmlextensionplugin.h>
Q_IMPORT_QML_PLUGIN(TimeExamplePlugin)
Q_IMPORT_QML_PLUGIN(BasicExtension)
@@ -0,0 +1,42 @@
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QQmlEngine>
#include <QQmlComponent>
#include <QObject>
#include <qtest.h>
#include "lib.h"
#include "lib2.h"
class tst_splitlib : public QObject
{
Q_OBJECT
private slots:
void verifyComponent();
void verifyComponent2();
};
void tst_splitlib::verifyComponent()
{
QQmlEngine engine;
QQmlComponent c(&engine, QStringLiteral("qrc:/qt/qml/SplitLib/main.qml"));
QVERIFY2(c.isReady(), qPrintable(c.errorString()));
QScopedPointer o(c.create());
QVERIFY(!o.isNull());
auto lib = qobject_cast<SplitLib *>(o.get());
QVERIFY(lib);
}
void tst_splitlib::verifyComponent2()
{
QQmlEngine engine;
QQmlComponent c(&engine, QStringLiteral("qrc:/qt/qml/SplitLib/main2.qml"));
QVERIFY2(c.isReady(), qPrintable(c.errorString()));
QScopedPointer o(c.create());
QVERIFY(!o.isNull());
auto lib = qobject_cast<SplitLib2 *>(o.get());
QVERIFY(lib);
}
QTEST_MAIN(tst_splitlib)
#include "tst_qmlsplitlib.moc"