git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] hash: Allow building with the external sha1dc library

From
Takashi Iwai <tiwai@suse.de>
Date
Aug 12, 2017, 06:50 UTC
Message-ID
<s5h1sohxos8.wl-tiwai@suse.de>
In-Reply-To
<xmqqfucxy5u6.fsf@gitster.mtv.corp.google.com>

On Sat, 12 Aug 2017 02:42:25 +0200, Junio C Hamano wrote:

Show 32 quoted lines
> 
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> 
> > On Fri, Jul 28, 2017 at 5:58 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> >
> > I sent this last bit a tad too soon in a checkout of sha1collisiondetection.git:
> >
> >     $ make PREFIX=/tmp/local install >/dev/null 2>&1 && find /tmp/local/ -type f
> >     /tmp/local/include/sha1dc/sha1.h
> >     /tmp/local/bin/sha1dcsum
> >     /tmp/local/bin/sha1dcsum_partialcoll
> >     /tmp/local/lib/libsha1detectcoll.a
> >     /tmp/local/lib/libsha1detectcoll.so.1.0.0
> >     /tmp/local/lib/libsha1detectcoll.la
> >
> > So the upstream library expects you (and it's documented in their README) to do:
> >
> >     #include <sha1dc/sha1.h>
> >
> > But your patch is just doing:
> >
> >     #include <sha1.h>
> >
> > At best this seems like a trivial bug and at worst us encoding some
> > Suse-specific packaging convention in git, since other distros would
> > presumably want to package this in /usr/include/sha1dc/sha1.h as
> > upstream suggests. I.e. using the ambiguous sha1.h name is not
> > something upstream's doing by default, it's something you're doing in
> > your package.
> 
> I do not think I saw any updates to this thread.  Should I consider
> the topic ti/external-sha1dc now abandoned?

Sorry for the silence, as I've been too busy for other tasks (there were too many security bugs in the last weeks in many packages...)

Show 6 quoted lines
> As we have finished Git 2.14 cycle, in preparation for the next one,
> the 'next' branch will be rewound and rebuilt early next week.  I do
> not mind tentatively ejecting some topics that needs fix-ups out of
> 'next' to give them a clean restart.  If there will be a reroll that
> addresses the concerns raised during the discussion, please let me
> know.

Feel free to drop my branch, then. I'm going to resubmit the fix in anyway, hopefully in the next week.

One thing I'm not entirely sure is about including the sha1.h as
  #include <sha1dc/sha1.h>

Although the header is installed to sha1dc/sha1.h as default in the upstream package, the intention of this sha1.h is a sort of replacement of md1 (and possibly other) sha1.h. It's a drop-in. So in one side, including <sha1.h> with some include path is the intended behavior, while <sha1dc/sha1.h> would work (likely in a more safer manner) in practice.

I'm inclined to go for <sha1dc/sha1.h> and fix SUSE sha1dc package before that, but I'd like to hear from others, too.

thanks,
Takashi
Previous: Junio C HamanoNext: Takashi Iwai
Message 8 of 13 in “hash: Allow building with the external sha1dc library”
  1. hash: Allow building with the external sha1dc libraryTakashi Iwai, Jul 25, 2017
  2. Junio C HamanoJul 25, 2017
  3. Ævar Arnfjörð BjarmasonJul 28, 2017
  4. Ævar Arnfjörð BjarmasonJul 28, 2017
  5. Junio C HamanoJul 31, 2017
  6. Takashi IwaiAug 1, 2017
  7. Junio C HamanoAug 12, 2017
  8. Takashi IwaiAug 12, 2017
  9. Takashi IwaiAug 1, 2017
  10. Junio C HamanoAug 1, 2017
  11. Takashi IwaiAug 1, 2017
  12. Ævar Arnfjörð BjarmasonAug 1, 2017
  13. Takashi IwaiAug 1, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.