Bug 546461

Summary: fetchmsttfonts: curl needs option "-L" (does not handle relocated web page/fonts)
Product: [openSUSE] openSUSE 11.2 Reporter: Harald Koenig <koenig>
Component: InstallationAssignee: Marcus Meissner <meissner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: dr, forgotten_m1ELUxQFxN, forgotten_tCnyPY8iPq, novellbmw, razuah, ripper, sinisa
Version: Factory   
Target Milestone: ---   
Hardware: i586   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Harald Koenig 2009-10-13 12:25:02 UTC
"zypper update" on factory just showed

Retrieving: fetchmsttfonts-11.1-6.1.noarch.rpm [done]
Installing: fetchmsttfonts-11.1-6.1 [done]
Running: fetchmsttfonts-11.1-6.1-fetchmsttfonts.sh.txt  (fetchmsttfonts, /var/adm/update-scripts)
...
andale32.exe (http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe):
  Fetching   ... done
  Extracting ... failed ... deleted!
andale32.exe (http://jaist.dl.sourceforge.net/sourceforge/corefonts/andale32.exe):
  Fetching   ... done
  Extracting ... failed ... deleted!
...

because curl did not get the font files (while wget would do the right job, or "curl -L"):


# curl -s --speed-limit 3500 --speed-time 15 -o andale32.exe http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe

# ll andale32.exe 
-rw-r--r-- 1 root root 374 2009-10-13 14:20 andale32.exe

# cat  andale32.exe 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://downloads.sourceforge.net/sourceforge/corefonts/andale32.exe?download&amp;failedmirror=kent.dl.sourceforge.net">here</a>.</p>
<hr>
<address>Apache Server at kent.dl.sourceforge.net Port 80</address>
</body></html>

# wget  http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
--2009-10-13 14:20:49--  http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe
Resolving kent.dl.sourceforge.net... 212.219.56.167
Connecting to kent.dl.sourceforge.net|212.219.56.167|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/sourceforge/corefonts/andale32.exe?download&failedmirror=kent.dl.sourceforge.net [following]
--2009-10-13 14:20:49--  http://downloads.sourceforge.net/sourceforge/corefonts/andale32.exe?download&failedmirror=kent.dl.sourceforge.net
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://surfnet.dl.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe [following]
--2009-10-13 14:20:49--  http://surfnet.dl.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe
Resolving surfnet.dl.sourceforge.net... 130.59.138.21, 2001:620:0:1b::21
Connecting to surfnet.dl.sourceforge.net|130.59.138.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 198384 (194K) [application/x-msdos-program]
Saving to: `andale32.exe.1'

100%[=========================================================================================>] 198,384      746K/s   in 0.3s    

2009-10-13 14:20:49 (746 KB/s) - `andale32.exe.1' saved [198384/198384]

# ll andale32.exe.1 
-rw-r--r-- 1 root root 198384 2002-08-15 16:33 andale32.exe.1




# curl -L -s --speed-limit 3500 --speed-time 15 -o andale32.exe http://kent.dl.sourceforge.net/sourceforge/corefonts/andale32.exe

# ll andale32.exe 
-rw-r--r-- 1 root root 198384 2009-10-13 14:23 andale32.exe

# cabextract -l andale32.exe 
Viewing cabinet: andale32.exe
 File size | Date       Time     | Name
-----------+---------------------+-------------
        23 | 27.08.1998 15:51:44 | fontinst.inf
       506 | 04.09.1998 11:18:44 | andale.inf
     44032 | 05.06.1998 09:26:22 | fontinst.exe
    105468 | 12.11.1998 07:18:26 | AndaleMo.TTF
     74960 | 15.07.1997 06:53:44 | ADVPACK.DLL
      4608 | 15.07.1997 06:53:44 | W95INF32.DLL
      2272 | 15.07.1997 06:53:44 | W95INF16.DLL

All done, no errors.
Comment 1 David Bailey 2009-10-13 13:44:59 UTC
Confirming bug and fix on openSUSE 11.2 milestone 8 on x86_64.
Comment 2 Marcus Meissner 2009-10-13 15:12:08 UTC
umm yes.


i fixed it for 11.0 and 11.1 but forgot factory.

i changed the paths to the current ones in the script, no follow.
Comment 3 Harald Koenig 2009-10-13 15:21:33 UTC
with the following small patch, fetchmsttfonts works fine for me even with "factory paths".  so I'd suggest to change both the URLs *and* the  CURL_OPTIONS,
just in case... ;-)



--- /var/adm/update-scripts/fetchmsttfonts-11.1-6.1-fetchmsttfonts.sh.txt~      2009-10-05 16:39:52.000000000 +0200
+++ /var/adm/update-scripts/fetchmsttfonts-11.1-6.1-fetchmsttfonts.sh.txt       2009-10-13 14:26:02.657077287 +0200
@@ -30,7 +30,7 @@
 internap \
 "
 
-CURL_OPTIONS="-s --speed-limit 3500 --speed-time 15"
+CURL_OPTIONS="-L -s --speed-limit 3500 --speed-time 15"
 
 if [ ! -f /usr/bin/id -o ! -f /usr/bin/cabextract -o ! -f /usr/sbin/fonts-config ]; then
  echo "Running in non-chrooted (install into directory) mode... Exit safely."
Comment 4 Lubos Lunak 2009-10-16 13:14:52 UTC
*** Bug 547319 has been marked as a duplicate of this bug. ***
Comment 5 Sinisa Bandin 2009-10-18 15:50:32 UTC
Still not fixed in RC1.
I did an online update during DVD install, and got all the "... failed, deleted" results as before
Comment 6 Forgotten User m1ELUxQFxN 2009-10-18 16:39:43 UTC
Found the same bug in RC1 on x86 (clean install). Applied the fix mentioned in Comment #3 and script executed without errors.
Comment 7 Stephan Binner 2009-10-19 05:45:16 UTC
*** Bug 548054 has been marked as a duplicate of this bug. ***
Comment 8 Marcus Meissner 2009-10-19 11:14:46 UTC
yes, i submitted fixed package + patchinfo last week already, its jiust not checked  in yet.
Comment 9 Stephan Binner 2009-10-20 05:02:00 UTC
*** Bug 548223 has been marked as a duplicate of this bug. ***
Comment 10 Forgotten User tCnyPY8iPq 2009-10-29 16:52:48 UTC
Still an issue in 11.2 RC2.
Will this be fixed before final release?
Comment 11 Marcus Meissner 2009-10-30 10:49:37 UTC
yes.

publishing test updates was taking just longer due to switch from factory to 11.2

we have just approved a new fetchmsttfonts patch
Comment 12 Forgotten User m1ELUxQFxN 2009-11-01 22:38:00 UTC
Just tested with a clean install of 11.2 RC2. The fetchmsttfonts that is pulled in via online update does work now.

Thanks a lot!