mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
fix(guix-bzip2): enforce static install and validate runnable bzip2 during apply
This commit is contained in:
parent
6dfc8d5c85
commit
afec884ea5
3 changed files with 14 additions and 2 deletions
|
|
@ -579,6 +579,13 @@ src_apply() {
|
|||
fi
|
||||
"${BZIP2_PREFIX}bzip2" -dc "/external/repo/${pkg}_${revision}.tar.bz2" | \
|
||||
"${TAR_PREFIX}tar" -C / -xpf -
|
||||
if [[ "${pkg}" == bzip2-* ]]; then
|
||||
if ! "${PREFIX}/bin/bzip2" --help >/dev/null 2>&1; then
|
||||
echo "${pkg}: installed ${PREFIX}/bin/bzip2 is not runnable." >&2
|
||||
mv -f "/tmp/bzip2" "${PREFIX}/bin/bzip2" || true
|
||||
false
|
||||
fi
|
||||
fi
|
||||
rm -f "/tmp/bzip2" "/tmp/tar"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue