fix(guix-bzip2): install via DESTDIR-prefixed PREFIX to avoid empty package and lost /usr/bin/bzip2

This commit is contained in:
vxtls 2026-03-02 22:28:28 -05:00
parent afec884ea5
commit 919200478b

View file

@ -12,8 +12,9 @@ src_compile() {
}
src_install() {
make CFLAGS="-O2" LDFLAGS="-static" PREFIX="${SYSTEM_PREFIX}" DESTDIR="${DESTDIR}" install
make CFLAGS="-O2" LDFLAGS="-static" PREFIX="${SEED_PREFIX}" DESTDIR="${DESTDIR}" install
# Upstream bzip2 Makefile does not support DESTDIR, so PREFIX must include it.
make CFLAGS="-O2" LDFLAGS="-static" PREFIX="${DESTDIR}${SYSTEM_PREFIX}" install
make CFLAGS="-O2" LDFLAGS="-static" PREFIX="${DESTDIR}${SEED_PREFIX}" install
# Fail early if either installed binary is not executable in this environment.
"${DESTDIR}${SYSTEM_PREFIX}/bin/bzip2" --help >/dev/null