Hi,<br><br>The md5 utility on OS X does not produce the same output as the linux md5sum program. For example, in linux the output of '<span style="font-family: courier new,monospace;">md5sum temp.txt</span>' might looks this:<br>
<br><span style="font-family: courier new,monospace;">a0fbea97ae866e2120e39a11c23bf67a temp.txt</span><br><br>whereas on OS X the output of '<span style="font-family: courier new,monospace;">md5 temp.txt</span>' looks like this:<br>
<br><span style="font-family: courier new,monospace;">MD5 (temp.txt) = a0fbea97ae866e2120e39a11c23bf67a</span><br><br>Presumably bitbake is only looking at the first field (up to the first space) and so is getting the wrong value.<br>
<br>Andrew<br><br><br><div class="gmail_quote">On Thu, Dec 11, 2008 at 9:29 PM, Elvis Dowson <span dir="ltr"><<a href="mailto:elvis.dowson@mac.com">elvis.dowson@mac.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Hi Malcolm,<div> I hope that you are doing fine! </div><div><br></div><div>I got wget working, but now there is a new error relating to the computation of the md5 sum. </div><div><br></div>
<div>On the Mac the binary is called md5. On linux it is called md5sum. What I did is create a symbolic link to md5 and called it md5sum. </div><div><br></div><div>Here is the output of which command:</div><div><br></div>
<div><div><font size="2" face="Monaco"><span style="font-size: 10px;">elvis-dowsons-macbook-pro:overo-oe elvis$ which md5</span></font></div><div><font size="2" face="Monaco"><span style="font-size: 10px;">/sbin/md5</span></font></div>
<div><font size="2" face="Monaco"><span style="font-size: 10px;"><br></span></font></div><div><font size="2" face="Monaco"><span style="font-size: 10px;">elvis-dowsons-macbook-pro:overo-oe elvis$ which md5sum</span></font></div>
<div><font size="2" face="Monaco"><span style="font-size: 10px;">/usr/local/bin/md5sum</span></font></div><div><br></div><div>Now when I run the bitbake omap3-console-image command, it progresses, but gives the following error. </div>
<div><br></div><div>For some reason it is not computing the actual md5 sum, but rather returning MD5 instead. This effectively stops the build from progressing because it thinks that the checksum of the downloaded files is bad.</div>
</div><div><font size="2" face="Monaco"><span style="font-size: 10px;"><br></span></font></div><div><div class="Ih2E3d"><div><font size="2" face="Monaco"><span style="font-size: 10px;">NOTE: package quilt-native-0.46-r2: task do_fetch: started</span></font></div>
</div><div><font size="2" face="Monaco"><span style="font-size: 10px;">NOTE: The MD5Sums did not match. Wanted: '4508546d1ed0257ef7c128b6121b7208' and Got: 'MD5'</span></font></div><div><br></div><div>Is there some way to debug why?</div>
<div><br></div><div>Best regards,</div><div><br></div><font color="#888888"><div>Elvis</div><div><br></div></font></div><div><div></div><div class="Wj3C7c"><div><br><div><div>On Dec 5, 2008, at 9:34 PM, Elvis Dowson wrote:</div>
<br><blockquote type="cite"><div style="">Hi Malcom,<div> Modifying the local.conf file to include the following command worked</div><div><br></div><div><div style="margin: 0px;">FETCHCOMMAND_wget = "/usr/bin/env /usr/local/bin/wget -t 5 --passive-ftp -P ${DL_DIR} ${URI}"</div>
<div><font size="2" face="Monaco"><span style="font-size: 10px;"><br></span></font></div></div><div>Now it downloaded the required packages. However, md5sum is now giving some errors.</div><div><br></div><div><div><font size="2" face="Monaco"><span style="font-size: 10px;">sh: md5sum: command not found</span></font></div>
<div><font size="2" face="Monaco"><span style="font-size: 10px;">NOTE: The MD5Sums did not match. Wanted: '988aa098326d5f2b5b5aa4b3efe8d528' and Got: ' '</span></font></div></div><div><br></div><div>On Mac OS X, you can use the command md5 instead of md5sum.</div>
<div><br></div><div>So what I did was create a new symbolic link in /sbin called md5sum</div><div><br></div><div>So, when I type which md5sum I get the /sbin/md5sum</div><div><br></div><div><div>What should I do, to make sure it points to md5sum symbolic link?</div>
<div><br></div><div>Best regards,</div><div><br></div><div>Elvis</div></div></div></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
Openembedded-users mailing list<br>
<a href="mailto:Openembedded-users@lists.openembedded.org">Openembedded-users@lists.openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users</a><br>
<br></blockquote></div><br>