git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Update sha1dc from upstream & optionally make it a submodule
@ 2017-05-18 21:28 Ævar Arnfjörð Bjarmason
  2017-05-18 21:28 ` [PATCH 1/3] sha1dc: update from upstream Ævar Arnfjörð Bjarmason
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2017-05-18 21:28 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Marc Stevens, Michael Kebe, Jeff King,
	Stefan Beller, Brandon Williams,
	Ævar Arnfjörð Bjarmason

This series:

Ævar Arnfjörð Bjarmason (3):
  sha1dc: update from upstream
   
   * Fixes the Big-Endian detection on Solaris SPARC (and probably
     others) which broke the build as of 2.13.0 due to sha1dc being the
     dauflt.
   
   * Includes a patch from upstream fixing unaligned access, which broke
     SPARC even more. This replaces Junio's "[PATCH] sha1dc: fix issues
     with a big endian platform"
     (<xmqq37c4xcr6.fsf_-_@gitster.mtv.corp.google.com>) with something
     which brings in upstream as-is.
   
   * Most importantly: Uses upstream code as-is with no modifications,
     which is possible due to a pull request I sent them.

   * This patch can be picked stand-alone without [23]/3.

  sha1dc: use sha1collisiondetection as a submodule

   * Since we can now use upstream code as-is let's use it as a
     submodule.
   
     Yes there are still (solvable) UX issues with submodules, but
     there's no project better equipped to deal with them than
     git.git.

  sha1dc: remove the unused sha1dc/ directory

   * Sent as a separate patch for readability. Can be squashed into
     2/3.

 .gitmodules            |   4 +
 Makefile               |  13 +-
 hash.h                 |   2 +-
 sha1collisiondetection |   1 +
 sha1dc/LICENSE.txt     |  30 ----
 sha1dc/sha1.c          |  99 +++++++++-----
 sha1dc/sha1.h          | 122 -----------------
 sha1dc/ubc_check.c     | 363 -------------------------------------------------
 sha1dc/ubc_check.h     |  44 ------
 sha1dc_git.c           |  24 ++++
 sha1dc_git.h           |  19 +++
 11 files changed, 124 insertions(+), 597 deletions(-)
 create mode 100644 .gitmodules
 create mode 160000 sha1collisiondetection
 delete mode 100644 sha1dc/LICENSE.txt
 delete mode 100644 sha1dc/sha1.h
 delete mode 100644 sha1dc/ubc_check.c
 delete mode 100644 sha1dc/ubc_check.h
 create mode 100644 sha1dc_git.c
 create mode 100644 sha1dc_git.h

-- 
2.13.0.303.g4ebf302169


^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: Git v2.13.1 SHA1 very broken
@ 2017-06-06 12:43 Adam Dinwoodie
  2017-06-06 15:12 ` [PATCH 0/3] update sha1dc Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 21+ messages in thread
From: Adam Dinwoodie @ 2017-06-06 12:43 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Ævar Arnfjörð Bjarmason, Ramsay Jones

On Tue, Jun 06, 2017 at 08:55:04PM +0900, Junio C Hamano wrote:
> Adam Dinwoodie <adam@dinwoodie.org> writes:
> 
> > Digging briefly into the endianness detection, it appears Cygwin has
> > both _LITTLE_ENDIAN and _BIG_ENDIAN defined.  Git's detection works by
> > assuming it's in a little endian environment and switching to big endian
> > if it detects any of the defines that indicate such, and a010391 adds
> > _BIG_ENDIAN to the set of defines that indicate big endianness.
> 
> I suspect that the upstream has already fixed this one to cope with
> FreeBSD.  My preference is that we do another import on top of the
> ab/sha1dc-maint topic, below the commit on ab/sha1dc that adds the
> upstream as a submodule.

Apparently so!  a010391 brings Git up to the upstream's cc46554 ("Skip
temporary variable for SHA1DC_ALLOW_UNSIGNED_ACCESS", 2017-05-18); the
problem has been fixed in upstream's a24eef5 ("rewrote Endianness
selection", 2017-05-29).

In the interim, I'll use the CFLAGS route to try to get a v2.13.1 build
ready to release for Cygwin.

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-06-06 15:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18 21:28 [PATCH 0/3] Update sha1dc from upstream & optionally make it a submodule Ævar Arnfjörð Bjarmason
2017-05-18 21:28 ` [PATCH 1/3] sha1dc: update from upstream Ævar Arnfjörð Bjarmason
2017-05-18 21:28 ` [PATCH 2/3] sha1dc: use sha1collisiondetection as a submodule Ævar Arnfjörð Bjarmason
2017-05-20 11:13   ` Junio C Hamano
2017-05-20 11:54     ` [PATCH v2 0/2] Update sha1dc from upstream & optionally make it " Ævar Arnfjörð Bjarmason
2017-05-22 22:27       ` Junio C Hamano
2017-05-22 22:48         ` Stefan Beller
2017-05-23  3:22           ` Junio C Hamano
2017-05-23 10:55         ` Ævar Arnfjörð Bjarmason
2017-05-23 13:06           ` Junio C Hamano
2017-05-25 10:44             ` Ævar Arnfjörð Bjarmason
2017-05-25 23:31               ` Junio C Hamano
2017-05-20 11:54     ` [PATCH v2 1/2] sha1dc: update from upstream Ævar Arnfjörð Bjarmason
2017-05-20 11:54     ` [PATCH v2 2/2] sha1dc: optionally use sha1collisiondetection as a submodule Ævar Arnfjörð Bjarmason
2017-05-22  1:33       ` Junio C Hamano
2017-05-22  2:48         ` Junio C Hamano
2017-05-22  8:27           ` Ævar Arnfjörð Bjarmason
2017-05-22  8:48             ` Junio C Hamano
2017-05-25 10:47     ` [PATCH 2/3] sha1dc: " Ævar Arnfjörð Bjarmason
2017-05-18 21:28 ` [PATCH 3/3] sha1dc: remove the unused sha1dc/ directory Ævar Arnfjörð Bjarmason
  -- strict thread matches above, loose matches on Subject: below --
2017-06-06 12:43 Git v2.13.1 SHA1 very broken Adam Dinwoodie
2017-06-06 15:12 ` [PATCH 0/3] update sha1dc Ævar Arnfjörð Bjarmason
2017-06-06 15:12   ` [PATCH 1/3] sha1dc: update from upstream Ævar Arnfjörð Bjarmason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).