[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 2/2] Define SOURCE_DATE_EPOCH based on git log
- To: Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>
- From: Frédéric Pierret <frederic.pierret@xxxxxxxxxxxx>
- Date: Tue, 3 Nov 2020 11:11:00 +0100
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=qubes-os.org; spf=pass smtp.mailfrom=frederic.pierret@xxxxxxxxxxxx; dmarc=pass header.from=<frederic.pierret@xxxxxxxxxxxx> header.from=<frederic.pierret@xxxxxxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604398270; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=NBUnu4eFKiYodaIYDWrN7A5S8fdkqH8j0CP5dcjuKFI=; b=e/RNSBtibPxnKrzBjWhhTVTIrk/L1ElysRf9GlfhsxyMcr9m0xZGOJUhz1sC8zSkLD/hmYTF1OXIAR7R1/fk1fCLnUKIyQ8bJ/qws7oah7wYt5jKjtIt0KvsvvvBRbVbKMBAjVUWet/e7cfvQhzf/6grLSY7BQBFNIYy+3v1Lis=
- Arc-seal: i=1; a=rsa-sha256; t=1604398270; cv=none; d=zohomail.com; s=zohoarc; b=UI9NcwXVBDVYzRF18XAqtzn/fN60aCM2YyOOFo+Xu3UaWKkq0/v5Kaorq2p3K8fj79DKd6Ebi7R370wG0T/RtxszUj2aMXKYcQkqVXQlcDilSGv4Kn8Hcje+xeIrO6yzFzKhKL9CmKcSBqg4pR2f6ppdHQ9M+6I0DW4C9qnb12k=
- Autocrypt: addr=frederic.pierret@xxxxxxxxxxxx; keydata= xsFNBFwkq3EBEADcfyaOkeuf+g96S1ieq05tJ8vTGsQrNXQ5RDE7ffagL0+EpfIP3x73x5Q0 Dy2rUVQ+oN1DHcueNL70RtNs9BFnoW0KZnskbT4nEJ9wQCQa22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AAoJEEhAELXNxXbilSkP/2NcazvU DGyQLm7tFp4HNqSQfFJ3+chzxfOOdNtdWE+RFetyx9R8DBGrPX8hjITWD9ZA2bbZZ+J+a39v yY7bNZkCGbWzPGK//O1cInL4Ecmj7Xm8DXjk3E2Xzv1YrZk/GBz9xK8mWXwhn90SHNadEf28 ghMXcmUJSqT+KTxQQjUVaEtQDdzQnYQKh/dHxs760QSAnXkWr0YVYxk8q8aa+G8iAkNJcb+W x5gWEw4ft3HpKMRq74OQvWayy0fXpTlusdnvZs0VVMeRpCW6iCt9UmsbfG6Nyf2MKKbWRJnt jy8mjJiFjiJ2j9s4yNIookRv8IfocULuhnx5FWsvIzX2Vwcd7G5objnY1DlCNQrhJUs/geoC UBjBJp7sfbHakWfTKxZjFsuCXT1dCEN7JXX6ABOshzDTwB0kq7Bq/EkOzPDQGfOPoX2h1KjH uvGWw5cBe8WLnEuhIyf/DWfMS1LbjFB4JlMUEcood5xvE4owpfZog+0a9gpBS6cg9bMgRUex 1C+w3fudJdPQwIRAjJgac0jTT6uDY8re9RhBDv83PRSM7AzxqEFvDj8K46dg1XvJcKs7K5PX pm5Pw4stVEAxIks5uR62wxygImkdvgjQRzJe4JWwAniBWsZG+cNYj6xcItqkupIb4PeOWgNQ QMhGv8DnbAdOOOnumAXWq0+wl5uP
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Tue, 03 Nov 2020 10:11:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Le 11/3/20 à 11:05 AM, Jan Beulich a écrit :
On 03.11.2020 11:00, Julien Grall wrote:
Hi Frédéric,
Hi Julien,
On 31/10/2020 15:14, Frédéric Pierret (fepitre) wrote:
---
xen/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xen/Makefile b/xen/Makefile
index 30b1847515..4cc35556ef 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -6,6 +6,8 @@ export XEN_EXTRAVERSION ?= -unstable$(XEN_VENDORVERSION)
export XEN_FULLVERSION =
$(XEN_VERSION).$(XEN_SUBVERSION)$(XEN_EXTRAVERSION)
-include xen-version
+export SOURCE_DATE_EPOCH ?= $(shell git log -1 --format=%ct 2>/dev/null)
It is possible to download a tarball for Xen release (see [1]). They
don't contain the .git directory and therefore this command would fail.
Should we fallback to "date" in this case?
Isn't this what already happens? The variable would be assigned
an empty value in this case, wouldn't it?
Julien, Jan, yes it already fallback to "date" if the variable is empty (it's the reason of
"2>/dev/null") in the other test of check if SOURCE_DATE_EPOCH is defined. Maybe there is
more elegant way for this. Depending on the wanted here for providing or not a default value in case
of git sources, this could be documented instead as suggested previously.
Jan
Regards,
Frédéric
Attachment:
OpenPGP_0x484010B5CDC576E2.asc
Description: application/pgp-keys
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature
|