From owner-freebsd-hackers@freebsd.org Sat Jun 11 15:47:15 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32A9AAF0ABC for ; Sat, 11 Jun 2016 15:47:15 +0000 (UTC) (envelope-from steven@pyro.eu.org) Received: from manchester-1.man.uk.cluster.ok24.net (manchester-1.man.uk.cluster.ok24.net [IPv6:2001:41c8:51:40::1]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 458E82D5B; Sat, 11 Jun 2016 15:47:14 +0000 (UTC) (envelope-from steven@pyro.eu.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=pyro.eu.org; s=06.2016; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date; bh=2NKHGgcMttv4p0WovQYYtW7corpucqAzVPZLBQ0dU8U=; b=VxPziiubfl7b9Lrlkavg6bhfypXgGDzFG/KltJ8NWIzCk3mIWYR6GulSgamr629/lZSJbs0m+2pJtwcWdKK77vwA6ueUKdHk97wlIdwQPqgEVvqhLa+O/4/dIyHp6l6q4HwfDx/8A0p7oMWIXQYa1ZxzyHLLlYwDrOuS2v48Vig=; X-Spam-Status: No, score=-1.5 required=2.0 tests=BAYES_00, DKIM_ADSP_DISCARD, RP_MATCHES_RCVD Received: from guisborough-1.rcc.uk.cluster.ok24.net ([2a00:14f0:e033:1001::1] helo=smtp.ok24.net) by manchester-1.man.uk.cluster.ok24.net with esmtp (Exim 4.80) (envelope-from ) id 1bBl7o-0001gU-7M; Sat, 11 Jun 2016 16:47:08 +0100 Received: from kfreebsd-amd64.pyro.eu.org (kfreebsd-amd64.pyro.eu.org [IPv6:2a00:14f0:e033:2000::1]) by smtp.ok24.net (Postfix) with ESMTP id 1023E2011CC; Sat, 11 Jun 2016 16:47:04 +0100 (BST) Received: by kfreebsd-amd64.pyro.eu.org (Postfix, from userid 1000) id 040021101; Sat, 11 Jun 2016 16:47:04 +0100 (BST) Date: Sat, 11 Jun 2016 16:47:03 +0100 From: Steven Chamberlain To: freebsd-hackers@freebsd.org Cc: bapt@freebsd.org, rb-general@lists.reproducible-builds.org Subject: makefs: -T maximum-time argument Message-ID: <20160611154703.GB929@pyro.eu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NMuMz9nt05w80d4+" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jun 2016 15:47:15 -0000 --NMuMz9nt05w80d4+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! During discussion of reproducible FreeBSD at FOSDEM16, I mentioned that in Debian we have a patch for makefs to clamp timestamps. The typical usage is -T $SOURCE_DATE_EPOCH and at least on UFS (with consistent readdir order) this allows to build reproducible images of our installer. Debian's makefs actually comes from MirBSD, who merged this patch today. I've attached it, rebased for FreeBSD but I'm afraid I've not tested it there at all. Hopefully someone can check it and consider merging. The same flag was also added to NetBSD some months ago: http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.sbin/makefs/makefs.8.diff?r1=3D= 1.53&r2=3D1.54&only_with_tag=3DMAIN&f=3Dh though they support the use of -T as well as -T Thanks! Regards, --=20 Steven Chamberlain steven@pyro.eu.org --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCAAGBQJXXDJ2AAoJELrpzbaMAu5TrEkH/jlDzIoQxZLAjwOjGB5bR0/5 ZwbUoc0xmzXMYSXU2I65Et2Nv8bq/gRa/xqcUncOnLdy8bJGpBAyO0iCQEXfX1vr nxYptTSi46Lpb/X/Ftqd5KHwVY/ZllT/cwcQFr2nsvbVPsyUv4G+bH8WyIiLbx9Q rQth7ytU7kpr35hEAHZVMHYb+UujSBLRVX6fxBPh/9GMho8vRaqtsLMFSlcRKNoC Ad5U9IjCysKXsvVrAFVUvTjsWuZQ6tlno86pObVzkVkQeou/NhLIESLUtBWKNEKv OdDIhWFqnkIw7fw4aY20rHHPW6UciQMVSudbeZvT6chFM8GyYAk3/Dwys0wZqu0= =hxfE -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+--