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,137 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "customextension.h"
#include <QtGui/QGuiApplication>
#include <QtGui/QWindow>
#include <QtGui/QPlatformSurfaceEvent>
#include <QtGui/qpa/qplatformnativeinterface.h>
#include <QDebug>
QT_BEGIN_NAMESPACE
CustomExtension::CustomExtension()
: QWaylandClientExtensionTemplate(/* Supported protocol version */ 1 )
{
connect(this, &CustomExtension::activeChanged, this, &CustomExtension::handleExtensionActive);
}
static inline struct ::wl_surface *getWlSurface(QWindow *window)
{
void *surf = QGuiApplication::platformNativeInterface()->nativeResourceForWindow("surface", window);
return static_cast<struct ::wl_surface *>(surf);
}
QWindow *CustomExtension::windowForSurface(struct ::wl_surface *surface)
{
for (QWindow *w : std::as_const(m_windows)) {
if (getWlSurface(w) == surface)
return w;
}
return nullptr;
}
bool CustomExtension::eventFilter(QObject *object, QEvent *event)
{
if (event->type() == QEvent::Expose) {
QWindow *window = qobject_cast<QWindow*>(object);
Q_ASSERT(window);
if (window->isExposed()) {
window->removeEventFilter(this);
QtWayland::qt_example_extension::register_surface(getWlSurface(window));
}
}
return false;
}
void CustomExtension::sendWindowRegistration(QWindow *window)
{
if (window->handle())
QtWayland::qt_example_extension::register_surface(getWlSurface(window));
else
window->installEventFilter(this); // register when created
}
void CustomExtension::registerWindow(QWindow *window)
{
m_windows << window;
if (isActive()) {
m_activated = true;
sendWindowRegistration(window);
}
}
CustomExtensionObject *CustomExtension::createCustomObject(const QString &color, const QString &text)
{
auto *obj = create_local_object(color, text);
return new CustomExtensionObject(obj, text);
}
//! [sendBounce]
void CustomExtension::sendBounce(QWindow *window, uint ms)
{
QtWayland::qt_example_extension::bounce(getWlSurface(window), ms);
}
//! [sendBounce]
void CustomExtension::sendSpin(QWindow *window, uint ms)
{
QtWayland::qt_example_extension::spin(getWlSurface(window), ms);
}
void CustomExtension::handleExtensionActive()
{
if (isActive() && !m_activated) {
m_activated = true;
for (QWindow *w : std::as_const(m_windows))
sendWindowRegistration(w);
}
}
void CustomExtension::example_extension_close(wl_surface *surface)
{
QWindow *w = windowForSurface(surface);
if (w)
w->close();
}
void CustomExtension::example_extension_set_font_size(wl_surface *surface, uint32_t pixel_size)
{
emit fontSize(windowForSurface(surface), pixel_size);
}
void CustomExtension::example_extension_set_window_decoration(uint32_t state)
{
bool shown = state;
for (QWindow *w : std::as_const(m_windows)) {
Qt::WindowFlags f = w->flags();
if (shown)
f &= ~Qt::FramelessWindowHint;
else
f |= Qt::FramelessWindowHint;
w->setFlags(f);
}
}
CustomExtensionObject::CustomExtensionObject(struct ::qt_example_local_object *wl_object, const QString &text)
: QWaylandClientExtensionTemplate<CustomExtensionObject>(1)
, QtWayland::qt_example_local_object(wl_object)
, m_text(text)
{
}
void CustomExtensionObject::example_local_object_clicked()
{
qDebug() << "Object clicked:" << m_text;
emit clicked();
}
void CustomExtensionObject::setText(const QString &text)
{
m_text = text;
set_text(text);
}
QT_END_NAMESPACE
@@ -0,0 +1,87 @@
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef CUSTOMEXTENSION_H
#define CUSTOMEXTENSION_H
#include <QtWaylandClient/QWaylandClientExtension>
#include <QtGui/QWindow>
#include <QtQmlIntegration/qqmlintegration.h>
#include "qwayland-custom.h"
QT_BEGIN_NAMESPACE
class CustomExtensionObject;
//! [CustomExtension]
class CustomExtension : public QWaylandClientExtensionTemplate<CustomExtension>
, public QtWayland::qt_example_extension
//! [CustomExtension]
{
Q_OBJECT
QML_ELEMENT
public:
CustomExtension();
Q_INVOKABLE void registerWindow(QWindow *window);
CustomExtensionObject *createCustomObject(const QString &color, const QString &text);
public slots:
void sendBounce(QWindow *window, uint ms);
void sendSpin(QWindow *window, uint ms);
signals:
void eventReceived(const QString &text, uint value);
void fontSize(QWindow *window, uint pixelSize);
void showDecorations(bool);
private slots:
void handleExtensionActive();
private:
void example_extension_close(wl_surface *surface) override;
void example_extension_set_font_size(wl_surface *surface, uint32_t pixel_size) override;
void example_extension_set_window_decoration(uint32_t state) override;
bool eventFilter(QObject *object, QEvent *event) override;
QWindow *windowForSurface(struct ::wl_surface *);
void sendWindowRegistration(QWindow *);
QList<QWindow *> m_windows;
bool m_activated = false;
};
class CustomExtensionObject : public QWaylandClientExtensionTemplate<CustomExtensionObject>
, public QtWayland::qt_example_local_object
{
Q_OBJECT
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
public:
CustomExtensionObject(struct ::qt_example_local_object *wl_object, const QString &text);
QString text() const
{
return m_text;
}
protected:
void example_local_object_clicked() override;
public slots:
void setText(const QString &text);
signals:
void textChanged(const QString &text);
void clicked();
private:
QString m_text;
};
QT_END_NAMESPACE
#endif // CUSTOMEXTENSION_H