<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2018-02-13, at 12:20 PM, db wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br><blockquote type="cite">2. HEAD variants.<br></blockquote><blockquote type="cite">This is a specific MacPorts decision, based on the "reproducible builds" philosophy. It's open for debate at times, I would think.  It's easy to do it, but we just don't do it on purpose.<br></blockquote><blockquote type="cite">I have overridden this and allowed a +HEAD variant on one occasion at the request of a heavy user of the software (see the widelands Portfile).<br></blockquote><blockquote type="cite">Anyone with a passing level of MacPorts knowledge can bump a Portfile to the latest commit on their own in a few seconds, esp if it uses the github Portgroup. I do this all the time.<br></blockquote><blockquote type="cite">This could be added quite easily if MacPorts wanted to do it -- a small change in the github portgroup would likely suffice to add a +HEAD variant to all github ports.<br></blockquote><br>I have some devel ports locally, that I have to manually update for the latest commit, instead of automatically updating for the current master. I have to check that wielands port.<br><font class="Apple-style-span" color="#006312"><br></font></div></blockquote><br></div><div>For a local port repo, this bit in the portfile appears to generate a perfectly usable a HEAD variant for a github portgroup port. </div><div><br></div><div>variant HEAD description "build HEAD" {<br>   github.setup        author project HEAD<br>   checksum {}<br>}<br></div><br><div><br></div><div>As I suspected, it's very simple to implement. MacPorts could easily incorporate this if it wanted to, but it's a specific decision not to allow it. You can use this on your own devel ports if you'd like to.</div><div><br></div><div>(I thought I might just be able to override the github.version with HEAD, but that didn't seem to work for some reason. It's quite possible this could be made a bit more elegant. You have to blank out the checksum phase as the checksums vary with each HEAD commit and aren't knowable ahead of time)</div><div><br></div><div>Ken</div></body></html>