xbps-src: show all missing required host utilities, add gzip/bzip2.
This commit is contained in:
parent
6b2f0f9579
commit
becde060a4
1 changed files with 8 additions and 3 deletions
|
@ -34,19 +34,24 @@
|
||||||
: ${xbps_machine:=$(uname -m)}
|
: ${xbps_machine:=$(uname -m)}
|
||||||
|
|
||||||
# Required utilities in host system.
|
# Required utilities in host system.
|
||||||
REQHOST_UTILS="gawk bash bison sed gcc msgfmt patch makeinfo perl fakeroot tar xz"
|
REQHOST_UTILS="awk bash bison sed gcc msgfmt patch makeinfo \
|
||||||
|
perl fakeroot tar xz gzip bzip2"
|
||||||
|
|
||||||
check_reqhost_utils()
|
check_reqhost_utils()
|
||||||
{
|
{
|
||||||
|
local broken
|
||||||
|
|
||||||
[ -n "$IN_CHROOT" ] && return 0
|
[ -n "$IN_CHROOT" ] && return 0
|
||||||
[ -r "$XBPS_MASTERDIR/.xbps_perms_done" ] && return 0
|
[ -r "$XBPS_MASTERDIR/.xbps_perms_done" ] && return 0
|
||||||
|
|
||||||
for f in ${REQHOST_UTILS}; do
|
for f in ${REQHOST_UTILS}; do
|
||||||
if ! command -v ${f} 2>&1 >/dev/null; then
|
if ! command -v ${f} 2>&1 >/dev/null; then
|
||||||
echo "${f} is missing in your system, can't continue! exiting..."
|
echo "${f} is missing in your system, can't continue!"
|
||||||
exit 1
|
broken=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[ -n "$broken" ] && exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
|
|
Loading…
Reference in a new issue