Problem fetching with git in MacPorts

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Wed May 17 16:53:32 UTC 2023


Robert, it looks like you might be seeing this Let's Encrypt known problem:
https://trac.macports.org/wiki/ProblemHotlist#letsencrypt

If so, the best solution is not to replace /usr/bin/git, but to ask
Codeberg owners to remove the expired certificate as described in that
article.  Note the special instructions for Mac OS 10.13/10.14.


On Wed, May 17, 2023 at 6:04 AM Robert Kennedy <amtor at hotmail.com> wrote:

> Thanks Joshua.  That was exactly what was needed.
>
> Perhaps a ticket should be created recommending that "git.cmd" be added
> to the MacPorts Guide.
>
> Rob
> ------------------------------
> *From:* Joshua Root <jmr at macports.org>
> *Sent:* May 17, 2023 4:47 AM
> *To:* Robert Kennedy <amtor at hotmail.com>; MacPorts Development <
> macports-dev at lists.macports.org>
> *Subject:* Re: Problem fetching with git in MacPorts
>
> On 17/5/2023 07:44, Robert Kennedy wrote:
> > I am unable to fetch a file in a git repo using MacPorts.  I get an SSL
> > expired error.
> >
> >     fatal: unable to access
> >     'https://codeberg.org/schilytools/schilytools.git/': *SSL
> >     certificate problem: certificate has expired*
> >     *Command failed: /usr/bin/git clone* --progress --depth=1
> >     https://codeberg.org/schilytools/schilytools.git
> >
> /opt/local/var/macports/build/_Users_grinch_Development_MacPorts_local-repo_ports_devel_smake/smake/work/schilytools-2023-04-19
> 2>&
> >     Exit code: 128
> >
> > Please note that MacPorts is trying to use "*/usr/bin/git*" which is
> > OLD.  I can fetch the archive in the Terminal using the recent version
> > of git installed by MacPorts at "*/opt/local/bin/git*".
> >
> > "*/opt/local/bin/git*" is also in my $PATH.  When I run "*which git*", I
> > get "*/opt/local/bin/git*".
> >
> > If there a config setting in MacPorts to tell it to use git located at
> > "/opt/local/bin/git"?
>
> The Portfile option is 'git.cmd'.
>
> - Josh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20230517/cc8384a0/attachment.htm>


More information about the macports-dev mailing list