Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id EB5E71F667 for ; Sat, 12 Aug 2017 06:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750895AbdHLGut (ORCPT ); Sat, 12 Aug 2017 02:50:49 -0400 Received: from mx2.suse.de ([195.135.220.15]:57360 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750860AbdHLGus (ORCPT ); Sat, 12 Aug 2017 02:50:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 78AC8AAC8; Sat, 12 Aug 2017 06:50:47 +0000 (UTC) Date: Sat, 12 Aug 2017 08:50:47 +0200 Message-ID: From: Takashi Iwai To: Junio C Hamano Cc: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Git Mailing List , Andreas Stieger Subject: Re: [PATCH] hash: Allow building with the external sha1dc library In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Sat, 12 Aug 2017 02:42:25 +0200, Junio C Hamano wrote: > > Ævar Arnfjörð Bjarmason writes: > > > On Fri, Jul 28, 2017 at 5:58 PM, Ævar Arnfjörð Bjarmason 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 > > > > But your patch is just doing: > > > > #include > > > > 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...) > 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 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 with some include path is the intended behavior, while would work (likely in a more safer manner) in practice. I'm inclined to go for and fix SUSE sha1dc package before that, but I'd like to hear from others, too. thanks, Takashi