From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0NIgN5OqymMRsgAAbAwnHQ (envelope-from ) for ; Fri, 20 Jan 2023 15:52:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wN/ENpOqymNPAQEAauVa8A (envelope-from ) for ; Fri, 20 Jan 2023 15:52:03 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A5CC3AE0D for ; Fri, 20 Jan 2023 15:52:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIsjS-0008V8-1Q; Fri, 20 Jan 2023 09:51:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pIsjP-0008Us-Uh for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 09:51:04 -0500 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIsjO-000395-CD for emacs-orgmode@gnu.org; Fri, 20 Jan 2023 09:51:03 -0500 Received: by mail-pj1-x102e.google.com with SMTP id z4-20020a17090a170400b00226d331390cso5098272pjd.5 for ; Fri, 20 Jan 2023 06:51:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Heuf31L97LeRDA8OGYaZANsxefTKLwdUF85JZALoMxU=; b=LmNyVzSTxptAkQTAGl7hWLBoAEPr3jA7m8demxNYng1btG7SDROut9PQarnIffntUB ITWRszmyA9pvtIA02RnXtTxg5Z1fi3WcNn0ut+0+J/U4VnCWmKGJOs0/bHmx+VSe7j5Q eNBwxyQS2gbstRUTVkUizfjgcuabBBuXQApWx0i0aZxZGsFKPMh0pydv7kJqQ92qpkbt lwZgqDql2ZwBTdrrGrstaU7bi9HFYLwQAV9bI687D2EyuHXPm2lFTGSR7rm4WmoPB0M4 XF/XjGgw8LlC/oj53+i9sN4KWhgIG2RB8+WyT2ujT+Ru+I+z1Y8WnyPhXDCkXajvTCIF v5mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Heuf31L97LeRDA8OGYaZANsxefTKLwdUF85JZALoMxU=; b=bIDdZO2+XUtkeAKvilb73f1yuKBwU8TFJIjFbgT7PkX902lkUGPKquGKku/Cv/jSwU etDZw7uP/YEWoe3n0I1AfcXjCy5neJ3kZz7kec4auzowKlmRWWhsHg6Wb5B6C22bAOEv MvfcF0lk/N0o3SX8gXz497KktzGrSzwA+9X9lNTlM7+jimbhF0/A8OXDNcE/uPCqwN1S vfyMQpd+b6X3u7xEPle3oruVJnn6d1lvcAxzq01+ogiJCkvaf0kxHvJs6FghzpaNRlgs yUMB17FZd03R//b1ERoI15JbkNWmx1JuILSQ9mT+UrFDSlXtj+opsgVXQ3T5QXZYNfU3 0KvQ== X-Gm-Message-State: AFqh2kqiS0q/wRZw9lh4FLvKQX45B6RvMGos5O2joqDtZuuGCTkj+eBx BaB//4xrfrwUHefqIgAjG+TTQlZdKZs= X-Google-Smtp-Source: AMrXdXs6sCbVSfDejL1S4mFAw13M51OSX59U7zrVR+zztOfXEZ/uNZCpabsucA1DhwP1Wi1UcxY58Q== X-Received: by 2002:a17:902:bf03:b0:194:9847:9cd4 with SMTP id bi3-20020a170902bf0300b0019498479cd4mr14631139plb.60.1674226260447; Fri, 20 Jan 2023 06:51:00 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id b1-20020a170902d50100b0017f5ad327casm27080744plg.103.2023.01.20.06.50.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Jan 2023 06:51:00 -0800 (PST) Message-ID: <236849a2-144c-8f9e-a735-3af87582d4ec@gmail.com> Date: Fri, 20 Jan 2023 21:50:50 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] Support building Org from shallow clone [9.6.1 (release_9.6.1-137-gecb62e @ /home/n/.emacs.d/elpaca/builds/org/)] Content-Language: en-US To: No Wayman Cc: emacs-orgmode@gnu.org References: <87r0vvr2ai.fsf@gmail.com> <87358alhux.fsf@localhost> <87tu0q5m2t.fsf@gmail.com> <877cxligy6.fsf@localhost> <87fsc7e8ub.fsf@gmail.com> <87bkmve8qv.fsf@gmail.com> <87bkmu4vqg.fsf@localhost> <87wn5it214.fsf@gmail.com> <877cxhs7dh.fsf@localhost> From: Max Nikulin In-Reply-To: <877cxhs7dh.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=manikulin@gmail.com; helo=mail-pj1-x102e.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.089, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674226323; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Heuf31L97LeRDA8OGYaZANsxefTKLwdUF85JZALoMxU=; b=qIUfEZkX+x0Xs/Jv7pSA7tM+d4jVx4QTCxhGNY+BYnV1R8cPf54bHbSCb61pH0wolfRQID lwbtC28e6KXgz8/VF4VNKmAy99nBUwcEZJpjHL0mux+601sIuxI97VZunEX1OYDuPHsBZd +qMIwiTeQ90Nh4fxg0csc/O2xDdNWutFX+cdMSlrbvupsDgQmVNbh4644ChoUQbMxzIa4I l7jz6+P47+6zg6f7/Nm8iREZYjtIStf76jOTGyrCGXH2ERGDanN0P/LWKgoCaj5Hf4gy/Q vy9IAQO8KIw6U5NvBI8niJHKlvIj64Up1fPatp0zyO/IxaYIkbYhq/Yqt0YKcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LmNyVzST; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674226323; a=rsa-sha256; cv=none; b=JqcwPjEIj6g7eG7E5w+/UbgoIGTWzc6cnEiTN4Z0IJSeSB5unc78ayEzSWQ/RfPKIwiuEq 9pOyoGfY6VEADbXeYDUuUTtmmi545EjCNb41G4TjXoN4AXU1a+/wPBTniv+Drl1b25XPgS yuURrLH3lsFV8plVepivou16VGxEhEjXmqlU8qdNWjg5mqzqjeBIwKma2k5CQHQvLP5qxb hkhrFXNPiXs7/NBMGgmyd3SSsguXagewTtojcVy7vFhklMbj6pjsBQJiJZpSWM/89OAIYA lSBmrsM/2wDEHLmnMbmIXyjGR95TSegw78lPREnU5pBrpxr3UsbDywyTyA30vQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 7.59 X-Spam-Score: 7.59 X-Migadu-Queue-Id: A5CC3AE0D Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LmNyVzST; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: BYF02BhR8SSR On 20/01/2023 19:44, Ihor Radchenko wrote: > diff --git a/mk/targets.mk b/mk/targets.mk > index 4435daa..164b092 100644 > --- a/mk/targets.mk > +++ b/mk/targets.mk > @@ -14,7 +14,7 @@ ifneq ($(wildcard .git),) > # Use the org.el header. > ORGVERSION := $(patsubst %-dev,%,$(shell $(BATCH) --eval "(require 'lisp-mnt)" \ > --visit lisp/org.el --eval '(princ (lm-header "version"))')) > - GITVERSION ?= $(shell git describe --match release\* --abbrev=6 HEAD) > + GITVERSION ?= $(shell git describe --match release\* --abbrev=6 HEAD 2>/dev/null || echo "release_N/A-N/A-$(shell git log --format=%h another option is to use --always git describe --match release\* --abbrev=6 --always HEAD 52f29d and some make code that prepends it with release_$(ORGVERSION)- if it has not release prefix. Earlier posted patches attempts to make remote query even if history depth of local copy is enough to include a commit tagged as release. I have found some recipes how to modify "git fetch" to get enough objects for "git describe", but I have never used them, so unsure concerning their reliability. Perhaps they may be used in CI configuration, namely in the script preparing source directory, since fetch is not responsibility of make.