Kaydet (Commit) d7c7061f authored tarafından Peter Foley's avatar Peter Foley

fix broken download links for dbghelp.dll and gdiplus.dll

Change-Id: Icb567a848162bcee072476e817cc82278bddfd99
üst 84b330c8
...@@ -179,8 +179,8 @@ for i in $filelist ; do ...@@ -179,8 +179,8 @@ for i in $filelist ; do
done done
if [ "$COM" = "MSC" ]; then if [ "$COM" = "MSC" ]; then
downloaditem "http://download.microsoft.com/download/platformsdk/Redist/5.0.2195.1/W9XNT4/EN-US/" "dbghinst.EXE" "096f1d53d9ba09cde27d6f7c2ea6cc47" downloaditem "http://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools/" "dbg_x86.msi" "2bd67a7b00507ad93539e138a4a6a2bf"
downloaditem "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/" "WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd" downloaditem "http://download.microsoft.com/download/E/9/F/E9FCA9E9-9908-4D8F-B491-8E8A4C294C01/" "WindowsXP-KB958911-x86-ENU.exe" "ff084c5815b0672d54628158b820f5b1"
fi fi
if [ -f $start_dir/sources.ver -a ! -d $start_dir/.git ] ; then if [ -f $start_dir/sources.ver -a ! -d $start_dir/.git ] ; then
...@@ -215,23 +215,21 @@ if [ "$COM" = "MSC" -a -n "$md5sum" ]; then ...@@ -215,23 +215,21 @@ if [ "$COM" = "MSC" -a -n "$md5sum" ]; then
# This can be run only on Windows itself (Cygwin) # This can be run only on Windows itself (Cygwin)
TMPUNPACK=`cygpath -d $TARFILE_LOCATION/tmp` TMPUNPACK=`cygpath -d $TARFILE_LOCATION/tmp`
chmod a+w $TARFILE_LOCATION/tmp chmod a+w $TARFILE_LOCATION/tmp
if [ ! -f ./external/dbghelp/dbghelp.dll -a -f $TARFILE_LOCATION/dbghinst.EXE ]; then if [ ! -f ./external/dbghelp/dbghelp.dll -a -f $TARFILE_LOCATION/dbg_x86.msi ]; then
if [ ! -x `cygpath $TARFILE_LOCATION`/dbghinst.EXE ]; then msiexec /a `cygpath -d $TARFILE_LOCATION/dbg_x86.msi` /qn TARGETDIR=$TMPUNPACK SHORTFILENAMES=1
chmod +x `cygpath $TARFILE_LOCATION`/dbghinst.EXE dbghelp_dll_path=PFiles/DbgTools/dbghelp.dll
fi sum=`$md5sum $md5special $TARFILE_LOCATION/tmp/$dbghelp_dll_path | sed "s/ .*//"`
$TARFILE_LOCATION/dbghinst.EXE /T:$TMPUNPACK /C if [ "$sum" = "4003e34416ebd25e4c115d49dc15e1a7" ]; then
sum=`$md5sum $md5special $TARFILE_LOCATION/tmp/dbghelp.exe | sed "s/ .*//"` cp $TARFILE_LOCATION/tmp/$dbghelp_dll_path ./external/dbghelp/dbghelp.dll
if [ "$sum" = "cd3086a91e37965dd761ef5fd5df5b15" ]; then
unzip -LL -j -o -d ./external/dbghelp $TARFILE_LOCATION/tmp/dbghelp.exe
fi fi
fi fi
if [ ! -f ./external/gdiplus/gdiplus.dll -a -f $TARFILE_LOCATION/WindowsXP-KB975337-x86-ENU.exe ]; then if [ ! -f ./external/gdiplus/gdiplus.dll -a -f $TARFILE_LOCATION/WindowsXP-KB958911-x86-ENU.exe ]; then
gdiplus_dll_path=asms/10/msft/windows/gdiplus/gdiplus.dll gdiplus_dll_path=SP3QFE/asms/10/msft/windows/gdiplus/gdiplus.dll
chmod +x `cygpath $TARFILE_LOCATION`/WindowsXP-KB975337-x86-ENU.exe chmod +x `cygpath $TARFILE_LOCATION`/WindowsXP-KB958911-x86-ENU.exe
# Run it through cmd so that the UAC prompt is displayed # Run it through cmd so that the UAC prompt is displayed
echo echo
echo "NOTE: We are running the Microsoft KB975337 security fix installer" echo "NOTE: We are running the Microsoft KB958911 security fix installer"
echo "to get gdiplus.dll. You will most probably get a UAC prompt now." echo "to get gdiplus.dll. You will most probably get a UAC prompt now."
echo "If you trust us, just enter your administrator password." echo "If you trust us, just enter your administrator password."
echo "The security fix is run with the /extract switch to just unpack" echo "The security fix is run with the /extract switch to just unpack"
...@@ -245,17 +243,17 @@ if [ "$COM" = "MSC" -a -n "$md5sum" ]; then ...@@ -245,17 +243,17 @@ if [ "$COM" = "MSC" -a -n "$md5sum" ]; then
echo echo
echo echo
echo echo
cmd /c "`cygpath -d $TARFILE_LOCATION/WindowsXP-KB975337-x86-ENU.exe` /extract:$TMPUNPACK /q" cmd /c "`cygpath -d $TARFILE_LOCATION/WindowsXP-KB958911-x86-ENU.exe` /extract:$TMPUNPACK /q"
if [ -f $TARFILE_LOCATION/tmp/$gdiplus_dll_path ]; then if [ -f $TARFILE_LOCATION/tmp/$gdiplus_dll_path ]; then
echo "Extraction succeeded" echo "Extraction succeeded"
sum=`$md5sum $md5special $TARFILE_LOCATION/tmp/$gdiplus_dll_path | sed "s/ .*//"` sum=`$md5sum $md5special $TARFILE_LOCATION/tmp/$gdiplus_dll_path | sed "s/ .*//"`
if [ "$sum" = "4721ab485e0c29cd1617a5f296b9cc47" ]; then if [ "$sum" = "3a95b4d80a3586ab1e2f0c608608ebac" ]; then
cp $TARFILE_LOCATION/tmp/$gdiplus_dll_path ./external/gdiplus/gdiplus.dll cp $TARFILE_LOCATION/tmp/$gdiplus_dll_path ./external/gdiplus/gdiplus.dll
else else
echo "But unexpected checksum of $gdiplus_dll_path" echo "But unexpected checksum of $gdiplus_dll_path"
fi fi
else else
echo "WindowsXP-KB975337-x86-ENU.exe did not unpack the expected $gdiplus_dll_path" echo "WindowsXP-KB958911-x86-ENU.exe did not unpack the expected $gdiplus_dll_path"
fi fi
fi fi
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment