From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 13:39:03 2010 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13049106566B for ; Tue, 5 Oct 2010 13:39:03 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id 9788A8FC1A for ; Tue, 5 Oct 2010 13:39:02 +0000 (UTC) Received: from [10.0.1.48] (unknown [217.157.7.211]) by csmtp2.one.com (Postfix) with ESMTPA id 7B60ED702A360 for ; Tue, 5 Oct 2010 13:28:37 +0000 (UTC) From: Erik Cederstrand Content-Type: multipart/signed; boundary=Apple-Mail-1444-887955366; protocol="application/pkcs7-signature"; micalg=sha1 Date: Tue, 5 Oct 2010 15:28:36 +0200 Message-Id: <52C32EA5-A380-4237-A27C-9E2DF2D4E022@cederstrand.dk> To: FreeBSD Hackers Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Timestamps in static libraries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 13:39:03 -0000 --Apple-Mail-1444-887955366 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello hackers, I got reminded of a problem I had a couple of years back compressing = FreeBSD jails. I was using bsdiff for the compression and found out that = md5 sums of static libraries (.a files) in /usr/lib and /usr/local/lib = didn't match between jails, even though the source code used to create = the jails hadn't changed. One of my goals is to detect which files in a = distribution change between two commits. It turns out that timestamps are stored in the library: # strings DIR1/usr/lib/libfetch.a > tmp1 # strings DIR2/usr/lib/libfetch.a > tmp2 # diff tmp1 tmp2 2c2 < / 1200728973 0 0 0 954 ` --- > / 1200723259 0 0 0 954 ` 57c57 < file.o/ 1200728973 0 0 100644 2356 ` --- > file.o/ 1200723259 0 0 100644 2356 ` 86c86 < http.o/ 1200728973 0 0 100644 17180 ` --- > http.o/ 1200723258 0 0 100644 17180 ` [...] I'm wondering if this is necessary, or if this can possibly be turned of = with a knob somewhere. Thanks, Erik= --Apple-Mail-1444-887955366--