diff -urN portage-2.0.51_pre20-orig/pym/portage.py portage-2.0.51_pre20/pym/portage.py --- portage-2.0.51_pre20-orig/pym/portage.py 2004-08-16 20:15:02.000000000 -0500 +++ portage-2.0.51_pre20/pym/portage.py 2004-08-22 03:33:46.032082336 -0500 @@ -6644,6 +6644,17 @@ # old package won't yank the file with it. (non-cfgprot related) os.utime(myrealdest,(thismtime,thismtime)) zing="---" + #alright, we've fooled w/ mytime. need to update ar toc mtime's. + if self.settings["ARCH"] == "macos" and myrealdest[-2:] == ".a": + # insert the new mtime into the ar toc. + print "updating toc of %s" % myrealdest + myf=open(myrealdest,"a") + myf.seek(24,0) + myf.write(str(thismtime)) + myf.close() + os.utime(myrealdest,(thismtime,thismtime)) + mymd5=portage_md5.perform_md5(myrealdest) + if mymtime!=None: zing=">>>" outfile.write("obj "+myrealdest+" "+mymd5+" "+str(mymtime)+"\n")