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 SGbHLxdH6mL9yQAAbAwnHQ (envelope-from ) for ; Wed, 03 Aug 2022 11:59:51 +0200 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 GLN9LxdH6mJOrgAAauVa8A (envelope-from ) for ; Wed, 03 Aug 2022 11:59:51 +0200 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 782A232DE9 for ; Wed, 3 Aug 2022 11:59:51 +0200 (CEST) Received: from localhost ([::1]:53074 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJBAM-00011D-Gv for larch@yhetil.org; Wed, 03 Aug 2022 05:59:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJA9h-0000Mt-ON for bug-guix@gnu.org; Wed, 03 Aug 2022 04:55:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJA9g-0003cn-QK for bug-guix@gnu.org; Wed, 03 Aug 2022 04:55:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJA9g-00085s-NF for bug-guix@gnu.org; Wed, 03 Aug 2022 04:55:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56893: [Pkg-rust-maintainers] Bug#1016546: rust-vergen inserts build timestamps Resent-From: Fabian =?UTF-8?Q?Gr=C3=BCnbichler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 03 Aug 2022 08:55:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56893 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 1016546@bugs.debian.org, 56893@debbugs.gnu.org, Maxime Devos Received: via spool by 56893-submit@debbugs.gnu.org id=B56893.165951685331007 (code B ref 56893); Wed, 03 Aug 2022 08:55:04 +0000 Received: (at 56893) by debbugs.gnu.org; 3 Aug 2022 08:54:13 +0000 Received: from localhost ([127.0.0.1]:46087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJA8q-00083x-SS for submit@debbugs.gnu.org; Wed, 03 Aug 2022 04:54:13 -0400 Received: from proxmox-new.maurer-it.com ([94.136.29.106]:14666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJ8W9-0005Kj-1A for 56893@debbugs.gnu.org; Wed, 03 Aug 2022 03:10:09 -0400 Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id E09F842DE0; Wed, 3 Aug 2022 09:10:01 +0200 (CEST) Date: Wed, 03 Aug 2022 09:09:54 +0200 From: Fabian =?UTF-8?Q?Gr=C3=BCnbichler?= References: <20220802174658.jzawpmxvx2abwebo@gpm.stappers.nl> <20220802184151.hxy5a4ua6rx5ukem@gpm.stappers.nl> <20220802174658.jzawpmxvx2abwebo@gpm.stappers.nl> <22fbd85d-9f0e-64f8-98d6-972a0f7c9219@telenet.be> In-Reply-To: <22fbd85d-9f0e-64f8-98d6-972a0f7c9219@telenet.be> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1659510404.ppd071f89s.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Wed, 03 Aug 2022 04:54:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 03 Aug 2022 05:52:59 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659520791; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=uSWTzTibHdJaKm2BeBJaYOze0h91BiQ/aCAyiS3B/fI=; b=a7g45ADwfkxGFMPLpMeV1dCJvfXuMfLLP9HCcnBL3nxxXjX1S318b4Gh8irgDKdQAOMrJ1 YrMfdorrtCZc+/Csj9b7R09yZMZh3c6bBG/ZxedKpL2xv+c5RkmrICywaHr5be+TWirn6H FgyHhzsTDUwgCKtV7P38ltV09veLorsI/Iv34sVDBm+JqfuD5gChLCTx2V8xQ1NGJ0EBti b/FlVo6hX2lNIujW0TVlSGjELoRw5hIVeoAOom4roHtirCM2Hd+s9keNbkcdmfK47Bqrca /UlF4mNKDXjof68o9KXcEU4B/SrMvkwBipN3tLrPRbKoBLqICRMblNljnpJWlg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659520791; a=rsa-sha256; cv=none; b=RTUH/wSN8r00hZwnlSO1qgsdEVf3yJNAjxiLpKgk58/ApP+okS1mqIqZN2x1JTMufVlDVm WTLKbmIchvOkbDn1jxu7DrKDPh2ukgZbSEHo+LPtrOppHD4YIcGTH4U6LCNmOaxYIBs/45 QC0ntziYsjh30RjK27tBlfPO8WNzgOks9RasFsehWoUnjrh7yJUMGpc78CdL7Ym1LIt2mb rR152PS0aDda3YI3UPEqikTpKhgGeB43+tHf7UwaHOyYVeuBPmoJNhR52x3PWhhehDiJ+q HWmpLiiG8hYGfctCbvjTOCSz41aqAaRc0YovCz/uqfAPnUrwMXM7WtY0uxffWg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.59 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 782A232DE9 X-Spam-Score: 3.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: VY0BF1f25lci On August 2, 2022 10:16 pm, Maxime Devos wrote: > On 02-08-2022 20:41, Geert Stappers wrote: >=20 >> Date: Tue, 2 Aug 2022 19:18:46 +0200, From: Maxime Devos >>> In Guix, I've noticed that rust-vergen embeds build timestamps. There i= s also >>> a work-around available: . >> =20 >> >> Thanks for reporting the FTBR. >> >> Please update the workaround, so it looks more >> like https://en.wikipedia.org/wiki/Diff#Unified_format >> and can be absured by https://en.wikipedia.org/wiki/Patch_(Unix) >> >> >> Just telling the filename that needs modification would be a great help. >=20 > Oops, I did not send the full work-around, here it is: >=20 >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (substitute* (find-files "."= "\\.rs$") >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (("^extern crate= chrono;") "extern crate chrono; use=20 >> chrono::Utc; use chrono::TimeZone;") >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (("^use chrono::= Utc;") "use chrono::Utc; use=20 >> chrono::TimeZone;") >> =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (("\\bUtc::now\\= (\\)") "Utc.timestamp(0, 0)")))))) > (Should hopefully be clearer now!) >=20 > The important thing here is replacing all instances of Utc::now()=20 > (across all Rust source files of rust-vergen) by Utc.timestamp(0, 0),=20 > the rest is just adding the required imports -- I have not made a list=20 > of all file names.=C2=A0 If you want a list, try "grep -rF Utc::now" or s= uch. >=20 > I do not intend to update the workaround, it works fine in Guix and=20 > frankly porting it to whatever format Debian likes is Debian's concern,=20 > not Guix', I'm just sharing our workaround as a courtesy to another distr= o. also note that for debian purposes, we likely want to honor=20 SOURCE_DATE_EPOCH instead of setting it to epoch zero.