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
308 lines
6.1 KiB
Meson
308 lines
6.1 KiB
Meson
# Copyright © 2019-2020 Salamandar <felix@piedallu.me>
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
# in the Software without restriction, including without limitation the rights
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
# furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in
|
|
# all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
# SOFTWARE.
|
|
|
|
option(
|
|
'apparmor',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'AppArmor support'
|
|
)
|
|
|
|
option(
|
|
'asserts',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Include assertion checks'
|
|
)
|
|
|
|
option(
|
|
'checks',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Check for usage errors at public API'
|
|
)
|
|
|
|
option(
|
|
'dbus_daemondir',
|
|
type: 'string',
|
|
description: 'Directory for installing the dbus-daemon'
|
|
)
|
|
|
|
option(
|
|
'dbus_user',
|
|
type: 'string',
|
|
description: 'User for running the system dbus-daemon',
|
|
value: 'messagebus'
|
|
)
|
|
|
|
option(
|
|
'dbus_session_bus_connect_address',
|
|
type: 'string',
|
|
value: '',
|
|
description: 'Fallback address for a session bus client to connect to',
|
|
)
|
|
|
|
option(
|
|
'dbus_session_bus_listen_address',
|
|
type: 'string',
|
|
value: '',
|
|
description: 'Default address for a session bus to listen on',
|
|
)
|
|
|
|
option(
|
|
'doxygen_docs',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Build Doxygen documentation'
|
|
)
|
|
|
|
option(
|
|
'ducktype_docs',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Build Ducktype documentation'
|
|
)
|
|
|
|
option(
|
|
'intrusive_tests',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Enable tests that require insecure extra code in the library and binaries'
|
|
)
|
|
|
|
option(
|
|
'epoll',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Use epoll(4) on Linux'
|
|
)
|
|
|
|
option(
|
|
'inotify',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Inotify support on Linux'
|
|
)
|
|
|
|
option(
|
|
'installed_tests',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Install automated tests for "as-installed" testing'
|
|
)
|
|
|
|
option(
|
|
'kqueue',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Kqueue support'
|
|
)
|
|
|
|
option(
|
|
'launchd',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Launchd auto-launch support'
|
|
)
|
|
|
|
option(
|
|
'launchd_agent_dir',
|
|
type: 'string',
|
|
description: 'Directory to put the launchd agent'
|
|
)
|
|
|
|
option(
|
|
'libaudit',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Audit logging support for SELinux and AppArmor'
|
|
)
|
|
|
|
option(
|
|
'message_bus',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Enable dbus-daemon'
|
|
)
|
|
|
|
option(
|
|
'modular_tests',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Enable modular regression tests (requires GLib)'
|
|
)
|
|
|
|
option(
|
|
'qch_dir',
|
|
type: 'string',
|
|
description: 'Directory to put the Qt help file'
|
|
)
|
|
|
|
option(
|
|
'qt_help',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Build Qt help documentation'
|
|
)
|
|
|
|
option(
|
|
'relocation',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Make pkg-config metadata relocatable'
|
|
)
|
|
|
|
# Deliberately not named runstatedir to avoid colliding with
|
|
# https://github.com/mesonbuild/meson/issues/4141
|
|
option(
|
|
'runtime_dir',
|
|
type: 'string',
|
|
value: '',
|
|
description: 'Directory for transient runtime state [default: LOCALSTATEDIR/run or /run]'
|
|
)
|
|
|
|
option(
|
|
'selinux',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'SELinux support'
|
|
)
|
|
|
|
option(
|
|
'session_socket_dir',
|
|
type: 'string',
|
|
description: 'Where to put sockets for the per-login-session message bus'
|
|
)
|
|
|
|
option(
|
|
'solaris_console_owner_file',
|
|
type: 'string',
|
|
value: '',
|
|
description: 'File to determine current console owner on Solaris (or "auto")'
|
|
)
|
|
|
|
option(
|
|
'stats',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Enable bus daemon usage statistics'
|
|
)
|
|
|
|
option(
|
|
'system_pid_file',
|
|
type: 'string',
|
|
description: 'PID file for systemwide daemon'
|
|
)
|
|
|
|
option(
|
|
'system_socket',
|
|
type: 'string',
|
|
description: 'UNIX domain socket for systemwide daemon'
|
|
)
|
|
|
|
option(
|
|
'systemd_system_unitdir',
|
|
type: 'string',
|
|
description: 'Directory for systemd system service files'
|
|
)
|
|
|
|
option(
|
|
'systemd_user_unitdir',
|
|
type: 'string',
|
|
description: 'Directory for systemd user service files'
|
|
)
|
|
|
|
option(
|
|
'systemd',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Systemd at_console support'
|
|
)
|
|
|
|
option(
|
|
'test_socket_dir',
|
|
type: 'string',
|
|
description: 'Where to put sockets for make check'
|
|
)
|
|
|
|
option(
|
|
'test_user',
|
|
type: 'string',
|
|
description: 'Unprivileged user for regression tests, other than root and the dbus_user',
|
|
value: 'nobody'
|
|
)
|
|
|
|
option(
|
|
'tools',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Enable CLI tools such as dbus-send and dbus-monitor'
|
|
)
|
|
|
|
option(
|
|
'traditional_activation',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Build support for service activation without using SystemdService'
|
|
)
|
|
|
|
option(
|
|
'user_session',
|
|
type: 'boolean',
|
|
value: true,
|
|
description: 'Enable user-session semantics for session bus under systemd'
|
|
)
|
|
|
|
option(
|
|
'valgrind',
|
|
type: 'feature',
|
|
value: 'disabled',
|
|
description: 'Build with Valgrind instrumentation (note that this currently adds a hard dependency on valgrind)'
|
|
)
|
|
|
|
option(
|
|
'verbose_mode',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'Support verbose debug mode'
|
|
)
|
|
|
|
option(
|
|
'x11_autolaunch',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Build with X11 auto-launch support'
|
|
)
|
|
|
|
option(
|
|
'xml_docs',
|
|
type: 'feature',
|
|
value: 'auto',
|
|
description: 'Build XML documentation'
|
|
)
|
|
|
|
option(
|
|
'windows_output_debug_string',
|
|
type: 'boolean',
|
|
value: false,
|
|
description: 'use OutputDebugString() to log messages to Windows debug port'
|
|
)
|