]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-find-requires-wrapper
- added hack-norpmlibdep patch
[packages/rpm.git] / rpm-find-requires-wrapper
index 431b45d71ede198ec6f729ec885ff858e499a9b7..9bea80602bcfc1b88c8b5ec3e0657076584823ab 100644 (file)
@@ -9,8 +9,10 @@
 
 ulimit -c 0
 
-PERLOPT="--define=__perl_requires /bin/true"
-PHPOPT="--define=__php_requires /bin/true"
+PERLOPT="--define=__perl_requires /bin/sh -c 'cat >/dev/null'"
+PERLOPT2="--define=__perl_provides /bin/sh -c 'cat >/dev/null'"
+PHPOPT="--define=__php_requires /bin/sh -c 'cat >/dev/null'"
+PHPOPT2="--define=__php_provides /bin/sh -c 'cat >/dev/null'"
 PROVARG=""
 NOPROVFILES=""
 NOPROV=""
@@ -21,10 +23,12 @@ while [ $# -gt 0 ]; do
        case "$1" in
          --with-perl)
                PERLOPT=""
+               PERLOPT2=""
                PROVARG="$PROVARG --with-perl"
                ;;
          --with-php)
                PHPOPT=""
+               PHPOPT2=""
                PROVARG="$PROVARG --with-php"
                ;;
          --buildroot=*)
@@ -84,7 +88,8 @@ tee ${FILES} | \
 
 # rpmdeps output seems sorted, but resort it in case of long list split
 grep -v -e "^\(${noreqfiles}\)\$" ${FILES} | tr '\n' '\0' | \
-       xargs -r -0 /usr/bin/rpmdeps "${PERLOPT}" "${PHPOPT}" --requires | \
+       xargs -r -0 /usr/bin/rpmdeps "${PERLOPT}" "${PERLOPT2}" \
+               "${PHPOPT}" "${PHPOPT2}" --requires | \
        LC_ALL=C sort -u | grep -v -e "^\(${noreq}\)\$" | \
        LC_ALL=C comm -2 -3 - ${PROVS} | tee ${REQS}
 
This page took 0.027416 seconds and 4 git commands to generate.