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

Re: [PATCH] Makefile: allow NO_DC_SHA1_SUBMODULE to be set in config.mak

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 12, 2017, 21:06 UTC
Message-ID
<CACBZZX4DFXYNZyU-QPrun2g4zTpt8u6yE6DsEGsQvOEhUNRd8Q@mail.gmail.com>
In-Reply-To
<xmqqk1xr204t.fsf@gitster.mtv.corp.google.com>
On Tue, Dec 12, 2017 at 8:53 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 21 quoted lines
> Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
>
>> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
>> ---
>>
>> Hi Junio,
>>
>> Could you please add (or squash) this on top of the 'ab/sha1dc-build'
>> branch, so that I can build with NO_DC_SHA1_SUBMODULE=NoThanks in my
>> config.mak.
>
> Makes sense.  The patch looks scary by appearing to move the
> includes far to the front of the Makefile, but it in fact is moving
> the NO_DC_SHA1_SUBMODULE block slightly down and it is a sensible
> and safe move.
>
> I actually think that the block can go even further down, perhaps
> close to the run of choices "what variant are we building?" we make
> at around we have "ifdef NO_CURL".
>
> Ævar?

Makes sense to me, do you want to squash this + your proposed edit & I'll pick it up if there's another version, or I can re-submit.

Show 26 quoted lines
>> diff --git a/Makefile b/Makefile
>> index 929b49b04..91bbb0ed8 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -1042,6 +1042,10 @@ EXTLIBS =
>>
>>  GIT_USER_AGENT = git/$(GIT_VERSION)
>>
>> +include config.mak.uname
>> +-include config.mak.autogen
>> +-include config.mak
>> +
>>  ifndef NO_DC_SHA1_SUBMODULE
>>       ifndef DC_SHA1_EXTERNAL
>>               ifneq ($(wildcard sha1collisiondetection/lib/sha1.h),sha1collisiondetection/lib/sha1.h)
>> @@ -1053,10 +1057,6 @@ whatever reason define NO_DC_SHA1_SUBMODULE=NoThanks)
>>       endif
>>  endif
>>
>> -include config.mak.uname
>> --include config.mak.autogen
>> --include config.mak
>> -
>>  ifdef DEVELOPER
>>  CFLAGS += $(DEVELOPER_CFLAGS)
>>  endif
Previous: Jonathan TanNext: Junio C Hamano
Message 5 of 8 in “Makefile: allow NO_DC_SHA1_SUBMODULE to be set in config.mak”
  1. Makefile: allow NO_DC_SHA1_SUBMODULE to be set in config.makRamsay Jones, Dec 12, 2017
  2. Junio C HamanoDec 12, 2017
  3. Junio C HamanoDec 12, 2017
  4. Jonathan TanDec 12, 2017
  5. Ævar Arnfjörð BjarmasonDec 12, 2017
  6. Junio C HamanoDec 12, 2017
  7. Junio C HamanoDec 12, 2017
  8. Ævar Arnfjörð BjarmasonDec 12, 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.