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=""
case "$1" in
--with-perl)
PERLOPT=""
+ PERLOPT2=""
PROVARG="$PROVARG --with-perl"
;;
--with-php)
PHPOPT=""
+ PHPOPT2=""
PROVARG="$PROVARG --with-php"
;;
--buildroot=*)
# 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}