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
83 lines
2.8 KiB
Plaintext
83 lines
2.8 KiB
Plaintext
#
|
|
# W A R N I N G
|
|
# -------------
|
|
#
|
|
# This file is not part of the Qt API. It exists purely as an
|
|
# implementation detail. It may change from version to version
|
|
# without notice, or even be removed.
|
|
#
|
|
# We mean it.
|
|
#
|
|
|
|
load(moc)
|
|
qtPrepareTool(QMAKE_QDBUSXML2CPP, qdbusxml2cpp)
|
|
|
|
defineReplace(qdbusOutputBasename) {
|
|
return($$lower($$section($$list($$basename(1)),.,-2,-2)))
|
|
}
|
|
|
|
dbus_TYPE = $$upper($$dbus_type)
|
|
|
|
groups =
|
|
for(entry, DBUS_$${dbus_TYPE}S) {
|
|
|
|
files = $$eval($${entry}.files)
|
|
isEmpty(files) {
|
|
files = $$entry
|
|
group = dbus_$${dbus_type}
|
|
} else {
|
|
group = $${entry}_dbus_$${dbus_type}
|
|
}
|
|
groups *= $$group
|
|
|
|
input_list = $$upper($$group)_LIST
|
|
for(subent, $$list($$unique(files))) {
|
|
|
|
!contains(subent, .*\\w\\.xml$) {
|
|
warning("Invalid D-Bus $${dbus_type}: '$$subent', please use 'com.mydomain.myinterface.xml' instead.")
|
|
next()
|
|
}
|
|
|
|
$$input_list += $$subent
|
|
}
|
|
}
|
|
|
|
for(group, groups) {
|
|
GROUP = $$upper($$group)
|
|
input_list = $${GROUP}_LIST
|
|
|
|
# qmake does not keep empty elements in lists, so we reverse-engineer the short name
|
|
grp = $$replace(group, _?dbus_$${dbus_type}\$, )
|
|
isEmpty(grp) {
|
|
hdr_flags = $$eval(QDBUSXML2CPP_$${dbus_TYPE}_HEADER_FLAGS)
|
|
src_flags = $$eval(QDBUSXML2CPP_$${dbus_TYPE}_SOURCE_FLAGS)
|
|
} else {
|
|
hdr_flags = $$eval($${grp}.header_flags)
|
|
src_flags = $$eval($${grp}.source_flags)
|
|
}
|
|
|
|
$${group}_header.commands = $$QMAKE_QDBUSXML2CPP $$hdr_flags $$qdbusxml2cpp_option ${QMAKE_FILE_OUT}: ${QMAKE_FILE_IN}
|
|
$${group}_header.depends += $$QMAKE_QDBUSXML2CPP_EXE
|
|
$${group}_header.output = ${QMAKE_FUNC_FILE_IN_qdbusOutputBasename}_$${dbus_type}.h
|
|
$${group}_header.name = DBUSXML2CPP $${dbus_TYPE} HEADER ${QMAKE_FILE_IN}
|
|
$${group}_header.variable_out = $${GROUP}_HEADERS
|
|
$${group}_header.input = $$input_list
|
|
|
|
$${group}_source.commands = $$QMAKE_QDBUSXML2CPP -i ${QMAKE_FILE_OUT_BASE}.h $$src_flags $$qdbusxml2cpp_option :${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
|
|
$${group}_source.depends += $$QMAKE_QDBUSXML2CPP_EXE
|
|
$${group}_source.output = ${QMAKE_FUNC_FILE_IN_qdbusOutputBasename}_$${dbus_type}.cpp
|
|
$${group}_source.name = DBUSXML2CPP $${dbus_TYPE} SOURCE ${QMAKE_FILE_IN}
|
|
$${group}_source.variable_out = SOURCES
|
|
$${group}_source.input = $$input_list
|
|
$${group}_source.depends += $$eval($${group}_header.output) # this actually belongs to the object file
|
|
|
|
$${group}_moc.commands = $$moc_header.commands
|
|
$${group}_moc.depends += $$QMAKE_MOC_EXE
|
|
$${group}_moc.output = $$moc_header.output
|
|
$${group}_moc.input = $${GROUP}_HEADERS
|
|
$${group}_moc.variable_out = GENERATED_SOURCES
|
|
$${group}_moc.name = $${GROUP}_$$moc_header.name
|
|
|
|
QMAKE_EXTRA_COMPILERS += $${group}_header $${group}_source $${group}_moc
|
|
}
|