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
70 lines
2.3 KiB
CMake
70 lines
2.3 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
if(TARGET WrapSystemPCRE2::WrapSystemPCRE2)
|
|
set(WrapSystemPCRE2_FOUND TRUE)
|
|
return()
|
|
endif()
|
|
set(WrapSystemPCRE2_REQUIRED_VARS __pcre2_found)
|
|
|
|
find_package(PCRE2 ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} COMPONENTS 16BIT QUIET)
|
|
|
|
set(__pcre2_target_name "PCRE2::16BIT")
|
|
if(PCRE2_FOUND AND TARGET "${__pcre2_target_name}")
|
|
# Hunter case.
|
|
set(__pcre2_found TRUE)
|
|
if(PCRE2_VERSION)
|
|
set(WrapSystemPCRE2_VERSION "${PCRE2_VERSION}")
|
|
endif()
|
|
else()
|
|
get_cmake_property(__packages_not_found PACKAGES_NOT_FOUND)
|
|
if(__packages_not_found)
|
|
list(REMOVE_ITEM __packages_not_found PCRE2)
|
|
set_property(GLOBAL PROPERTY PACKAGES_NOT_FOUND "${__packages_not_found}")
|
|
endif()
|
|
unset(__packages_not_found)
|
|
endif()
|
|
|
|
if(NOT __pcre2_found)
|
|
list(PREPEND WrapSystemPCRE2_REQUIRED_VARS PCRE2_LIBRARIES PCRE2_INCLUDE_DIRS)
|
|
|
|
find_package(PkgConfig QUIET)
|
|
pkg_check_modules(PC_PCRE2 QUIET "libpcre2-16")
|
|
|
|
find_path(PCRE2_INCLUDE_DIRS
|
|
NAMES pcre2.h
|
|
HINTS ${PC_PCRE2_INCLUDEDIR})
|
|
find_library(PCRE2_LIBRARY_RELEASE
|
|
NAMES pcre2-16
|
|
HINTS ${PC_PCRE2_LIBDIR})
|
|
find_library(PCRE2_LIBRARY_DEBUG
|
|
NAMES pcre2-16d pcre2-16
|
|
HINTS ${PC_PCRE2_LIBDIR})
|
|
include(SelectLibraryConfigurations)
|
|
select_library_configurations(PCRE2)
|
|
|
|
if(PC_PCRE2_VERSION)
|
|
set(WrapSystemPCRE2_VERSION "${PC_PCRE2_VERSION}")
|
|
endif()
|
|
|
|
if (PCRE2_LIBRARIES AND PCRE2_INCLUDE_DIRS)
|
|
set(__pcre2_found TRUE)
|
|
endif()
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(WrapSystemPCRE2
|
|
REQUIRED_VARS ${WrapSystemPCRE2_REQUIRED_VARS}
|
|
VERSION_VAR WrapSystemPCRE2_VERSION)
|
|
if(WrapSystemPCRE2_FOUND)
|
|
add_library(WrapSystemPCRE2::WrapSystemPCRE2 INTERFACE IMPORTED)
|
|
if(TARGET "${__pcre2_target_name}")
|
|
target_link_libraries(WrapSystemPCRE2::WrapSystemPCRE2 INTERFACE "${__pcre2_target_name}")
|
|
else()
|
|
target_link_libraries(WrapSystemPCRE2::WrapSystemPCRE2 INTERFACE ${PCRE2_LIBRARIES})
|
|
target_include_directories(WrapSystemPCRE2::WrapSystemPCRE2 INTERFACE ${PCRE2_INCLUDE_DIRS})
|
|
endif()
|
|
endif()
|
|
unset(__pcre2_target_name)
|
|
unset(__pcre2_found)
|