<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">在 2020年3月25日,上午3:53,Jackson Isaac <<a href="mailto:ijackson@macports.org" class="">ijackson@macports.org</a>> 写道:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Xim,<br class=""><br class="">On Tue, Mar 24, 2020 at 5:33 PM 陈国凯 <<a href="mailto:chenguokai17@mails.ucas.ac.cn" class="">chenguokai17@mails.ucas.ac.cn</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">I found no maintainers for port stlink and I wanted to take it if possible.<br class="">However, I am quite confused with the portfile mechanism of this port.<br class=""><br class="">After reading the wiki, I know that this portfile specifies a Github Repo from which the port system obtains source code. While there are two problems left for me.<br class=""><br class="">1. I tried editing portfile locally, changing the version number but port would only try fetching the source code from mirrors of MacPorts, rather than fetching directly from Github upstream. Is there a way for me to test my modifications locally? And how does the mirroring mechanism work? If one changed the portfile configuration and merged changes into port tree, would the mirrors be synced automatically?<br class=""></blockquote><br class="">To fetch the source code/release tarball from upstream instead of<br class="">mirrors, use the following command:<br class="">sudo port -v fetch --no-mirror <portname><br class=""><br class="">Once the Portfile is updated and merged into master, the mirrors start<br class="">to pickup the latest Portfile (there might be delays involved before<br class="">all mirrors are up to date).<br class=""><br class=""><blockquote type="cite" class="">2. I cannot figure out to whom the checksums belongs. I downloaded all 1.6.0 source code from Github release page while none of them matches the checksum specified in the portfile. How can I obtain the file with the expected checksum from Github (not from mirrors because I intend to make an upgrade afterwhile so that I should find a way to configure checksum)<br class=""></blockquote><br class="">The checksum you see on Github release page might have been computed<br class="">using a different checksum algorithm.<br class=""><br class="">If you download and run the rmd160 and sha256 checksum on the package,<br class="">then you should get the same checksum as mentioned in the portfile.<br class="">To make this easy, when you update the Portfile you can run the<br class="">following command<br class=""><br class="">sudo port -v checksum <portname><br class=""><br class="">This will automatically calculate the correct checksum for the package<br class="">downloaded from the upstream.<br class=""><br class="">Stay safe,<br class="">Jackson Isaac<br class=""></div></div></blockquote></div><div class=""><br class=""></div><div class="">Hi Jackson,</div><div class=""><br class=""></div><div class="">I have figured out where the file comes from with the guidance of Rainer. After that the checksum works well. Thanks for your reply with additional information. :)</div><div class=""><br class=""></div>Regards,<br class=""><div class="">
<div dir="auto" style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Xim</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="mailto:chenguokai17@mails.ucas.ac.cn" class="">chenguokai17@mails.ucas.ac.cn</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>