pck-update: restore build requirement detection for *.so requirements

This commit is contained in:
Silvan Calarco 2012-11-07 22:13:55 +01:00
parent 15825d0a4b
commit d9a14c4efd
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Changes in version 1.14.1 - _TO*Hacklab release Changes in version 1.14.1 - _TO*Hacklab release
Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com> Fri Nov 09 2012 Davide Madrisan <davide.madrisan(a)gmail.com>
+ bugfix
* plugins/pck-update.in - Silvan Calarco:
Restore build requirement detection for *.so requirements
+ improvement + improvement
* plugins/spec-create - Davide Madrisan: * plugins/spec-create - Davide Madrisan:

View File

@ -2244,7 +2244,7 @@ $(echo $solibpath | sed "s|-[0-9.]*\.so|.so|")"
echo "\ echo "\
#$req: library not reported by ldconfig; run \`ldconfig' and try again" #$req: library not reported by ldconfig; run \`ldconfig' and try again"
fi fi
elif [[ "$req" =~ .*\(.*\) ]]; then elif [[ "$req" =~ .*\(.*\) || "$req" =~ .*\.so ]]; then
# other a(b) requirements # other a(b) requirements
rpm -q --qf %{name} --whatprovides "$req" &>/dev/null && rpm -q --qf %{name} --whatprovides "$req" &>/dev/null &&
buildreq="$(rpm -q --qf %{name} --whatprovides "$req")" || buildreq="$(rpm -q --qf %{name} --whatprovides "$req")" ||