xbps-src: use "virtual?" keyword to declare virtual runtime dependencies.
The syntax "pkg?vpkg" can be used in hostmakedepends, makedepends and depends; but the "virtual" keyword can be declared specifically for runtime dependencies (depends).
This commit is contained in:
parent
b4483f25c7
commit
9d50c2fb05
3 changed files with 13 additions and 2 deletions
|
@ -180,6 +180,11 @@ install_pkg_deps() {
|
|||
for i in ${build_depends} "RDEPS" ${run_depends}; do
|
||||
[ "$i" = "RDEPS" ] && rundep="runtime" && continue
|
||||
_realpkg="${i%\?*}"
|
||||
if [ "${_realpkg}" = "virtual" ]; then
|
||||
# ignore virtual dependencies
|
||||
echo " [${rundep:-target}] ${i#*\?}: virtual dependency."
|
||||
continue
|
||||
fi
|
||||
pkgn=$($XBPS_UHELPER_CMD getpkgdepname "${_realpkg}")
|
||||
if [ -z "$pkgn" ]; then
|
||||
pkgn=$($XBPS_UHELPER_CMD getpkgname "${_realpkg}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue