Building port from GitHub commit rather than tag

Christopher Jones jonesc at
Wed Sep 27 18:14:02 UTC 2017


I am trying to update a port, where I need to use a GitHub commit ID rather than a tag to pick up a fix committed after the release for Xcode 9 support.

I have done this in the past with code like

# Use git commit to work around Xcode 9 issue
github.setup        root-mirror root 07c9d8d023a0f2cee184084b82387b931136099e
livecheck.version   6-10-06

The fetch and extract works fine, but I get

-->  Computing dependencies for root6
--->  Fetching archive for root6
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <>
--->  Attempting to fetch root6- from
--->  Attempting to fetch root6- from
--->  Attempting to fetch root6- from
--->  Fetching distfiles for root6
--->  Verifying checksums for root6
--->  Extracting root6

github PortGroup: Error: tarball name is not as expected. This might mean that the repository name is different than set in the Portfile. Please review and try to correct.

Error: Failed to extract root6: Unexpected github tarball extract.
Error: See /opt/local/var/macports/logs/_Users_chris_Projects_MacPorts_ports_science_root6/root6/main.log for details.
Error: Follow to report a bug.
Error: Processing of port root6 failed

which I have not seen before.

I can understand what its telling me, I think, that the build area

Oberon ~ > ls `port work root6`

is not what it expects, but I cannot figure out how to fix this. The repository name is indeed in this case different to the extracted tarball. How do I tell the Portfile this is OK ?

cheers Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-dev mailing list