[MacPorts] #54602: git @2.14.1 generates corrupt SHA1 hashes on Tiger when built with gcc42, but works OK when built with gcc6
MacPorts
noreply at macports.org
Mon Aug 14 01:53:10 UTC 2017
#54602: git @2.14.1 generates corrupt SHA1 hashes on Tiger when built with gcc42,
but works OK when built with gcc6
--------------------+-----------------
Reporter: kencu | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: tiger | Port: git
--------------------+-----------------
This is a somewhat odd one. It's a corner case to be sure, but I thought
I'd note it here as others are likely to run into it as well, I think.
Came across this after the recent upgrade of git, which builds without
errors with gcc-4.2 by default on Tiger. On Tiger, git was unable to add
or commit files after the upgrade to 2.14.1; also unable to clone
repositories, with errors such as:
{{{
$ sudo git clone https://github.com/kencu/TigerPorts.git
Cloning into 'TigerPorts'...
remote: Counting objects: 475, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 475 (delta 0), reused 9 (delta 0), pack-reused 465
Receiving objects: 100% (475/475), 206.52 KiB | 538.00 KiB/s, done.
fatal: pack is corrupted (SHA1 mismatch)
fatal: index-pack failed
}}}
I tried rebuilding it again using the default gcc-4.2, but ran into the
same errors.
Rebuilding git 2.14.1 using gcc6 however generates a normally-working git:
{{{
$ sudo git clone https://github.com/kencu/TigerPorts.git
Cloning into 'TigerPorts'...
remote: Counting objects: 475, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 475 (delta 0), reused 9 (delta 0), pack-reused 465
Receiving objects: 100% (475/475), 206.52 KiB | 599.00 KiB/s, done.
Resolving deltas: 100% (112/112), done.
}}}
Just to make it nice and confusing, the same version of git works
perfectly well on Leopard PPC when built with gcc-4.2.
--
Ticket URL: <https://trac.macports.org/ticket/54602>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list