diff --git a/xbps-src/shutils/verify_rundeps.sh b/xbps-src/shutils/verify_rundeps.sh index 1b41a0311da..bfc6ff54576 100644 --- a/xbps-src/shutils/verify_rundeps.sh +++ b/xbps-src/shutils/verify_rundeps.sh @@ -123,6 +123,14 @@ verify_rundeps() else soname_list="${soname_list} ${f}" fi + # Try to remove the line from template + if [ -f $XBPS_SRCPKGDIR/$pkgname/$pkgname.template ]; then + tmplf=$XBPS_SRCPKGDIR/$pkgname/$pkgname.template + else + tmplf=$XBPS_SRCPKGDIR/$pkgname/template + fi + sed -i "/^Add_dependency run ${_rdep}.*$/d" $tmplf + if find_rundep ${_rdep}; then Add_dependency run ${_rdep} fi