<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4426</bug_id>
          
          <creation_ts>2013-04-29 06:10:27 +0000</creation_ts>
          <short_desc>ghostscript: do_fetch failed due to checksums mismatch</short_desc>
          <delta_ts>2013-05-02 11:30:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32702</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-29 06:10:27 +0000</bug_when>
    <thetext>ERROR: Checksum failure fetching http://downloads.ghostscript.com/public/ghostscript-9.05.tar.gz
DEBUG: Python function base_do_fetch finished
DEBUG: Python function do_fetch finished
ERROR: Function failed: Fetcher failure for URL: &apos;http://downloads.ghostscript.com/public/ghostscript-9.05.tar.gz&apos;. Checksum mismatch!
File: &apos;/build/time3/../share/downloads/ghostscript-9.05.tar.gz&apos; has md5 checksum c33b6cc7cfe3099cbc5a3f241df4397b when f7c6f0431ca8d44ee132a55d583212c1 was expected
File: &apos;/build/time3/../share/downloads/ghostscript-9.05.tar.gz&apos; has sha256 checksum 02b5c08a24bd70dc1a66e902889ba2394c44cc847b920b23eaeeeeab0ab76292 when 593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = &quot;c33b6cc7cfe3099cbc5a3f241df4397b&quot;
SRC_URI[sha256sum] = &quot;02b5c08a24bd70dc1a66e902889ba2394c44cc847b920b23eaeeeeab0ab76292&quot;
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

This patch will fix the problem:

diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.05.bb b/meta/recipes-extended/ghostscript/ghostscript_9.05.bb
index 9ec5712..2a104e5 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_9.05.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_9.05.bb
@@ -35,8 +35,8 @@ SRC_URI_class-native = &quot;${SRC_URI_BASE} \
                         file://ghostscript-native-fix-disable-system-libtiff.patch \
                         &quot;
 
-SRC_URI[md5sum] = &quot;f7c6f0431ca8d44ee132a55d583212c1&quot;
-SRC_URI[sha256sum] = &quot;593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207&quot;
+SRC_URI[md5sum] = &quot;c33b6cc7cfe3099cbc5a3f241df4397b&quot;
+SRC_URI[sha256sum] = &quot;02b5c08a24bd70dc1a66e902889ba2394c44cc847b920b23eaeeeeab0ab76292&quot;
 
 EXTRA_OECONF = &quot;--without-x --with-system-libtiff --without-jbig2dec --without-jasper \
                 --with-fontpath=${datadir}/fonts --with-install-cups --without-libidn&quot;


P.S., I&apos;m on holiday now, will send the PR on Thursday.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32732</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-29 17:49:26 +0000</bug_when>
    <thetext>The more important question is why did the checksum change?  That&apos;s the whole purpose of having these.  If no update occurred then the the upstream tarball might be corrupted or changed, can you verify against the tarball on the Autobuilder?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32745</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-30 02:03:46 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The more important question is why did the checksum change?  That&apos;s the
&gt; whole purpose of having these.  If no update occurred then the the upstream
&gt; tarball might be corrupted or changed, can you verify against the tarball on
&gt; the Autobuilder?

(In reply to comment #1)
&gt; The more important question is why did the checksum change?  That&apos;s the
&gt; whole purpose of having these.  If no update occurred then the the upstream
&gt; tarball might be corrupted or changed, can you verify against the tarball on
&gt; the Autobuilder?

Thanks for the hints, yes, I&apos;m also curious about this, I will check it when I arrive at the office on Thursday.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32841</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-05-02 11:30:22 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The more important question is why did the checksum change?  That&apos;s the
&gt; whole purpose of having these.  If no update occurred then the the upstream
&gt; tarball might be corrupted or changed, can you verify against the tarball on
&gt; the Autobuilder?

It seems that this is caused by China&apos;s GFW, I also noticed this error on other machines (not the auto builder), but it showed me another checksum, not the one in the .bb file or the one that had show before, so I will close this bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>