+2008-04-18 Wade Berrier <wberrier@novell.com>
+
+ * scripts/mono-find-requires.in: Add env var to ignore scanning
+ of .config files.
+ Fix extra whitespace when no config reqs are found.
+
2008-04-17 Zoltan Varga <vargaz@gmail.com>
* configure.in: Enable the valgrind header check on amd64 too.
# Set the prefix, unless it is overriden (used when building mono rpms)
: ${prefix=@prefix@}
+# Can override .config scanning if specified
+: ${IGNORE_CONFIG_SCAN=0}
+
libdir=$prefix/@reloc_libdir@
bindir=$prefix/bin
done
)
+if [ $IGNORE_CONFIG_SCAN -eq 0 ] ; then
+
rpm_config_REQUIRES=$(
# Parse the xml .config files to see what native binaries we call into
# TODO: also check monodis --moduleref
# Resolve provides to packages, warning on missing to stderr
config_REQUIRES=$(
+ first=1 # avoid an empty line if no .config reqs are found
for i in ${rpm_config_REQUIRES[@]} ; do
out=$(rpm -q --whatprovides --queryformat "%{NAME}\n" $i)
if [ $? -eq 0 ] ; then
+ if [ $first -eq 1 ] ; then
+ echo ""
+ first=0
+ fi
echo $out
else
# echo to stderr
done
)
+fi
+
# Note about above:
# Use to do: system("rpm -q --whatprovides --queryformat \"%{NAME}\n\" ""\""req"'$libext'""\"")
# rpmlint prefers to have lib names instead of package names. There was a reason I was using package names but it slips me now...
# TODO: make this use the mono-find-provides script, to share code
# Filter out dups from both lists
-REQUIRES=$(echo "$REQUIRES
-$config_REQUIRES" | sort | uniq)
+REQUIRES=$(echo "$REQUIRES $config_REQUIRES" | sort | uniq)
PROVIDES=$(echo "$PROVIDES" | sort | uniq)
#