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
67 lines
2.0 KiB
CMake
67 lines
2.0 KiB
CMake
# - Try to find the GLIB2 libraries
|
|
# Once done this will define
|
|
#
|
|
# GLIB2_FOUND - system has glib2
|
|
# GLIB2_INCLUDE_DIR - the glib2 include directory
|
|
# GLIB2_LIBRARIES - glib2 library
|
|
|
|
# Copyright (c) 2008 Laurent Montel, <montel@kde.org>
|
|
# Copyright (c) 2013 Ralf Habacker, <ralf.habacker@freenet.de>
|
|
# SPDX-License-Identifier: LicenseRef-CMakeScripts
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see LICENSES/LicenseRef-CMakeScripts.txt.
|
|
|
|
|
|
if(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES)
|
|
# Already in cache, be silent
|
|
set(GLIB2_FIND_QUIETLY TRUE)
|
|
endif(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES)
|
|
|
|
if (NOT WIN32)
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(PC_LibGLIB2 QUIET glib-2.0)
|
|
endif()
|
|
|
|
find_path(GLIB2_MAIN_INCLUDE_DIR
|
|
NAMES glib.h
|
|
HINTS ${PC_LibGLIB2_INCLUDEDIR}
|
|
PATH_SUFFIXES glib-2.0)
|
|
|
|
find_library(GLIB2_LIBRARY
|
|
NAMES glib-2.0
|
|
HINTS ${PC_LibGLIB2_LIBDIR}
|
|
)
|
|
|
|
find_library(GOBJECT2_LIBRARY
|
|
NAMES gobject-2.0
|
|
HINTS ${PC_LibGLIB2_LIBDIR}
|
|
)
|
|
|
|
find_library(GIO2_LIBRARY
|
|
NAMES gio-2.0
|
|
HINTS ${PC_LibGLIB2_LIBDIR}
|
|
)
|
|
|
|
set(GLIB2_LIBRARIES ${GLIB2_LIBRARY} ${GOBJECT2_LIBRARY} ${GIO2_LIBRARY})
|
|
|
|
# search the glibconfig.h include dir under the same root where the library is found
|
|
get_filename_component(glib2LibDir "${GLIB2_LIBRARY}" PATH)
|
|
|
|
find_path(GLIB2_INTERNAL_INCLUDE_DIR glibconfig.h
|
|
PATH_SUFFIXES glib-2.0/include
|
|
HINTS ${PC_LibGLIB2_INCLUDEDIR} "${glib2LibDir}" ${CMAKE_SYSTEM_LIBRARY_PATH})
|
|
|
|
set(GLIB2_INCLUDE_DIR "${GLIB2_MAIN_INCLUDE_DIR}")
|
|
|
|
# not sure if this include dir is optional or required
|
|
# for now it is optional
|
|
if(GLIB2_INTERNAL_INCLUDE_DIR)
|
|
set(GLIB2_INCLUDE_DIR ${GLIB2_INCLUDE_DIR} "${GLIB2_INTERNAL_INCLUDE_DIR}")
|
|
endif(GLIB2_INTERNAL_INCLUDE_DIR)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(GLIB2 DEFAULT_MSG GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(GLIB2_INCLUDE_DIR GLIB2_LIBRARIES)
|