Files
RedBear-OS/local/recipes/libs/glib/source/tools/update-unicode-data.sh
T
vasilito cee25393d8 fix: boot process improvements — dependency cycle, INIT_NOTIFY, probing loop, and log spam fixes
- Fix P15-8-init-cycle-detection.patch: replace visiting+error with seen+silent-skip
  to eliminate 11 false-positive 'dependency cycle detected' errors on shared deps
- Fix P0-daemon-fix-init-notify-unwrap.patch: remove eprintln! for missing
  INIT_NOTIFY (expected for oneshot_async services, ~7 daemons affected)
- Fix driver-manager hotplug loop: add PERMANENTLY_SKIPPED static set shared
  between hotplug handler and DriverConfig::probe() to stop infinite re-probing
  of Fatal/NotSupported/deferred-exhausted device+driver pairs (e.g. ided)
- Fix driver-manager log_timeline: suppress repeated EPIPE/ENOENT errors with
  AtomicI32 dedup and AtomicBool one-shot guards for boot timeline JSON
- Add driver-manager SIGTERM handler, ACPI bus registration, --status mode,
  driver reap loop, graceful shutdown, and reduced deferred retries (30→3)
2026-05-17 12:34:02 +03:00

46 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
#
# Copyright 2022 Canonical Limited
#
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# Original author: Marco Trevisan
if [ ! -d "$1" ]; then
echo "Usage $(basename "$0") UCD-directory [version]"
exit 1
fi
ucd=$(realpath "$1")
version=$2
glib_dir=$(git -C "$(dirname "$0")" rev-parse --show-toplevel)
# shellcheck disable=SC2144 # we only want to match a file like this
if ! [ -f "$ucd"/UnicodeData*.txt ] || ! [ -f "$ucd"/CaseFolding.*txt ]; then
echo "'$ucd' does not look like an Unicode Database directory";
fi
if [ -z "$version" ]; then
readme=("$ucd"/ReadMe*.txt)
version=$(sed -n "s,.*Version \([0-9.]\+\) of the Unicode Standard.*,\1,p" \
"${readme[@]}")
if [ -z "$version" ]; then
echo "Invalid version found"
exit 1
fi
fi
cd "$glib_dir" || exit 1
echo "Updating generated code to Unicode version $version"
set -xe
(cd glib && ./gen-unicode-tables.pl -both "$version" "$ucd")
glib/tests/gen-casefold-txt.py "$version" \
"$ucd"/CaseFolding*.txt > glib/tests/casefold.txt
glib/tests/gen-casemap-txt.py "$version" \
"$ucd"/UnicodeData*.txt \
"$ucd"/SpecialCasing*.txt > glib/tests/casemap.txt
cp "$ucd"/NormalizationTest.txt glib/tests/