[MacPorts] #71141: gimp3-devel @2.99.1-20200223_13: fatal: unable to read tree (9046c758e7b82ffe39b1acb93160a0c9c15743ff) (was: gimp3-devel 2.99.1 failed to build, git checkout failed)
MacPorts
noreply at macports.org
Mon Oct 21 07:05:15 UTC 2024
#71141: gimp3-devel @2.99.1-20200223_13: fatal: unable to read tree
(9046c758e7b82ffe39b1acb93160a0c9c15743ff)
--------------------------+----------------------
Reporter: saxfun | Owner: dbevans
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: gimp3-devel |
--------------------------+----------------------
Changes (by ryandesign):
* owner: (none) => dbevans
* keywords: gimp3-devel =>
* status: new => assigned
* cc: mascguy (added)
Comment:
On macOS 12, the wording of the error message is a little different:
{{{
fatal: reference is not a tree: 9046c758e7b82ffe39b1acb93160a0c9c15743ff
}}}
As a workaround, you can edit the gimp3-devel Portfile and on the line
that reads:
{{{#!tcl
git.url --depth 3000 https://gitlab.gnome.org/GNOME/gimp.git
}}}
change `3000` to a larger number, such as `4000`.
Ideally the gimp3-devel port would be changed to fetch from a distfile,
not from git.
If it is not possible to fetch from a distfile, then ideally the code in
MacPorts base that fetches from git would be enhanced to fetch only the
requested commit. Then individual ports would not have the need to specify
arbitrary depth levels. The Aseprite Portfile contains an example of the
git commands necessary to achieve that.
The port should also be updated to a newer version; it's 4½ years out of
date.
--
Ticket URL: <https://trac.macports.org/ticket/71141#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list