From 130757f17f0d071226b8d8d83589e38e5c1372ac Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Tue, 18 Oct 2022 00:57:46 +0200 Subject: [PATCH] xbps-src: don't use deprecated egrep grep 3.8 now prints a warning that egrep is deprecated and we should use grep -E instead --- common/xbps-src/shutils/build_dependencies.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/shutils/build_dependencies.sh b/common/xbps-src/shutils/build_dependencies.sh index e4e2210d4e56..1d19de54ae80 100644 --- a/common/xbps-src/shutils/build_dependencies.sh +++ b/common/xbps-src/shutils/build_dependencies.sh @@ -25,9 +25,9 @@ setup_pkg_depends() { _pkgname=$(xbps-uhelper getpkgname $_depname 2>/dev/null) [ -z "$_pkgname" ] && _pkgname="$_depname" if [ -s ${XBPS_DISTDIR}/etc/virtual ]; then - foo=$(egrep "^${_pkgname}[[:blank:]]" ${XBPS_DISTDIR}/etc/virtual|cut -d ' ' -f2) + foo=$(grep -E "^${_pkgname}[[:blank:]]" ${XBPS_DISTDIR}/etc/virtual|cut -d ' ' -f2) elif [ -s ${XBPS_DISTDIR}/etc/defaults.virtual ]; then - foo=$(egrep "^${_pkgname}[[:blank:]]" ${XBPS_DISTDIR}/etc/defaults.virtual|cut -d ' ' -f2) + foo=$(grep -E "^${_pkgname}[[:blank:]]" ${XBPS_DISTDIR}/etc/defaults.virtual|cut -d ' ' -f2) fi if [ -z "$foo" ]; then msg_error "$pkgver: failed to resolve virtual dependency for '$j' (missing from etc/virtual)\n"