X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=rpm-find-provides-wrapper;h=f1137b9cac71fe0b297328c4af740c55f80c544b;hb=72d080a844407fb856f28128dc70db4c4aeb2f5d;hp=dd459c0276045266cd910eb06c9f0548d0508007;hpb=1cee2a54c149cf11ccad7d9bb86e1a4c8d9f8d94;p=packages%2Frpm.git diff --git a/rpm-find-provides-wrapper b/rpm-find-provides-wrapper index dd459c0..f1137b9 100644 --- a/rpm-find-provides-wrapper +++ b/rpm-find-provides-wrapper @@ -10,7 +10,9 @@ ulimit -c 0 PERLOPT="--define=__perl_provides /bin/sh -c 'cat >/dev/null'" +PERLOPT2="--define=__perl_requires /bin/sh -c 'cat >/dev/null'" PHPOPT="--define=__php_provides /bin/sh -c 'cat >/dev/null'" +PHPOPT2="--define=__php_requires /bin/sh -c 'cat >/dev/null'" noprovfiles='' noprov='' buildroot='' @@ -18,9 +20,11 @@ while [ $# -gt 0 ]; do case "$1" in --with-perl) PERLOPT="" + PERLOPT2="" ;; --with-php) PHPOPT="" + PHPOPT2="" ;; --buildroot=*) buildroot="${1#--buildroot=}" @@ -52,7 +56,8 @@ fi # rpmdeps output seems sorted, but resort it in case of long list split grep -v -e "^\(${noprovfiles}\)\$" | tr '\n' '\0' | \ - xargs -r -0 /usr/bin/rpmdeps "${PERLOPT}" "${PHPOPT}" --provides | \ + xargs -r -0 /usr/bin/rpmdeps "${PERLOPT}" "${PERLOPT2}" \ + "${PHPOPT}" "${PHPOPT2}" --provides | \ LC_ALL=C sort -u | grep -v -e "^\(${noprov}\)\$" exit 0