upower: relocate the cross-install udev leak, and assert it stays gone
udev rules and hwdb installed under the sysroot prefix, so none of the fork's quirks were ever active on the phone.
This commit is contained in:
parent
2170ba686f
commit
7eb2135906
2 changed files with 36 additions and 0 deletions
|
|
@ -29,6 +29,14 @@ sha256sums=('SKIP' 'SKIP')
|
|||
|
||||
package() {
|
||||
bsdtar -xf "$srcdir/upower-tree.tar" -C "$pkgdir"
|
||||
|
||||
# Detector, not a fixer — ci.yml is where a leaked cross-install tree gets
|
||||
# folded back. If one reaches here the tarball is wrong, and shipping it
|
||||
# would put /home/<user>/aarch64-sysroot/... on the device and leave udev
|
||||
# with no rules (measured on the phone 2026-07-27). Fail loudly instead.
|
||||
local stray
|
||||
stray=$(find "$pkgdir" -mindepth 1 -maxdepth 1 ! -name usr ! -name etc -printf '%f\n')
|
||||
[[ -z $stray ]] || { error "upower tree ships outside usr/ and etc/: %s" "$stray"; return 1; }
|
||||
# Keep the canonical interface XML discoverable for introspection.
|
||||
install -Dm644 "$srcdir/org.freedesktop.UPower.Device.xml" \
|
||||
"$pkgdir/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml"
|
||||
|
|
|
|||
Loading…
Reference in a new issue