mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-19 21:41:05 +02:00
baselayout: create proper symlinks under /usr/lib/debug
Without these symlinks the path to many things changes and thus gdb cannot find any symbols.
This commit is contained in:
parent
55a8b89103
commit
3edb015c1c
@ -154,3 +154,23 @@ src_install() {
|
|||||||
systemd_enable_service sysinit.target coreos-tmpfiles.service
|
systemd_enable_service sysinit.target coreos-tmpfiles.service
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# Set up /usr/lib/debug to match the root filesystem layout
|
||||||
|
# FIXME: This is done in postinst right now and all errors are ignored
|
||||||
|
# as a transitional scheme, this isn't important enough to migrate
|
||||||
|
# existing SDK environments.
|
||||||
|
local dir
|
||||||
|
for dir in "${BASE_DIRS[@]}"; do
|
||||||
|
mkdir -p "${ROOT}/usr/lib/debug/${dir}"
|
||||||
|
done
|
||||||
|
local sym
|
||||||
|
for sym in "${!LIB_SYMS[@]}" ; do
|
||||||
|
ln -sfT "${LIB_SYMS[$sym]}" "${ROOT}/usr/lib/debug/${sym}"
|
||||||
|
done
|
||||||
|
if use symlink-usr; then
|
||||||
|
for sym in "${!USR_SYMS[@]}" ; do
|
||||||
|
ln -sfT "${USR_SYMS[$sym]}" "${ROOT}/usr/lib/debug/${sym}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user