Building port from GitHub commit rather than tag

Christopher Jones jonesc at hep.phy.cam.ac.uk
Wed Sep 27 18:14:02 UTC 2017


Hi,

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
version             6.10.06.01
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: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch root6-6.10.06.01_0+avahi+cocoa+cxx17+fftw3+fitsio+gcc7+graphviz+gsl+http+mariadb+minuit2+opengl+python27+roofit+soversion+sqlite3+ssl+tmva+veccore+xml+xrootd.darwin_17.x86_64.tbz2 from https://packages.macports.org/root6
--->  Attempting to fetch root6-6.10.06.01_0+avahi+cocoa+cxx17+fftw3+fitsio+gcc7+graphviz+gsl+http+mariadb+minuit2+opengl+python27+roofit+soversion+sqlite3+ssl+tmva+veccore+xml+xrootd.darwin_17.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/root6
--->  Attempting to fetch root6-6.10.06.01_0+avahi+cocoa+cxx17+fftw3+fitsio+gcc7+graphviz+gsl+http+mariadb+minuit2+opengl+python27+roofit+soversion+sqlite3+ssl+tmva+veccore+xml+xrootd.darwin_17.x86_64.tbz2 from http://lil.fr.packages.macports.org/root6
--->  Fetching distfiles for root6
--->  Verifying checksums for root6
--->  Extracting root6
Error: 

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 https://guide.macports.org/#project.tickets 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`
root-project-root-07c9d8d

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: <http://lists.macports.org/pipermail/macports-dev/attachments/20170927/e3895f9a/attachment.html>


More information about the macports-dev mailing list