From owner-freebsd-arch@FreeBSD.ORG Thu Apr 10 16:17:24 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DD940F2D for ; Thu, 10 Apr 2014 16:17:24 +0000 (UTC) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B010B156E for ; Thu, 10 Apr 2014 16:17:24 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id fa1so4197143pad.28 for ; Thu, 10 Apr 2014 09:17:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=lZYMb7QNsisJ0q4iu/j8P4nn1DsWfYsDuFH0OUTyBGQ=; b=A6ek7Jx4PSMNnd1mzXDtzjan0vJBHoZMBI5b7vwjib+MPlZjWCezeQUmaqL7pqBzUH DnUtBxVZ1SpQipHeC0tVHyjczlf5ruZCB/BMC7Cet4m5lI0fwHUdiyEIMoceeXN1vW43 K0RtBaEtjtS2mTfPmn8pM4VjMq5A5wcOfjTsvJeVzfgY9Qq8FqvF+8ifm9DUq1jPiZa+ Fbb49lD0mq7DVucOab5x9sKuVYkbbHDt+7W/6hMdjvXl6r0LYzccUIxKxsLBa5WTeEAX xY95NggGIMnmsnBc1r71m+kj+VSCzjyzHKNmCWybWacK/du1LiA+Gd+0D75Ue/MPtSk0 I5zg== X-Gm-Message-State: ALoCoQnhR0ipRMMY1mFrw596Q+Jgs8ZJyePS1BrT9PbOmC1hd31O7LeIk3prTp6w6xHUA9LKM2Xw X-Received: by 10.66.240.130 with SMTP id wa2mr21016522pac.73.1397146638558; Thu, 10 Apr 2014 09:17:18 -0700 (PDT) Received: from [10.64.24.116] (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id qc8sm9988097pbc.68.2014.04.10.09.17.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 09:17:17 -0700 (PDT) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: ar and ranlib -D From: Warner Losh In-Reply-To: Date: Thu, 10 Apr 2014 10:17:15 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <925E4F91-1DCD-4002-9E23-5AD8FD582EF8@bsdimp.com> References: <86eh15usv2.fsf@nine.des.no> To: Ed Maste X-Mailer: Apple Mail (2.1874) Cc: =?windows-1252?Q?Dag-Erling_Sm=F8rgrav?= , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 16:17:24 -0000 On Apr 10, 2014, at 9:22 AM, Ed Maste wrote: > On 10 April 2014 11:06, Dag-Erling Sm=F8rgrav wrote: >> The attached patch adds -D to ARFLAGS and introduces RANLIBFLAGS = which >> defaults to -D. This ensures that all timestamps inside static >> libraries in the base system are hardcoded to 0 (aka the epoch), = which >> is a huge step towards fully reproducible builds. Any objections? >=20 > Looks good to me, I'm not sure why this didn't happen long ago. Once upon a time, ranlib didn=92t like this too well and complained that the index was older than the file. Then it was made a special case. = These days (and these days includes time since ~1995 or 2000), people always rebuild the entire .a anyway, so the value of having a timestamp in there is low, at best, so always doing this has become so boring that i=92m surprised this isn=92t the default behavior. Given that we = always rebuild, though, this change is totally safe. Warner