Files
RedBear-OS/drivers/acpid/Cargo.toml
T
Red Bear OS 28e356d598 acpid: fix common path bug (was depth-3 notation in depth-2 crate)
acpid lives at drivers/acpid/ (depth 2 in the base workspace). All
other depth-2 crates (pcid, hwd, inputd, vboxd, rtcd, thermald,
virtio-core, redoxerd) correctly use path = "../common" (1 '..') to
reach drivers/common/. acpid was the sole outlier using "../../common"
(2 '..'), which resolves to base/common/ — a path that has never
existed in this fork.

The build script's overlay-integrity auto-repair mechanism normally
papers over this (creating a transient symlink or rewriting the path
during staging). When that mechanism fails — as it did during
LG Gram Round 1 verification ("5 recipe.toml files could not be
restored") — the bug surfaces as a hard manifest-load failure:

  error: failed to load manifest for workspace member
    .../local/sources/base/drivers/acpid
    failed to load manifest for dependency 'common'
    failed to read .../local/sources/base/common/Cargo.toml
    No such file or directory (os error 2)

The fix is one character: "../../common" → "../common". This makes
acpid consistent with the 8 other depth-2 crates and removes the
dependency on the build-script overlay-repair hack.

No semantic change — same crate, same workspace membership, just a
correctly-resolving path.
2026-07-26 17:14:34 +09:00

40 lines
1.1 KiB
TOML

[package]
name = "acpid"
description = "ACPI daemon"
version = "0.1.0"
authors = ["4lDO2 <4lDO2@protonmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
acpi = { path = "../acpi-rs", features = ["alloc", "aml"] }
arrayvec = "0.7.6"
log.workspace = true
num-derive = "0.3"
num-traits = "0.2"
parking_lot.workspace = true
plain.workspace = true
redox_syscall.workspace = true
redox_event.workspace = true
rustc-hash = "1.1.0"
thiserror.workspace = true
ron.workspace = true
serde.workspace = true
amlserde = { path = "../amlserde" }
common = { path = "../common" }
daemon = { path = "../../daemon" }
libredox.workspace = true
redox-scheme.workspace = true
scheme-utils = { path = "../../scheme-utils" }
# Quirks system: acpid is the consumer of SystemQuirkFlags (force_s2idle,
# acpi_irq1_skip_override, no_legacy_pm1b). Loaded at init from the in-memory
# DMI scan via the toml_loader path. Mirrors the cross-tree dep pattern used
# by xhcid (drivers/usb/xhcid/Cargo.toml).
redox-driver-sys = { path = "../../../../recipes/drivers/redox-driver-sys/source" }
[lints]
workspace = true