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,45 @@
# Copyright (C) 2025 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
#####################################################################
## tst_qqmltreemodel Test:
#####################################################################
if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
cmake_minimum_required(VERSION 3.16)
project(tst_qqmltreemodel LANGUAGES CXX)
find_package(Qt6BuildInternals REQUIRED COMPONENTS STANDALONE_TEST)
endif()
# Collect test data
file(GLOB_RECURSE test_data_glob
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
data/*)
list(APPEND test_data ${test_data_glob})
qt_internal_add_test(tst_qqmltreemodel
SOURCES
tst_qqmltreemodel.cpp
LIBRARIES
Qt::Gui
Qt::Qml
Qt::QmlPrivate
Qt::Quick
Qt::QuickPrivate
Qt::QuickTestUtilsPrivate
Qt::LabsQmlModelsPrivate
TESTDATA ${test_data}
)
## Scopes:
#####################################################################
qt_internal_extend_target(tst_qqmltreemodel CONDITION ANDROID OR IOS
DEFINES
QT_QMLTEST_DATADIR=":/data"
)
qt_internal_extend_target(tst_qqmltreemodel CONDITION NOT ANDROID AND NOT IOS
DEFINES
QT_QMLTEST_DATADIR="${CMAKE_CURRENT_SOURCE_DIR}/data"
)
@@ -0,0 +1,88 @@
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import Qt.labs.qmlmodels
TreeModel {
id: treeModel
objectName: "testModel"
TableModelColumn { display: "checked"; decoration: "color" }
TableModelColumn { display: "amount"; decoration: "color" }
TableModelColumn { display: "fruitType"; decoration: "color" }
TableModelColumn { display: "fruitName"; decoration: "color" }
TableModelColumn { display: "fruitPrice"; decoration: "color" }
rows: [
{
checked: false,
amount: 1,
fruitType: "Apple",
fruitName: "Granny Smith",
fruitPrice: 1.50,
color: "red",
rows: [
{
checked: true,
amount: 4,
fruitType: "Orange",
fruitName: "Navel",
fruitPrice: 2.50,
color: "orange"
},
{
checked: false,
amount: 1,
fruitType: "Banana",
fruitName: "Cavendish",
fruitPrice: 3.50,
color: "yellow",
rows: [
{
checked: true,
amount: 4,
fruitType: "Orange",
fruitName: "Navel",
fruitPrice: 2.50,
color: "orange",
},
{
checked: false,
amount: 1,
fruitType: "Banana",
fruitName: "Cavendish",
fruitPrice: 3.50,
color: "yellow",
}
]
}
]
},
{
checked: false,
amount: 4,
fruitType: "Peach",
fruitName: "Princess Peach",
fruitPrice: 1.45,
color: "yellow",
rows: [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red",
},
{
checked: false,
amount: 6,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green",
}
]
}
]
}
@@ -0,0 +1,321 @@
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import Qt.labs.qmlmodels
Item {
id: root
width: 200
height: 200
property alias testModel: testModel
property alias treeView: treeView
function appendNodeToRoot() {
testModel.appendRow({
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green"
})
}
function appendSubTreeToRoot() {
testModel.appendRow({
checked: false,
amount: 4,
fruitType: "Peach",
fruitName: "Princess Peach",
fruitPrice: 1.45,
color: "yellow",
rows: [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red"
},
{
checked: false,
amount: 6,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green"
}
]
})
}
function appendToRootInvalid1() {
testModel.appendRow(123)
}
function appendToRootInvalid2() {
testModel.appendRow({
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: [],
fruitPrice: 1.50,
color: "green"
})
}
function appendToRootInvalid3() {
testModel.appendRow([{
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: [],
fruitPrice: 1.50,
color: "green"
}])
}
function appendNodeToRootWithExtraData() {
testModel.appendRow({
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green",
extradata: "extradata"
})
}
function appendToNegativeIndex() {
var index = testModel.index([0,1,-1], 0)
testModel.appendRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green"
})
}
function appendToInvalidIndex() {
var index = testModel.index([0,12,1], 0)
testModel.appendRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green"
})
}
function appendInvalidNode1() {
var index = testModel.index([0,1,1], 0)
testModel.appendRow(index, 150)
}
function appendInvalidNode2() {
var index = testModel.index([0,1,1], 0)
testModel.appendRow(index, {
checked: false,
amount: 4,
fruitType: "Peach",
fruitName: "Princess Peach",
fruitPrice: 1.45,
color: "yellow",
rows: [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red",
},
{
checked: false,
amount: 6,
fruitType:[],
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green",
}
]
})
}
function appendInvalidNode3() {
var index = testModel.index([0,1,1], 0)
testModel.appendRow(index, [{
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green"
}])
}
function appendToLeaf() {
var index = testModel.index([1,0], 0)
testModel.appendRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green"
})
}
function appendToMiddle() {
var index = testModel.index([0,0], 0)
testModel.appendRow(index, {
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red"
})
}
function appendToNodeWithExtraData() {
var index = testModel.index([1], 0)
testModel.appendRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green",
extradata: "extradata"
})
}
function setWithNegativeIndex() {
var index = testModel.index([0,1,-1], 0)
testModel.setRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green"
})
}
function setWithInvalidIndex() {
var index = testModel.index([3,0,1], 0)
testModel.setRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green"
})
}
function setInvalidData1() {
var index = testModel.index([0,1,1], 0)
testModel.setRow(index, 150)
}
function setInvalidData2() {
var index = testModel.index([0,1,1], 0)
testModel.setRow(index, {
checked: false,
amount: 4,
fruitType: "Peach",
fruitName: "Princess Peach",
fruitPrice: 1.45,
color: "yellow",
rows: [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red",
},
{
checked: false,
amount: 6,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green",
}
]
})
}
function setInvalidData3() {
var index = testModel.index([0,1,1], 0)
testModel.setRow(index, [{
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green"
}])
}
function setLeaf() {
var index = testModel.index([0,1,1], 0)
testModel.setRow(index, {
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green"
})
}
function setNodeWithExtraData() {
var index = testModel.index([1,0], 0)
testModel.setRow(index, {
checked: true,
amount: 4,
fruitType: "Orange",
fruitName: "Navel",
fruitPrice: 2.50,
color: "orange",
extradata: "extradata"
})
}
TreeView {
id: treeView
anchors.fill: parent
model: TestModel {
id: testModel
}
delegate: Text {
text: model.display
}
}
}
@@ -0,0 +1,119 @@
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import Qt.labs.qmlmodels
Item {
id: root
width: 200
height: 200
property alias testModel: treeModel
property alias treeView: treeView
function appendSubTree() {
testModel.appendRow({
checked: false,
amount: 4,
fruitType: "Peach",
fruitName: "Princess Peach",
fruitPrice: 1.45,
color: "yellow",
rows: [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red",
},
{
checked: false,
amount: 6,
fruitType:"Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green",
}
]
})
}
function appendInvalid() {
testModel.appendRow({
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: [],
fruitPrice: 1.50,
color: "green"
})
}
function appendWithExtraData() {
testModel.appendRow({
checked: true,
amount: 1,
fruitType: "Pear",
fruitName: "Williams",
fruitPrice: 1.50,
color: "green",
extradata: "extradata"
})
}
function setRows() {
testModel.rows = [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red",
},
{
checked: false,
amount: 6,
fruitType:"Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green",
}
]
}
function setInvalidRowsNumber() {
testModel.rows = 42 // should fail - type is int
}
function setInvalidRowsString() {
testModel.rows = "Hello world" // should fail - type is QString
}
function setInvalidRowsObject() {
testModel.rows = ({ foo: 1 }) // should fail - type is JSObject
}
TreeModel {
id: treeModel
objectName: "testModel"
TableModelColumn { display: "checked"; decoration: "color" }
TableModelColumn { display: "amount"; decoration: "color" }
TableModelColumn { display: "fruitType"; decoration: "color" }
TableModelColumn { display: "fruitName"; decoration: "color" }
TableModelColumn { display: "fruitPrice"; decoration: "color" }
}
TreeView {
id: treeView
anchors.fill: parent
model: testModel
delegate: Text {
text: model.display
}
}
}
@@ -0,0 +1,43 @@
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import Qt.labs.qmlmodels
Item {
id: root
width: 200
height: 200
property alias testModel: testModel
property alias treeView: treeView
function changeFruitTypeIntOverload() {
var idx = testModel.index([1], 2)
testModel.setData(idx, "Ananas", Qt.DisplayRole)
}
function changeFruitNameStringOverload() {
var idx = testModel.index([1], 3)
testModel.setData(idx, "My other favorite fruit", "display")
}
function changeFruitType(idx, value, role) {
testModel.setData(idx, value, role)
}
function changeFruitName(idx, value, role) {
testModel.setData(idx, value, role)
}
TreeView {
id: treeView
anchors.fill: parent
model: TestModel {
id: testModel
}
delegate: Text {
text: model.display
}
}
}
@@ -0,0 +1,66 @@
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import Qt.labs.qmlmodels
Item {
id: root
width: 200
height: 200
property alias testModel: testModel
signal shouldModify()
signal shouldModifyInvalidRole()
signal shouldModifyInvalidType()
function modify() {
shouldModify()
}
function modifyInvalidRole() {
shouldModifyInvalidRole()
}
function modifyInvalidType() {
shouldModifyInvalidType()
}
TreeView {
anchors.fill: parent
model: TestModel {
id: testModel
}
Component.onCompleted: {
expandRecursively()
}
delegate: Text {
id: textItem
text: model.display
Connections {
target: root
enabled: column === 1
function onShouldModify() { model.display = 18 }
}
Connections {
target: root
enabled: column === 0
// Invalid: checked is not a role.
function onShouldModifyInvalidRole() { model.checked = true }
}
Connections {
target: root
enabled: column === 1
// Invalid: should be int.
function onShouldModifyInvalidType() { model.display = "Whoops" }
}
}
}
}
@@ -0,0 +1,85 @@
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import Qt.labs.qmlmodels
Item {
id: root
width: 200
height: 200
property alias testModel: testModel
property alias treeView: treeView
function setRowsInvalid() {
testModel.rows = [
{
checked: false,
amount: 4,
fruitType: "Peach",
fruitName: "Princess Peach",
fruitPrice: 1.45,
color: "yellow",
rows: [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: [],
fruitPrice: 3.80,
color: "red"
},
{
checked: false,
amount: 6,
fruitType: "Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green"
}
]
}
]
}
function setRows() {
testModel.rows = [
{
checked: true,
amount: 5,
fruitType: "Strawberry",
fruitName: "Perry the Berry",
fruitPrice: 3.80,
color: "red",
},
{
checked: false,
amount: 6,
fruitType:"Pear",
fruitName: "Bear Pear",
fruitPrice: 1.50,
color: "green",
},
{
checked: true,
amount: 4,
fruitType: "Orange",
fruitName: "Navel",
fruitPrice: 2.50,
color: "orange"
}
]
}
TreeView {
id: treeView
anchors.fill: parent
model: TestModel {
id: testModel
}
delegate: Text {
text: model.display
}
}
}