config: add x11proto dependency for libxau and SDDM

- Add x11proto to redbear-full.toml package list
- libxau recipe updated with x11proto dependency and custom build script
- Fixes libxau build failure: 'Package xproto was not found'
This commit is contained in:
2026-06-20 14:57:46 +03:00
parent c98b3ad7c1
commit 04b7641e85
24865 changed files with 7396682 additions and 483 deletions
+17
View File
@@ -1259,6 +1259,20 @@ pub(crate) fn fetch_apply_patches(
command.arg("--batch");
command.arg("--fuzz=0");
command.arg("--no-backup-if-mismatch");
let pre_existing_origs = Command::new("find")
.arg(&staging_dir)
.arg("-name")
.arg("*.orig")
.arg("-print")
.output();
let pre_existing_set: std::collections::HashSet<String> = match pre_existing_origs {
Ok(out) => String::from_utf8_lossy(&out.stdout)
.lines()
.map(String::from)
.collect(),
Err(_) => std::collections::HashSet::new(),
};
run_command_stdin(command, patch_data.as_slice(), logger)
.map_err(|e| format!("patch {patch_name} FAILED: {e}"))?;
@@ -1273,6 +1287,9 @@ pub(crate) fn fetch_apply_patches(
if let Ok(out) = rej_check {
if !out.stdout.is_empty() {
let path = String::from_utf8_lossy(&out.stdout).trim().to_string();
if *ext == "orig" && pre_existing_set.contains(&path) {
continue;
}
bail_other_err!(
"patch {patch_name} left .{ext} file (hunks failed to apply): {path}"
);
+7
View File
@@ -102,6 +102,13 @@ export PATH="${COOKBOOK_TOOLCHAIN}/bin:${PATH}"
export LD_LIBRARY_PATH="${COOKBOOK_TOOLCHAIN}/lib:${LD_LIBRARY_PATH}"
fi
# Add redoxer toolchain to path if exists
REDOXER_TOOLCHAIN="${HOME}/.redoxer/${TARGET}/toolchain"
if [ -d "${REDOXER_TOOLCHAIN}/bin" ]
then
export PATH="${REDOXER_TOOLCHAIN}/bin:${PATH}"
fi
# This puts cargo build artifacts in the build directory
export CARGO_TARGET_DIR="${COOKBOOK_BUILD}/target"