Font dependencies
authorAnas Nashif <anas.nashif@intel.com>
Thu, 11 Oct 2012 22:47:45 +0000 (15:47 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 3 Feb 2013 00:44:16 +0000 (16:44 -0800)
autodeps/linux.prov
autodeps/linux.req

index b858e6f6fce4db1b9b948d6eb4e40a8d3053bf20..64e490e7f9be2ee034504b5cdbbab2b86274d3e8 100644 (file)
@@ -15,6 +15,8 @@ pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/bin/python.\..$'))
 tcllist=
 monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$"))
 firmwarelist=($(printf "%s\n" "${filelist[@]}" | grep "/lib/firmware/"))
+pkgconfiglist=($(printf "%s\n" "${filelist[@]}" | egrep '\.pc$'))
+fontlist=($(printf "%s\n" "${filelist[@]}" | egrep -i "/usr/share/fonts/.*\.(ttf|otf|pfa)$"))
 
 #
 # --- Alpha does not mark 64bit dependencies
@@ -79,6 +81,16 @@ if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then
     printf "%s\n" "${monolist[@]}" | MONO_PATH=$MONO_PREFIX/lib${MONO_PATH:+:$MONO_PATH} prefix=$MONO_PREFIX $MONO_PREFIX/bin/mono-find-provides || echo "WARNING: MONO RPM PROVIDES WERE NOT GENERATED FOR THIS BUILD!!" 1>&2
 fi
 
+#
+# --- pkgconfig provides
+[ -x /usr/lib/rpm/pkgconfigdeps.sh -a -n "$pkgconfiglist" ] &&
+     printf "%s\n" "${pkgconfiglist[@]}" | /usr/lib/rpm/pkgconfigdeps.sh -P | sort -u
+
+#
+# --- font provides
+[ -x /usr/lib/rpm/fontconfig.prov -a -n "$fontlist" ] &&
+     printf "%s\n" "${fontlist[@]}" | /usr/lib/rpm/fontconfig.prov | sort -u
+
 #
 # --- Kernel module exported symbols
 [ -x /usr/lib/rpm/find-provides.ksyms ] &&
index be6ee4f7bb0ca5e9ddce7f4925e98de95c8adf54..cc19f5fee4c830b089ac1eda55eacaf8b56f0e21 100644 (file)
@@ -33,6 +33,7 @@ perllist=()
 pythonlist=($(printf "%s\n" "${filelist[@]}" | egrep '/usr/lib[^/]*/python.\..'))
 tcllist=()
 monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)(\\.config)?\$"))
+pkgconfiglist=($(printf "%s\n" "${filelist[@]}" | egrep '\.pc$'))
 
 #
 # --- Alpha does not mark 64bit dependencies
@@ -141,6 +142,11 @@ if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then
     printf "%s\n" "${monolist[@]}" | MONO_PATH=$MONO_PREFIX/lib${MONO_PATH:+:$MONO_PATH} prefix=$MONO_PREFIX $MONO_PREFIX/bin/mono-find-requires || echo "WARNING: MONO RPM REQUIRES WERE NOT GENERATED FOR THIS BUILD!!" 1>&2
 fi
 
+#
+# --- pkgconfig requires
+[ -x /usr/lib/rpm/pkgconfigdeps.sh -a -n "$pkgconfiglist" ] &&
+     printf "%s\n" "${pkgconfiglist[@]}" | /usr/lib/rpm/pkgconfigdeps.sh -R | sort -u
+
 #
 # --- Kernel module imported symbols
 [ -x ${0%/*}/find-requires.ksyms ] &&