Re: Timestamps in static libraries

2010-10-10 Thread Erik Cederstrand
Den 06/10/2010 kl. 14.35 skrev Erik Cederstrand: > Den 06/10/2010 kl. 13.07 skrev Erik Cederstrand: > >> Is something like the following acceptable? Without risking changes to >> buildworld/distribution just now, this would allow me to dump contents of an >> archive and re-insert them with '0'

Re: Timestamps in static libraries

2010-10-06 Thread Erik Cederstrand
Den 06/10/2010 kl. 13.07 skrev Erik Cederstrand: > Is something like the following acceptable? Without risking changes to > buildworld/distribution just now, this would allow me to dump contents of an > archive and re-insert them with '0' for mtime, uid and gid before checking > checksums, wit

Re: Timestamps in static libraries

2010-10-06 Thread Erik Cederstrand
Den 06/10/2010 kl. 08.00 skrev Tim Kientzle: >> >> % diff mod.strings orig.strings >> 2c2 >> < / 1286312209 0 0 0 958 ` >> --- >>> / 1269146263 0 0 0 958 ` > > That's the timestamp on the pseudo-entry used to store the archive

Re: Timestamps in static libraries

2010-10-06 Thread Erik Cederstrand
Den 06/10/2010 kl. 10.06 skrev per...@pluto.rain.com: > Erik Cederstrand wrote: > >> It seems I can at least normalize the .a files using something >> like the following to weed out timestamps and uid/gid: >> >> % ar -x /usr/lib/libfetch.a >> % chown 0:0 * >> % touch -t 19700101 * >> % ar

Re: Timestamps in static libraries

2010-10-06 Thread perryh
Erik Cederstrand wrote: > It seems I can at least normalize the .a files using something > like the following to weed out timestamps and uid/gid: > > % ar -x /usr/lib/libfetch.a > % chown 0:0 * > % touch -t 19700101 * > % ar -r libfetch.a `ar -t /usr/lib/libfetch.a` > > ... Unfortunately it s

Re: Timestamps in static libraries

2010-10-06 Thread Erik Cederstrand
Den 06/10/2010 kl. 08.00 skrev Tim Kientzle: > > That's the timestamp on the pseudo-entry used to store the archive > symbol table. (GNU/SysV ar files use a pseudo-entry named "/" to > store the symbol table. Since '/' is added to end of names in this > format, this is essentially an entry wit

Re: Timestamps in static libraries

2010-10-05 Thread Tim Kientzle
On Oct 5, 2010, at 2:47 PM, Erik Cederstrand wrote: > Den 05/10/2010 kl. 15.59 skrev Erik Trulsson: > On Tue, Oct 05, 2010 at 03:28:36PM +0200, Erik Cederstrand wrote: >>> >>> I was using bsdiff for the compression and found out >>> that md5 sums of static libraries (.a files) in /usr/lib and >>>

Re: Timestamps in static libraries

2010-10-05 Thread Erik Cederstrand
Den 05/10/2010 kl. 15.59 skrev Erik Trulsson: > On Tue, Oct 05, 2010 at 03:28:36PM +0200, Erik Cederstrand wrote: >> 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

Re: Timestamps in static libraries

2010-10-05 Thread Benjamin Kaduk
On Tue, 5 Oct 2010, Joerg Sonnenberger wrote: On Tue, Oct 05, 2010 at 03:28:36PM +0200, Erik Cederstrand wrote: I'm wondering if this is necessary, or if this can possibly be turned of with a knob somewhere. Newer binutils got a flag after a discussion about this and related issues in NetBSD.

Re: Timestamps in static libraries

2010-10-05 Thread Joerg Sonnenberger
On Tue, Oct 05, 2010 at 03:28:36PM +0200, Erik Cederstrand wrote: > I'm wondering if this is necessary, or if this can possibly be turned > of with a knob somewhere. Newer binutils got a flag after a discussion about this and related issues in NetBSD. It basically stores 0 for the uid/gid/time fie

Re: Timestamps in static libraries

2010-10-05 Thread Erik Trulsson
On Tue, Oct 05, 2010 at 03:28:36PM +0200, Erik Cederstrand wrote: > 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/l

Timestamps in static libraries

2010-10-05 Thread Erik Cederstrand
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 cre