Ryan,

Thanks for the detailed reply.  I'll give your option #1 a try.

Jim
Seattle, WA 98115

> On 06/23/2026, at 5:53 PM, Ryan Carsten Schmidt <[email protected]> 
> wrote:
> 
> On Jun 23, 2026, at 18:44, Jim Secan wrote:
>> 
>> 
>> Is there no way I can recover using the archive parts I have in my backup 
>> other than via a rebuild using git?
> 
> I'm not sure if it was intended for there to be a way to do this. But there 
> are other ways to get older Portfiles than by using git.
> 
> "port install" accepts not only port names but also URLs. So you can browse 
> our list of ImageMagick packages at:
> 
> https://packages.macports.org/ImageMagick/
> 
> and pick whichever .tbz2 file you want. For example if you want 6.9.12-46_0:
> 
> sudo port install 
> https://packages.macports.org/ImageMagick/ImageMagick-6.9.13-46_0+openexr+x11.darwin_11.x86_64.tbz2
> 
> You probably don't need to match up the Darwin version and architecture 
> because MacPorts won't actually install the binary; it'll extract the 
> Portfile from the archive and build it from source on your system.
> 
> You can even point MacPorts at a Portfile from your backups, whether that's 
> in your sources directory or part of an installed archive, but again it'll be 
> rebuilt from source on your system.
> 
> 
>> For example, the instructions say to "Replace 
>> "686ea4fa0fddeb03fdf2fc04dded68e05181bc95" with the commit you're interested 
>> in" but you have to know a priori where that number comes from, which I 
>> don't.
> 
> If you want to continue down the path of using git, here's how. 
> 
> You're quoting from step 2. The answer is in step 1, where it says to browse 
> the history of the port. You can get there eventually through the link to the 
> top of the repository given in the how-to, if you know what category the port 
> is in (which you can get from "port info"), or a bit more directly through 
> the ports website. For example, go to:
> 
> https://ports.macports.org/port/ImageMagick/details/
> 
> Press the "GitHub" link which takes you to:
> 
> https://github.com/macports/macports-ports/blob/master/graphics/ImageMagick/Portfile
> 
> Press the "History" link which takes you to:
> 
> https://github.com/macports/macports-ports/commits/master/graphics/ImageMagick/Portfile
> 
> The first line shown there today is:
> 
> "ImageMagick: Update to 6.9.13-50"
> 
> The preceding commit is therefore was at a previous version. Which one? 
> Looking five lines down I see the next commit that mentions updating the 
> version, which is:
> 
> "ImageMagick, perlmagick: Update to 6.9.13-46"
> 
> So the commits on lines 2–5 all install that version. If that's the version 
> you'd like to install, go to the most recent of those lines -- line 2 -- 
> which says:
> 
> "ImageMagick: Add runtime dependencies"
> 
> and look at the right, where it gives the truncated commit hash:
> 
> 08846a7
> 
> You can click the overlapping-squares button to its right to copy the 
> non-truncated hash to the clipboard, and then proceed with the how-to using 
> that value.
> 
> 
> You'd think it might be possible to "sudo port install" a URL to a Portfile 
> on GitHub or other web site, but that doesn't appear to work. It appears to 
> only accept URLs to binary archives, out of which it will extract the 
> Portfile, after verifying the archive's integrity.


Reply via email to